Merge pull request #14326 from civicrm/5.14
[civicrm-core.git] / CRM / Contact / DAO / Group.php
index 395779023d4204341db21ad722ec97b6c5ff50dd..3e2eddaf1f04e8cc1bccceb4bb3c14b9f27dcace 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Contact/Group.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:48373e283a62b36aa59ac812f8cb4134)
+ * (GenCodeChecksum:28c32e7038a2b7aa7ca2c45117660974)
  */
 
 /**
@@ -19,19 +19,19 @@ class CRM_Contact_DAO_Group extends CRM_Core_DAO {
    *
    * @var string
    */
-  static $_tableName = 'civicrm_group';
+  public static $_tableName = 'civicrm_group';
 
   /**
    * Should CiviCRM log any modifications to this table in the civicrm_log table.
    *
    * @var bool
    */
-  static $_log = TRUE;
+  public static $_log = TRUE;
 
   /**
    * Group ID
    *
-   * @var int unsigned
+   * @var int
    */
   public $id;
 
@@ -66,14 +66,14 @@ class CRM_Contact_DAO_Group extends CRM_Core_DAO {
   /**
    * FK to saved search table.
    *
-   * @var int unsigned
+   * @var int
    */
   public $saved_search_id;
 
   /**
    * Is this entry active?
    *
-   * @var boolean
+   * @var bool
    */
   public $is_active;
 
@@ -143,26 +143,26 @@ class CRM_Contact_DAO_Group extends CRM_Core_DAO {
   /**
    * Is this group hidden?
    *
-   * @var boolean
+   * @var bool
    */
   public $is_hidden;
 
   /**
-   * @var boolean
+   * @var bool
    */
   public $is_reserved;
 
   /**
    * FK to contact table.
    *
-   * @var int unsigned
+   * @var int
    */
   public $created_id;
 
   /**
    * FK to contact table.
    *
-   * @var int unsigned
+   * @var int
    */
   public $modified_id;
 
@@ -182,7 +182,7 @@ class CRM_Contact_DAO_Group extends CRM_Core_DAO {
    */
   public static function getReferenceColumns() {
     if (!isset(Civi::$statics[__CLASS__]['links'])) {
-      Civi::$statics[__CLASS__]['links'] = static ::createReferenceColumns(__CLASS__);
+      Civi::$statics[__CLASS__]['links'] = static::createReferenceColumns(__CLASS__);
       Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'saved_search_id', 'civicrm_saved_search', 'id');
       Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'created_id', 'civicrm_contact', 'id');
       Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'modified_id', 'civicrm_contact', 'id');
@@ -205,6 +205,7 @@ class CRM_Contact_DAO_Group extends CRM_Core_DAO {
           'title' => ts('Group ID'),
           'description' => ts('Group ID'),
           'required' => TRUE,
+          'where' => 'civicrm_group.id',
           'table_name' => 'civicrm_group',
           'entity' => 'Group',
           'bao' => 'CRM_Contact_BAO_Group',
@@ -217,6 +218,7 @@ class CRM_Contact_DAO_Group extends CRM_Core_DAO {
           'description' => ts('Internal name of Group.'),
           'maxlength' => 64,
           'size' => CRM_Utils_Type::BIG,
+          'where' => 'civicrm_group.name',
           'table_name' => 'civicrm_group',
           'entity' => 'Group',
           'bao' => 'CRM_Contact_BAO_Group',
@@ -229,10 +231,14 @@ class CRM_Contact_DAO_Group extends CRM_Core_DAO {
           'description' => ts('Name of Group.'),
           'maxlength' => 64,
           'size' => CRM_Utils_Type::BIG,
+          'where' => 'civicrm_group.title',
           'table_name' => 'civicrm_group',
           'entity' => 'Group',
           'bao' => 'CRM_Contact_BAO_Group',
           'localizable' => 1,
+          'html' => [
+            'type' => 'Text',
+          ],
         ],
         'description' => [
           'name' => 'description',
@@ -241,6 +247,7 @@ class CRM_Contact_DAO_Group extends CRM_Core_DAO {
           'description' => ts('Optional verbose description of the group.'),
           'rows' => 2,
           'cols' => 60,
+          'where' => 'civicrm_group.description',
           'table_name' => 'civicrm_group',
           'entity' => 'Group',
           'bao' => 'CRM_Contact_BAO_Group',
@@ -256,6 +263,7 @@ class CRM_Contact_DAO_Group extends CRM_Core_DAO {
           'description' => ts('Module or process which created this group.'),
           'maxlength' => 64,
           'size' => CRM_Utils_Type::BIG,
+          'where' => 'civicrm_group.source',
           'table_name' => 'civicrm_group',
           'entity' => 'Group',
           'bao' => 'CRM_Contact_BAO_Group',
@@ -266,6 +274,7 @@ class CRM_Contact_DAO_Group extends CRM_Core_DAO {
           'type' => CRM_Utils_Type::T_INT,
           'title' => ts('Saved Search ID'),
           'description' => ts('FK to saved search table.'),
+          'where' => 'civicrm_group.saved_search_id',
           'table_name' => 'civicrm_group',
           'entity' => 'Group',
           'bao' => 'CRM_Contact_BAO_Group',
@@ -277,6 +286,7 @@ class CRM_Contact_DAO_Group extends CRM_Core_DAO {
           'type' => CRM_Utils_Type::T_BOOLEAN,
           'title' => ts('Group Enabled'),
           'description' => ts('Is this entry active?'),
+          'where' => 'civicrm_group.is_active',
           'table_name' => 'civicrm_group',
           'entity' => 'Group',
           'bao' => 'CRM_Contact_BAO_Group',
@@ -289,6 +299,7 @@ class CRM_Contact_DAO_Group extends CRM_Core_DAO {
           'description' => ts('In what context(s) is this field visible.'),
           'maxlength' => 24,
           'size' => CRM_Utils_Type::MEDIUM,
+          'where' => 'civicrm_group.visibility',
           'default' => 'User and User Admin Only',
           'table_name' => 'civicrm_group',
           'entity' => 'Group',
@@ -299,13 +310,14 @@ class CRM_Contact_DAO_Group extends CRM_Core_DAO {
           ],
           'pseudoconstant' => [
             'callback' => 'CRM_Core_SelectValues::groupVisibility',
-          ]
+          ],
         ],
         'where_clause' => [
           'name' => 'where_clause',
           'type' => CRM_Utils_Type::T_TEXT,
           'title' => ts('Group Where Clause'),
           'description' => ts('the sql where clause if a saved search acl'),
+          'where' => 'civicrm_group.where_clause',
           'table_name' => 'civicrm_group',
           'entity' => 'Group',
           'bao' => 'CRM_Contact_BAO_Group',
@@ -316,6 +328,7 @@ class CRM_Contact_DAO_Group extends CRM_Core_DAO {
           'type' => CRM_Utils_Type::T_TEXT,
           'title' => ts('Tables For Select Clause'),
           'description' => ts('the tables to be included in a select data'),
+          'where' => 'civicrm_group.select_tables',
           'table_name' => 'civicrm_group',
           'entity' => 'Group',
           'bao' => 'CRM_Contact_BAO_Group',
@@ -327,6 +340,7 @@ class CRM_Contact_DAO_Group extends CRM_Core_DAO {
           'type' => CRM_Utils_Type::T_TEXT,
           'title' => ts('Tables For Where Clause'),
           'description' => ts('the tables to be included in the count statement'),
+          'where' => 'civicrm_group.where_tables',
           'table_name' => 'civicrm_group',
           'entity' => 'Group',
           'bao' => 'CRM_Contact_BAO_Group',
@@ -340,6 +354,7 @@ class CRM_Contact_DAO_Group extends CRM_Core_DAO {
           'description' => ts('FK to group type'),
           'maxlength' => 128,
           'size' => CRM_Utils_Type::HUGE,
+          'where' => 'civicrm_group.group_type',
           'table_name' => 'civicrm_group',
           'entity' => 'Group',
           'bao' => 'CRM_Contact_BAO_Group',
@@ -348,7 +363,7 @@ class CRM_Contact_DAO_Group extends CRM_Core_DAO {
           'pseudoconstant' => [
             'optionGroupName' => 'group_type',
             'optionEditPath' => 'civicrm/admin/options/group_type',
-          ]
+          ],
         ],
         'cache_date' => [
           'name' => 'cache_date',
@@ -356,6 +371,7 @@ class CRM_Contact_DAO_Group extends CRM_Core_DAO {
           'title' => ts('Group Cache Date'),
           'description' => ts('Date when we created the cache for a smart group'),
           'required' => FALSE,
+          'where' => 'civicrm_group.cache_date',
           'table_name' => 'civicrm_group',
           'entity' => 'Group',
           'bao' => 'CRM_Contact_BAO_Group',
@@ -367,6 +383,7 @@ class CRM_Contact_DAO_Group extends CRM_Core_DAO {
           'title' => ts('Next Group Refresh Time'),
           'description' => ts('Date and time when we need to refresh the cache next.'),
           'required' => FALSE,
+          'where' => 'civicrm_group.refresh_date',
           'table_name' => 'civicrm_group',
           'entity' => 'Group',
           'bao' => 'CRM_Contact_BAO_Group',
@@ -377,6 +394,7 @@ class CRM_Contact_DAO_Group extends CRM_Core_DAO {
           'type' => CRM_Utils_Type::T_TEXT,
           'title' => ts('Group Parents'),
           'description' => ts('IDs of the parent(s)'),
+          'where' => 'civicrm_group.parents',
           'table_name' => 'civicrm_group',
           'entity' => 'Group',
           'bao' => 'CRM_Contact_BAO_Group',
@@ -384,13 +402,14 @@ class CRM_Contact_DAO_Group extends CRM_Core_DAO {
           'serialize' => self::SERIALIZE_COMMA,
           'pseudoconstant' => [
             'callback' => 'CRM_Core_PseudoConstant::allGroup',
-          ]
+          ],
         ],
         'children' => [
           'name' => 'children',
           'type' => CRM_Utils_Type::T_TEXT,
           'title' => ts('Group Children'),
           'description' => ts('IDs of the child(ren)'),
+          'where' => 'civicrm_group.children',
           'table_name' => 'civicrm_group',
           'entity' => 'Group',
           'bao' => 'CRM_Contact_BAO_Group',
@@ -401,6 +420,7 @@ class CRM_Contact_DAO_Group extends CRM_Core_DAO {
           'type' => CRM_Utils_Type::T_BOOLEAN,
           'title' => ts('Group is Hidden'),
           'description' => ts('Is this group hidden?'),
+          'where' => 'civicrm_group.is_hidden',
           'default' => '0',
           'table_name' => 'civicrm_group',
           'entity' => 'Group',
@@ -411,6 +431,7 @@ class CRM_Contact_DAO_Group extends CRM_Core_DAO {
           'name' => 'is_reserved',
           'type' => CRM_Utils_Type::T_BOOLEAN,
           'title' => ts('Group is Reserved'),
+          'where' => 'civicrm_group.is_reserved',
           'default' => '0',
           'table_name' => 'civicrm_group',
           'entity' => 'Group',
@@ -422,6 +443,7 @@ class CRM_Contact_DAO_Group extends CRM_Core_DAO {
           'type' => CRM_Utils_Type::T_INT,
           'title' => ts('Group Created By'),
           'description' => ts('FK to contact table.'),
+          'where' => 'civicrm_group.created_id',
           'table_name' => 'civicrm_group',
           'entity' => 'Group',
           'bao' => 'CRM_Contact_BAO_Group',
@@ -433,6 +455,7 @@ class CRM_Contact_DAO_Group extends CRM_Core_DAO {
           'type' => CRM_Utils_Type::T_INT,
           'title' => ts('Group Modified By'),
           'description' => ts('FK to contact table.'),
+          'where' => 'civicrm_group.modified_id',
           'table_name' => 'civicrm_group',
           'entity' => 'Group',
           'bao' => 'CRM_Contact_BAO_Group',