* @param $ids
*
* @return CRM_Price_DAO_PriceFieldValue
- * @static
*/
public static function add(&$params, $ids = array()) {
* @param $ids
*
* @return CRM_Price_DAO_PriceFieldValue
- * @static
*/
public static function create(&$params, $ids = array()) {
$id = CRM_Utils_Array::value('id', $params, CRM_Utils_Array::value('id', $ids));
if (!is_array($params) || empty($params)) {
- return;
+ return NULL;
}
if (!$id && empty($params['name'])) {
$params['name'] = strtolower(CRM_Utils_String::munge($params['label'], '_', 242));
* (reference ) an assoc array to hold the flattened values.
*
* @return CRM_Price_DAO_PriceFieldValue
- * @static
*/
public static function retrieve(&$params, &$defaults) {
return CRM_Core_DAO::commonRetrieve('CRM_Price_DAO_PriceFieldValue', $params, $defaults);
*
* @return array
*
- * @static
*/
public static function getValues($fieldId, &$values, $orderBy = 'weight', $isActive = FALSE) {
$fieldValueDAO = new CRM_Price_DAO_PriceFieldValue();
* @return string
* name
*
- * @static
*/
public static function getOptionLabel($id) {
return CRM_Core_DAO::getFieldValue('CRM_Price_DAO_PriceFieldValue', $id, 'label');
* @return Object
* DAO object on sucess, null otherwise
*
- * @static
*/
public static function setIsActive($id, $is_active) {
return CRM_Core_DAO::setFieldValue('CRM_Price_DAO_PriceFieldValue', $id, 'is_active', $is_active);
* Price field id.
*
*
- * @static
*/
public static function deleteValues($fieldId) {
if (!$fieldId) {
* @param int $id
* Id.
*
- * @return boolean
+ * @return bool
*
- * @static
*/
public static function del($id) {
if (!$id) {
*
* @param int $entityId
* Id.
- * @param string $entityTableEntity table.
+ * @param string $entityTable table.
* Entity table.
- * @param string $financialTypeIDFinancial type id.
+ * @param string $financialTypeID type id.
* Financial type id.
*
- * @static
*/
public static function updateFinancialType($entityId, $entityTable, $financialTypeID) {
if (!$entityId || !$entityTable || !$financialTypeID) {