Example #1
0
 /**
  * returns all the column names of this table
  *
  * @access public
  * @return array
  */
 function &fields()
 {
     if (!self::$_fields) {
         self::$_fields = array('id' => array('name' => 'id', 'type' => CRM_Utils_Type::T_INT, 'required' => true), 'group_id' => array('name' => 'group_id', 'type' => CRM_Utils_Type::T_INT, 'required' => true, 'FKClassName' => 'CRM_Contact_DAO_Group'), 'contact_id' => array('name' => 'contact_id', 'type' => CRM_Utils_Type::T_INT, 'required' => true, 'FKClassName' => 'CRM_Contact_DAO_Contact'), 'hash' => array('name' => 'hash', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Hash'), 'required' => true, 'maxlength' => 255, 'size' => CRM_Utils_Type::HUGE), 'time_stamp' => array('name' => 'time_stamp', 'type' => CRM_Utils_Type::T_DATE + CRM_Utils_Type::T_TIME, 'title' => ts('Time Stamp'), 'required' => true));
     }
     return self::$_fields;
 }
Example #2
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 Subscribe ID'), 'required' => true), 'group_id' => array('name' => 'group_id', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Mailing Subscribe Group'), 'description' => 'FK to Group', 'required' => true, 'FKClassName' => 'CRM_Contact_DAO_Group', 'html' => array('type' => 'Select'), 'pseudoconstant' => array('table' => 'civicrm_group', 'keyColumn' => 'id', 'labelColumn' => 'title')), 'contact_id' => array('name' => 'contact_id', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Mailing Subscribe Contact'), 'description' => 'FK to Contact', 'required' => true, 'FKClassName' => 'CRM_Contact_DAO_Contact'), 'hash' => array('name' => 'hash', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Mailing Subscribe Hash'), 'description' => 'Security hash', 'required' => true, 'maxlength' => 255, 'size' => CRM_Utils_Type::HUGE), 'time_stamp' => array('name' => 'time_stamp', 'type' => CRM_Utils_Type::T_DATE + CRM_Utils_Type::T_TIME, 'title' => ts('Mailing Subscribe Timestamp'), 'description' => 'When this subscription event occurred.', 'required' => true));
     }
     return self::$_fields;
 }