Exemple #1
0
 /**
  * Returns all the column names of this table
  *
  * @return array
  */
 static function &fields()
 {
     if (!self::$_fields) {
         self::$_fields = array('id' => array('name' => 'id', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Mailing Group ID'), 'required' => true), 'mailing_id' => array('name' => 'mailing_id', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Mailing'), 'description' => 'The ID of a previous mailing to include/exclude recipients.', 'required' => true, 'FKClassName' => 'CRM_Mailing_DAO_Mailing'), 'group_type' => array('name' => 'group_type', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Mailing Group Type'), 'description' => 'Are the members of the group included or excluded?.', 'maxlength' => 8, 'size' => CRM_Utils_Type::EIGHT, 'html' => array('type' => 'Select'), 'pseudoconstant' => array('callback' => 'CRM_Core_SelectValues::getMailingGroupTypes')), 'entity_table' => array('name' => 'entity_table', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Mailing Group Entity Table'), 'description' => 'Name of table where item being referenced is stored.', 'required' => true, 'maxlength' => 64, 'size' => CRM_Utils_Type::BIG), 'entity_id' => array('name' => 'entity_id', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Mailing Group Entity'), 'description' => 'Foreign key to the referenced item.', 'required' => true), 'search_id' => array('name' => 'search_id', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Mailing Group Search'), 'description' => 'The filtering search. custom search id or -1 for civicrm api search'), 'search_args' => array('name' => 'search_args', 'type' => CRM_Utils_Type::T_TEXT, 'title' => ts('Mailing Group Search Arguments'), 'description' => 'The arguments to be sent to the search function'));
     }
     return self::$_fields;
 }
Exemple #2
0
 /**
  * returns all the column names of this table
  *
  * @access public
  * @return array
  */
 static function &fields()
 {
     if (!self::$_fields) {
         self::$_fields = array('id' => array('name' => 'id', 'type' => CRM_Utils_Type::T_INT, 'required' => true), 'mailing_id' => array('name' => 'mailing_id', 'type' => CRM_Utils_Type::T_INT, 'required' => true, 'FKClassName' => 'CRM_Mailing_DAO_Mailing'), 'group_type' => array('name' => 'group_type', 'type' => CRM_Utils_Type::T_ENUM, 'title' => ts('Group Type'), 'enumValues' => 'Include, Exclude, Base'), 'entity_table' => array('name' => 'entity_table', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Entity Table'), 'required' => true, 'maxlength' => 64, 'size' => CRM_Utils_Type::BIG), 'entity_id' => array('name' => 'entity_id', 'type' => CRM_Utils_Type::T_INT, 'required' => true), 'search_id' => array('name' => 'search_id', 'type' => CRM_Utils_Type::T_INT), 'search_args' => array('name' => 'search_args', 'type' => CRM_Utils_Type::T_TEXT, 'title' => ts('Search Args')));
     }
     return self::$_fields;
 }