Merge pull request #23961 from totten/master-mgdphp-caseacttype
[civicrm-core.git] / CRM / Core / DAO / UserJob.php
index ebe7e1ee75f100866f65c918a4a02ceecdf7c8b6..c428300337895bf254d8aa8040f1611133a89068 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Core/UserJob.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:58e6fcaa028d157bfa074a073111239d)
+ * (GenCodeChecksum:4976da6332cddd37dbae0071e2319611)
  */
 
 /**
@@ -30,6 +30,15 @@ class CRM_Core_DAO_UserJob extends CRM_Core_DAO {
    */
   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
    *
@@ -101,11 +110,13 @@ class CRM_Core_DAO_UserJob extends CRM_Core_DAO {
   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
@@ -125,6 +136,15 @@ class CRM_Core_DAO_UserJob extends CRM_Core_DAO {
    */
   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.
    */
@@ -303,12 +323,15 @@ class CRM_Core_DAO_UserJob extends CRM_Core_DAO {
           ],
           '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',
@@ -350,6 +373,24 @@ class CRM_Core_DAO_UserJob extends CRM_Core_DAO {
           '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']);
     }