Exemplo n.º 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' => 'NULL', 'FKClassName' => 'CRM_Mailing_DAO_MailingJob'), '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;
 }
Exemplo n.º 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 Job ID'), 'required' => true), 'mailing_id' => array('name' => 'mailing_id', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Mailing'), 'description' => 'The ID of the mailing this Job will send.', '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('Mailing Scheduled Date'), 'description' => 'date on which this job was scheduled.'), 'start_date' => array('name' => 'start_date', 'type' => CRM_Utils_Type::T_DATE + CRM_Utils_Type::T_TIME, 'title' => ts('Mailing Job Start Date'), 'description' => 'date on which this job was started.'), 'end_date' => array('name' => 'end_date', 'type' => CRM_Utils_Type::T_DATE + CRM_Utils_Type::T_TIME, 'title' => ts('Mailing Job End Date'), 'description' => 'date on which this job ended.'), 'status' => array('name' => 'status', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Mailing Job Status'), 'description' => 'The state of this job', 'maxlength' => 12, 'size' => CRM_Utils_Type::TWELVE, 'html' => array('type' => 'Select'), 'pseudoconstant' => array('callback' => 'CRM_Core_SelectValues::getMailingJobStatus')), 'is_test' => array('name' => 'is_test', 'type' => CRM_Utils_Type::T_BOOLEAN, 'title' => ts('Mailing Job Is Test?'), 'description' => 'Is this job for a test mail?'), 'job_type' => array('name' => 'job_type', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Mailing Job Type'), 'description' => 'Type of mailling job: null | child ', 'maxlength' => 255, 'size' => CRM_Utils_Type::HUGE), 'parent_id' => array('name' => 'parent_id', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Mailing Job Parent'), 'description' => 'Parent job id', 'default' => 'NULL', 'FKClassName' => 'CRM_Mailing_DAO_MailingJob'), 'job_offset' => array('name' => 'job_offset', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Mailing Job Offset'), 'description' => 'Offset of the child job'), 'job_limit' => array('name' => 'job_limit', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Mailing Job Limit'), 'description' => 'Queue size limit for each child job'));
     }
     return self::$_fields;
 }