/** * Get a count of records with the given property * * @param $params * @return int */ public static function getRecordCount($params) { $dao = new CRM_HRAbsence_DAO_HRAbsenceType(); $dao->copyValues($params); return $dao->count(); }