Merge pull request #10092 from jitendrapurohit/CRM-20339
[civicrm-core.git] / CRM / Core / DAO / Job.php
index 411f6733e2bfa19f81ccba6c25ec5262831c6aaa..18149b5428f0f3fecae066374208d5c08ce52082 100644 (file)
@@ -3,7 +3,7 @@
 +--------------------------------------------------------------------+
 | CiviCRM version 4.7                                                |
 +--------------------------------------------------------------------+
-| Copyright CiviCRM LLC (c) 2004-2016                                |
+| Copyright CiviCRM LLC (c) 2004-2017                                |
 +--------------------------------------------------------------------+
 | This file is a part of CiviCRM.                                    |
 |                                                                    |
 */
 /**
  * @package CRM
- * @copyright CiviCRM LLC (c) 2004-2016
+ * @copyright CiviCRM LLC (c) 2004-2017
  *
  * Generated from xml/schema/CRM/Core/Job.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:5c0e5cb30a7aaee5be8f3a2e6d23b84b)
+ * (GenCodeChecksum:c3340527b2d2cb17211eba848371b469)
  */
 require_once 'CRM/Core/DAO.php';
 require_once 'CRM/Utils/Type.php';
+/**
+ * CRM_Core_DAO_Job constructor.
+ */
 class CRM_Core_DAO_Job extends CRM_Core_DAO {
   /**
-   * static instance to hold the table name
+   * Static instance to hold the table name.
    *
    * @var string
    */
   static $_tableName = 'civicrm_job';
   /**
-   * static value to see if we should log any modifications to
-   * this table in the civicrm_log table
+   * Should CiviCRM log any modifications to this table in the civicrm_log table.
    *
    * @var boolean
    */
@@ -115,16 +117,14 @@ class CRM_Core_DAO_Job extends CRM_Core_DAO {
    */
   public $is_active;
   /**
-   * class constructor
-   *
-   * @return civicrm_job
+   * Class constructor.
    */
   function __construct() {
     $this->__table = 'civicrm_job';
     parent::__construct();
   }
   /**
-   * Returns foreign keys and entity references
+   * Returns foreign keys and entity references.
    *
    * @return array
    *   [CRM_Core_Reference_Interface]
@@ -151,6 +151,10 @@ class CRM_Core_DAO_Job extends CRM_Core_DAO {
           'title' => ts('Job ID') ,
           'description' => 'Job Id',
           'required' => true,
+          'table_name' => 'civicrm_job',
+          'entity' => 'Job',
+          'bao' => 'CRM_Core_BAO_Job',
+          'localizable' => 0,
         ) ,
         'domain_id' => array(
           'name' => 'domain_id',
@@ -158,6 +162,10 @@ class CRM_Core_DAO_Job extends CRM_Core_DAO {
           'title' => ts('Job Domain') ,
           'description' => 'Which Domain is this scheduled job for',
           'required' => true,
+          'table_name' => 'civicrm_job',
+          'entity' => 'Job',
+          'bao' => 'CRM_Core_BAO_Job',
+          'localizable' => 0,
           'FKClassName' => 'CRM_Core_DAO_Domain',
           'pseudoconstant' => array(
             'table' => 'civicrm_domain',
@@ -173,6 +181,10 @@ class CRM_Core_DAO_Job extends CRM_Core_DAO {
           'maxlength' => 8,
           'size' => CRM_Utils_Type::EIGHT,
           'default' => 'Daily',
+          'table_name' => 'civicrm_job',
+          'entity' => 'Job',
+          'bao' => 'CRM_Core_BAO_Job',
+          'localizable' => 0,
           'html' => array(
             'type' => 'Select',
           ) ,
@@ -186,6 +198,10 @@ class CRM_Core_DAO_Job extends CRM_Core_DAO {
           'title' => ts('Last Run') ,
           'description' => 'When was this cron entry last run',
           'default' => 'NULL',
+          'table_name' => 'civicrm_job',
+          'entity' => 'Job',
+          'bao' => 'CRM_Core_BAO_Job',
+          'localizable' => 0,
         ) ,
         'scheduled_run_date' => array(
           'name' => 'scheduled_run_date',
@@ -194,6 +210,10 @@ class CRM_Core_DAO_Job extends CRM_Core_DAO {
           'description' => 'When is this cron entry scheduled to run',
           'required' => false,
           'default' => 'NULL',
+          'table_name' => 'civicrm_job',
+          'entity' => 'Job',
+          'bao' => 'CRM_Core_BAO_Job',
+          'localizable' => 0,
         ) ,
         'name' => array(
           'name' => 'name',
@@ -202,6 +222,10 @@ class CRM_Core_DAO_Job extends CRM_Core_DAO {
           'description' => 'Title of the job',
           'maxlength' => 255,
           'size' => CRM_Utils_Type::HUGE,
+          'table_name' => 'civicrm_job',
+          'entity' => 'Job',
+          'bao' => 'CRM_Core_BAO_Job',
+          'localizable' => 0,
         ) ,
         'description' => array(
           'name' => 'description',
@@ -210,6 +234,10 @@ class CRM_Core_DAO_Job extends CRM_Core_DAO {
           'description' => 'Description of the job',
           'maxlength' => 255,
           'size' => CRM_Utils_Type::HUGE,
+          'table_name' => 'civicrm_job',
+          'entity' => 'Job',
+          'bao' => 'CRM_Core_BAO_Job',
+          'localizable' => 0,
         ) ,
         'api_entity' => array(
           'name' => 'api_entity',
@@ -218,6 +246,10 @@ class CRM_Core_DAO_Job extends CRM_Core_DAO {
           'description' => 'Entity of the job api call',
           'maxlength' => 255,
           'size' => CRM_Utils_Type::HUGE,
+          'table_name' => 'civicrm_job',
+          'entity' => 'Job',
+          'bao' => 'CRM_Core_BAO_Job',
+          'localizable' => 0,
         ) ,
         'api_action' => array(
           'name' => 'api_action',
@@ -226,6 +258,10 @@ class CRM_Core_DAO_Job extends CRM_Core_DAO {
           'description' => 'Action of the job api call',
           'maxlength' => 255,
           'size' => CRM_Utils_Type::HUGE,
+          'table_name' => 'civicrm_job',
+          'entity' => 'Job',
+          'bao' => 'CRM_Core_BAO_Job',
+          'localizable' => 0,
         ) ,
         'parameters' => array(
           'name' => 'parameters',
@@ -234,6 +270,10 @@ class CRM_Core_DAO_Job extends CRM_Core_DAO {
           'description' => 'List of parameters to the command.',
           'rows' => 4,
           'cols' => 60,
+          'table_name' => 'civicrm_job',
+          'entity' => 'Job',
+          'bao' => 'CRM_Core_BAO_Job',
+          'localizable' => 0,
           'html' => array(
             'type' => 'TextArea',
           ) ,
@@ -243,6 +283,10 @@ class CRM_Core_DAO_Job extends CRM_Core_DAO {
           'type' => CRM_Utils_Type::T_BOOLEAN,
           'title' => ts('Job Is Active?') ,
           'description' => 'Is this job active?',
+          'table_name' => 'civicrm_job',
+          'entity' => 'Job',
+          'bao' => 'CRM_Core_BAO_Job',
+          'localizable' => 0,
         ) ,
       );
       CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'fields_callback', Civi::$statics[__CLASS__]['fields']);
@@ -299,4 +343,11 @@ class CRM_Core_DAO_Job extends CRM_Core_DAO {
     $r = CRM_Core_DAO_AllCoreTables::getExports(__CLASS__, '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;
+  }
 }