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), 'job_id' => array('name' => 'job_id', 'type' => CRM_Utils_Type::T_INT, 'required' => true, 'FKClassName' => 'CRM_Mailing_DAO_Job'), 'recipient_email' => array('name' => 'recipient_email', 'type' => CRM_Utils_Type::T_TEXT, 'title' => ts('Recipient Email')), 'headers' => array('name' => 'headers', 'type' => CRM_Utils_Type::T_TEXT, 'title' => ts('Headers')), 'body' => array('name' => 'body', 'type' => CRM_Utils_Type::T_TEXT, 'title' => ts('Body')), 'added_at' => array('name' => 'added_at', 'type' => CRM_Utils_Type::T_DATE + CRM_Utils_Type::T_TIME, 'title' => ts('Added At')), 'removed_at' => array('name' => 'removed_at', 'type' => CRM_Utils_Type::T_DATE + CRM_Utils_Type::T_TIME, 'title' => ts('Removed At')));
     }
     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('Spool ID'), 'required' => true), 'job_id' => array('name' => 'job_id', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Mailing Job'), 'description' => 'The ID of the Job .', 'required' => true, 'FKClassName' => 'CRM_Mailing_DAO_MailingJob'), 'recipient_email' => array('name' => 'recipient_email', 'type' => CRM_Utils_Type::T_TEXT, 'title' => ts('Recipient Email'), 'description' => 'The email of the receipients this mail is to be sent.'), 'headers' => array('name' => 'headers', 'type' => CRM_Utils_Type::T_TEXT, 'title' => ts('Headers'), 'description' => 'The header information of this mailing .'), 'body' => array('name' => 'body', 'type' => CRM_Utils_Type::T_TEXT, 'title' => ts('Body'), 'description' => 'The body of this mailing.'), 'added_at' => array('name' => 'added_at', 'type' => CRM_Utils_Type::T_DATE + CRM_Utils_Type::T_TIME, 'title' => ts('Added'), 'description' => 'date on which this job was added.'), 'removed_at' => array('name' => 'removed_at', 'type' => CRM_Utils_Type::T_DATE + CRM_Utils_Type::T_TIME, 'title' => ts('Removed'), 'description' => 'date on which this job was removed.'));
     }
     return self::$_fields;
 }