/** * Get the list of contact_id. * * * @return int * contact_id on success, null otherwise */ public static function getContactIDs() { $id = array(); $dao = new CRM_Core_DAO_UFMatch(); $dao->find(); while ($dao->fetch()) { $id[] = $dao->contact_id; } return $id; }