/** * returns the list of fields that can be exported * * @access public * return array * @static */ static function &export($prefix = false) { if (!self::$_export) { self::$_export = array(); $fields = self::fields(); foreach ($fields as $name => $field) { if (CRM_Utils_Array::value('export', $field)) { if ($prefix) { self::$_export['hrabsence_entitlement'] =& $fields[$name]; } else { self::$_export[$name] =& $fields[$name]; } } } } return self::$_export; }
/** * Get a count of records with the given property * * @param $params * @return int */ public static function getRecordCount($params) { $dao = new CRM_HRAbsence_DAO_HRAbsenceEntitlement(); $dao->copyValues($params); return $dao->count(); }