projects
/
civicrm-core.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge pull request #10092 from jitendrapurohit/CRM-20339
[civicrm-core.git]
/
CRM
/
Core
/
DAO
/
Job.php
diff --git
a/CRM/Core/DAO/Job.php
b/CRM/Core/DAO/Job.php
index 05dc18a16a6342c955315c634042a7561422dc3d..18149b5428f0f3fecae066374208d5c08ce52082 100644
(file)
--- a/
CRM/Core/DAO/Job.php
+++ b/
CRM/Core/DAO/Job.php
@@
-30,20
+30,22
@@
*
* Generated from xml/schema/CRM/Core/Job.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
*
* 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';
*/
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 {
/**
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';
/**
*
* @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
*/
*
* @var boolean
*/
@@
-115,16
+117,14
@@
class CRM_Core_DAO_Job extends CRM_Core_DAO {
*/
public $is_active;
/**
*/
public $is_active;
/**
- * class constructor
- *
- * @return civicrm_job
+ * Class constructor.
*/
function __construct() {
$this->__table = 'civicrm_job';
parent::__construct();
}
/**
*/
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]
*
* @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,
'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',
) ,
'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,
'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',
'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',
'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',
) ,
'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',
'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',
) ,
'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',
'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',
) ,
'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,
'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',
) ,
'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,
'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',
) ,
'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,
'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',
) ,
'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,
'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',
) ,
'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,
'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',
) ,
'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?',
'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']);
) ,
);
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;
}
$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;
+ }
}
}