Merge pull request #10152 from agh1/crm-20419
[civicrm-core.git] / CRM / Mailing / DAO / MailingJob.php
index 17e9d22c210ca7c0daf7c67decbcd1c9ca691873..ecdbe4705e77d55ec886ee8272e5efffb1a35c3b 100644 (file)
@@ -30,7 +30,7 @@
  *
  * Generated from xml/schema/CRM/Mailing/MailingJob.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:df7f5d74b6be9d995c7990e4315bfe40)
+ * (GenCodeChecksum:51449e1b36d9d248712f346f20c9e446)
  */
 require_once 'CRM/Core/DAO.php';
 require_once 'CRM/Utils/Type.php';
@@ -64,19 +64,19 @@ class CRM_Mailing_DAO_MailingJob extends CRM_Core_DAO {
   /**
    * date on which this job was scheduled.
    *
-   * @var datetime
+   * @var timestamp
    */
   public $scheduled_date;
   /**
    * date on which this job was started.
    *
-   * @var datetime
+   * @var timestamp
    */
   public $start_date;
   /**
    * date on which this job ended.
    *
-   * @var datetime
+   * @var timestamp
    */
   public $end_date;
   /**
@@ -150,6 +150,10 @@ class CRM_Mailing_DAO_MailingJob extends CRM_Core_DAO {
           'type' => CRM_Utils_Type::T_INT,
           'title' => ts('Mailing Job ID') ,
           'required' => true,
+          'table_name' => 'civicrm_mailing_job',
+          'entity' => 'MailingJob',
+          'bao' => 'CRM_Mailing_BAO_MailingJob',
+          'localizable' => 0,
         ) ,
         'mailing_id' => array(
           'name' => 'mailing_id',
@@ -157,25 +161,47 @@ class CRM_Mailing_DAO_MailingJob extends CRM_Core_DAO {
           'title' => ts('Mailing') ,
           'description' => 'The ID of the mailing this Job will send.',
           'required' => true,
+          'table_name' => 'civicrm_mailing_job',
+          'entity' => 'MailingJob',
+          'bao' => 'CRM_Mailing_BAO_MailingJob',
+          'localizable' => 0,
           'FKClassName' => 'CRM_Mailing_DAO_Mailing',
         ) ,
         'scheduled_date' => array(
           'name' => 'scheduled_date',
-          'type' => CRM_Utils_Type::T_DATE + CRM_Utils_Type::T_TIME,
+          'type' => CRM_Utils_Type::T_TIMESTAMP,
           'title' => ts('Mailing Scheduled Date') ,
           'description' => 'date on which this job was scheduled.',
+          'required' => false,
+          'default' => 'NULL',
+          'table_name' => 'civicrm_mailing_job',
+          'entity' => 'MailingJob',
+          'bao' => 'CRM_Mailing_BAO_MailingJob',
+          'localizable' => 0,
         ) ,
         'start_date' => array(
           'name' => 'start_date',
-          'type' => CRM_Utils_Type::T_DATE + CRM_Utils_Type::T_TIME,
+          'type' => CRM_Utils_Type::T_TIMESTAMP,
           'title' => ts('Mailing Job Start Date') ,
           'description' => 'date on which this job was started.',
+          'required' => false,
+          'default' => 'NULL',
+          'table_name' => 'civicrm_mailing_job',
+          'entity' => 'MailingJob',
+          'bao' => 'CRM_Mailing_BAO_MailingJob',
+          'localizable' => 0,
         ) ,
         'end_date' => array(
           'name' => 'end_date',
-          'type' => CRM_Utils_Type::T_DATE + CRM_Utils_Type::T_TIME,
+          'type' => CRM_Utils_Type::T_TIMESTAMP,
           'title' => ts('Mailing Job End Date') ,
           'description' => 'date on which this job ended.',
+          'required' => false,
+          'default' => 'NULL',
+          'table_name' => 'civicrm_mailing_job',
+          'entity' => 'MailingJob',
+          'bao' => 'CRM_Mailing_BAO_MailingJob',
+          'localizable' => 0,
         ) ,
         'status' => array(
           'name' => 'status',
@@ -184,6 +210,10 @@ class CRM_Mailing_DAO_MailingJob extends CRM_Core_DAO {
           'description' => 'The state of this job',
           'maxlength' => 12,
           'size' => CRM_Utils_Type::TWELVE,
+          'table_name' => 'civicrm_mailing_job',
+          'entity' => 'MailingJob',
+          'bao' => 'CRM_Mailing_BAO_MailingJob',
+          'localizable' => 0,
           'html' => array(
             'type' => 'Select',
           ) ,
@@ -196,6 +226,10 @@ class CRM_Mailing_DAO_MailingJob extends CRM_Core_DAO {
           'type' => CRM_Utils_Type::T_BOOLEAN,
           'title' => ts('Mailing Job Is Test?') ,
           'description' => 'Is this job for a test mail?',
+          'table_name' => 'civicrm_mailing_job',
+          'entity' => 'MailingJob',
+          'bao' => 'CRM_Mailing_BAO_MailingJob',
+          'localizable' => 0,
         ) ,
         'job_type' => array(
           'name' => 'job_type',
@@ -204,6 +238,10 @@ class CRM_Mailing_DAO_MailingJob extends CRM_Core_DAO {
           'description' => 'Type of mailling job: null | child ',
           'maxlength' => 255,
           'size' => CRM_Utils_Type::HUGE,
+          'table_name' => 'civicrm_mailing_job',
+          'entity' => 'MailingJob',
+          'bao' => 'CRM_Mailing_BAO_MailingJob',
+          'localizable' => 0,
         ) ,
         'parent_id' => array(
           'name' => 'parent_id',
@@ -211,6 +249,10 @@ class CRM_Mailing_DAO_MailingJob extends CRM_Core_DAO {
           'title' => ts('Mailing Job Parent') ,
           'description' => 'Parent job id',
           'default' => 'NULL',
+          'table_name' => 'civicrm_mailing_job',
+          'entity' => 'MailingJob',
+          'bao' => 'CRM_Mailing_BAO_MailingJob',
+          'localizable' => 0,
           'FKClassName' => 'CRM_Mailing_DAO_MailingJob',
         ) ,
         'job_offset' => array(
@@ -218,12 +260,20 @@ class CRM_Mailing_DAO_MailingJob extends CRM_Core_DAO {
           'type' => CRM_Utils_Type::T_INT,
           'title' => ts('Mailing Job Offset') ,
           'description' => 'Offset of the child job',
+          'table_name' => 'civicrm_mailing_job',
+          'entity' => 'MailingJob',
+          'bao' => 'CRM_Mailing_BAO_MailingJob',
+          'localizable' => 0,
         ) ,
         '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',
+          'table_name' => 'civicrm_mailing_job',
+          'entity' => 'MailingJob',
+          'bao' => 'CRM_Mailing_BAO_MailingJob',
+          'localizable' => 0,
         ) ,
       );
       CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'fields_callback', Civi::$statics[__CLASS__]['fields']);
@@ -280,4 +330,11 @@ class CRM_Mailing_DAO_MailingJob extends CRM_Core_DAO {
     $r = CRM_Core_DAO_AllCoreTables::getExports(__CLASS__, 'mailing_job', $prefix, array());
     return $r;
   }
+  /**
+   * Returns the list of indices
+   */
+  public static function indices($localize = TRUE) {
+    $indices = array();
+    return ($localize && !empty($indices)) ? CRM_Core_DAO_AllCoreTables::multilingualize(__CLASS__, $indices) : $indices;
+  }
 }