Пример #1
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'), 'scheduled_date' => array('name' => 'scheduled_date', 'type' => CRM_Utils_Type::T_DATE + CRM_Utils_Type::T_TIME, 'title' => ts('Scheduled Date')), 'start_date' => array('name' => 'start_date', 'type' => CRM_Utils_Type::T_DATE + CRM_Utils_Type::T_TIME, 'title' => ts('Start Date')), 'end_date' => array('name' => 'end_date', 'type' => CRM_Utils_Type::T_DATE + CRM_Utils_Type::T_TIME, 'title' => ts('End Date')), 'status' => array('name' => 'status', 'type' => CRM_Utils_Type::T_ENUM, 'title' => ts('Status'), 'enumValues' => 'Scheduled, Running, Complete, Paused, Canceled'), 'is_test' => array('name' => 'is_test', 'type' => CRM_Utils_Type::T_BOOLEAN), 'job_type' => array('name' => 'job_type', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Job Type'), 'maxlength' => 255, 'size' => CRM_Utils_Type::HUGE), 'parent_id' => array('name' => 'parent_id', 'type' => CRM_Utils_Type::T_INT, 'default' => 'UL', 'FKClassName' => 'CRM_Mailing_DAO_Job'), 'job_offset' => array('name' => 'job_offset', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Job Offset')), 'job_limit' => array('name' => 'job_limit', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Job Limit')));
     }
     return self::$_fields;
 }
Пример #2
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), 'mailing_id' => array('name' => 'mailing_id', 'type' => CRM_Utils_Type::T_INT, 'required' => true, 'FKClassName' => 'CRM_Mailing_DAO_Mailing'), 'scheduled_date' => array('name' => 'scheduled_date', 'type' => CRM_Utils_Type::T_DATE + CRM_Utils_Type::T_TIME, 'title' => ts('Scheduled Date')), 'start_date' => array('name' => 'start_date', 'type' => CRM_Utils_Type::T_DATE + CRM_Utils_Type::T_TIME, 'title' => ts('Start Date')), 'end_date' => array('name' => 'end_date', 'type' => CRM_Utils_Type::T_DATE + CRM_Utils_Type::T_TIME, 'title' => ts('End Date')), 'status' => array('name' => 'status', 'type' => CRM_Utils_Type::T_ENUM, 'title' => ts('Status'), 'enumValues' => 'Scheduled, Running, Complete, Paused, Canceled'), 'is_test' => array('name' => 'is_test', 'type' => CRM_Utils_Type::T_BOOLEAN));
     }
     return self::$_fields;
 }