dev/core#2132 Fix for sort on search results
[civicrm-core.git] / CRM / Contact / DAO / Group.php
index 3c051ec4f49442505966446c8f6f54a0f2b66981..c6428e5b0ef4b03ad27157625bfeae6de6476e00 100644 (file)
@@ -6,13 +6,15 @@
  *
  * Generated from xml/schema/CRM/Contact/Group.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:a8a3812a392b7544441cdbe1f9500f21)
+ * (GenCodeChecksum:25bcea958ed3b88317a2bbb89169b0a6)
  */
 
 /**
  * Database access object for the Group entity.
  */
 class CRM_Contact_DAO_Group extends CRM_Core_DAO {
+  const EXT = 'civicrm';
+  const TABLE_ADDED = '1.1';
 
   /**
    * Static instance to hold the table name.
@@ -173,6 +175,20 @@ class CRM_Contact_DAO_Group extends CRM_Core_DAO {
    */
   public $modified_id;
 
+  /**
+   * Alternative public title for this Group.
+   *
+   * @var string
+   */
+  public $frontend_title;
+
+  /**
+   * Alternative public description of the group.
+   *
+   * @var text
+   */
+  public $frontend_description;
+
   /**
    * Class constructor.
    */
@@ -183,9 +199,12 @@ class CRM_Contact_DAO_Group extends CRM_Core_DAO {
 
   /**
    * Returns localized title of this entity.
+   *
+   * @param bool $plural
+   *   Whether to return the plural version of the title.
    */
-  public static function getEntityTitle() {
-    return ts('Groups');
+  public static function getEntityTitle($plural = FALSE) {
+    return $plural ? ts('Groups') : ts('Group');
   }
 
   /**
@@ -245,8 +264,9 @@ class CRM_Contact_DAO_Group extends CRM_Core_DAO {
           'type' => CRM_Utils_Type::T_STRING,
           'title' => ts('Group Title'),
           'description' => ts('Name of Group.'),
-          'maxlength' => 64,
-          'size' => CRM_Utils_Type::BIG,
+          'required' => TRUE,
+          'maxlength' => 255,
+          'size' => CRM_Utils_Type::HUGE,
           'where' => 'civicrm_group.title',
           'table_name' => 'civicrm_group',
           'entity' => 'Group',
@@ -496,6 +516,42 @@ class CRM_Contact_DAO_Group extends CRM_Core_DAO {
           'FKClassName' => 'CRM_Contact_DAO_Contact',
           'add' => '4.5',
         ],
+        'frontend_title' => [
+          'name' => 'frontend_title',
+          'type' => CRM_Utils_Type::T_STRING,
+          'title' => ts('Public Group Title'),
+          'description' => ts('Alternative public title for this Group.'),
+          'maxlength' => 255,
+          'size' => CRM_Utils_Type::HUGE,
+          'where' => 'civicrm_group.frontend_title',
+          'default' => 'NULL',
+          'table_name' => 'civicrm_group',
+          'entity' => 'Group',
+          'bao' => 'CRM_Contact_BAO_Group',
+          'localizable' => 1,
+          'html' => [
+            'type' => 'Text',
+          ],
+          'add' => '5.31',
+        ],
+        'frontend_description' => [
+          'name' => 'frontend_description',
+          'type' => CRM_Utils_Type::T_TEXT,
+          'title' => ts('Public Group Description'),
+          'description' => ts('Alternative public description of the group.'),
+          'rows' => 2,
+          'cols' => 60,
+          'where' => 'civicrm_group.frontend_description',
+          'default' => 'NULL',
+          'table_name' => 'civicrm_group',
+          'entity' => 'Group',
+          'bao' => 'CRM_Contact_BAO_Group',
+          'localizable' => 1,
+          'html' => [
+            'type' => 'TextArea',
+          ],
+          'add' => '5.31',
+        ],
       ];
       CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'fields_callback', Civi::$statics[__CLASS__]['fields']);
     }