/** * Function to build the event list * * @return array $eventList * @access public * @static */ public static function buildEventList() { $eventList = array(); $events = CRM_Civirules_BAO_Event::getValues(array()); foreach ($events as $eventId => $event) { $eventList[$eventId] = $event['label']; } return $eventList; }
/** * CiviRuleEvent.Get API * * @param array $params * @return array API result descriptor * @see civicrm_api3_create_success * @see civicrm_api3_create_error * @throws API_Exception */ function civicrm_api3_civi_rule_event_get($params) { $returnValues = CRM_Civirules_BAO_Event::getValues($params); return civicrm_api3_create_success($returnValues, $params, 'CiviRuleEvent', 'Get'); }