示例#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), 'event_queue_id' => array('name' => 'event_queue_id', 'type' => CRM_Utils_Type::T_INT, 'required' => true, 'FKClassName' => 'CRM_Mailing_Event_DAO_Queue'), 'bounce_type_id' => array('name' => 'bounce_type_id', 'type' => CRM_Utils_Type::T_INT), 'bounce_reason' => array('name' => 'bounce_reason', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Bounce Reason'), '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;
 }
示例#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('Bounce ID'), 'required' => true), 'event_queue_id' => array('name' => 'event_queue_id', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Event Queue'), 'description' => 'FK to EventQueue', 'required' => true, 'FKClassName' => 'CRM_Mailing_Event_DAO_Queue'), 'bounce_type_id' => array('name' => 'bounce_type_id', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Bounce Type'), 'description' => 'What type of bounce was it?', 'html' => array('type' => 'Select'), 'pseudoconstant' => array('table' => 'civicrm_mailing_bounce_type', 'keyColumn' => 'id', 'labelColumn' => 'name')), 'bounce_reason' => array('name' => 'bounce_reason', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Bounce Reason'), 'description' => 'The reason the email bounced.', '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('Timestamp'), 'description' => 'When this bounce event occurred.', 'required' => true));
     }
     return self::$_fields;
 }