*
* Generated from xml/schema/CRM/Core/UserJob.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:58e6fcaa028d157bfa074a073111239d)
+ * (GenCodeChecksum:4976da6332cddd37dbae0071e2319611)
*/
/**
*/
public static $_log = FALSE;
+ /**
+ * Paths for accessing this entity in the UI.
+ *
+ * @var string[]
+ */
+ protected static $_paths = [
+ 'view' => 'civicrm/import/contact/summary?reset=1&user_job_id=[id]',
+ ];
+
/**
* Job ID
*
public $status_id;
/**
- * @var int|string
- * (SQL type: int unsigned)
+ * Name of the job type, which will allow finding the correct class
+ *
+ * @var string
+ * (SQL type: varchar(64))
* Note that values will be retrieved from the database as a string.
*/
- public $type_id;
+ public $job_type;
/**
* FK to Queue
*/
public $metadata;
+ /**
+ * Is this a template configuration (for use by other/future jobs)?
+ *
+ * @var bool|string
+ * (SQL type: tinyint)
+ * Note that values will be retrieved from the database as a string.
+ */
+ public $is_template;
+
/**
* Class constructor.
*/
],
'add' => '5.50',
],
- 'type_id' => [
- 'name' => 'type_id',
- 'type' => CRM_Utils_Type::T_INT,
- 'title' => ts('User Job Type ID'),
+ 'job_type' => [
+ 'name' => 'job_type',
+ 'type' => CRM_Utils_Type::T_STRING,
+ 'title' => ts('User Job Type'),
+ 'description' => ts('Name of the job type, which will allow finding the correct class'),
'required' => TRUE,
- 'where' => 'civicrm_user_job.type_id',
+ 'maxlength' => 64,
+ 'size' => CRM_Utils_Type::BIG,
+ 'where' => 'civicrm_user_job.job_type',
'table_name' => 'civicrm_user_job',
'entity' => 'UserJob',
'bao' => 'CRM_Core_BAO_UserJob',
'serialize' => self::SERIALIZE_JSON,
'add' => '5.50',
],
+ 'is_template' => [
+ 'name' => 'is_template',
+ 'type' => CRM_Utils_Type::T_BOOLEAN,
+ 'title' => ts('Is Template'),
+ 'description' => ts('Is this a template configuration (for use by other/future jobs)?'),
+ 'required' => TRUE,
+ 'where' => 'civicrm_user_job.is_template',
+ 'default' => '0',
+ 'table_name' => 'civicrm_user_job',
+ 'entity' => 'UserJob',
+ 'bao' => 'CRM_Core_BAO_UserJob',
+ 'localizable' => 0,
+ 'html' => [
+ 'type' => 'CheckBox',
+ 'label' => ts("Is Template"),
+ ],
+ 'add' => '5.51',
+ ],
];
CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'fields_callback', Civi::$statics[__CLASS__]['fields']);
}