Merge pull request #14249 from yashodha/959_dev
[civicrm-core.git] / CRM / Core / DAO / Navigation.php
index 491afef73f189905279b583c80eaea8b8a363e90..2aa3fc3d0d21a88c4deac3842258647ceda39609 100644 (file)
@@ -2,11 +2,11 @@
 
 /**
  * @package CRM
- * @copyright CiviCRM LLC (c) 2004-2018
+ * @copyright CiviCRM LLC (c) 2004-2019
  *
  * Generated from xml/schema/CRM/Core/Navigation.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:53624a8994290c1d2ae8f4158c89d3b2)
+ * (GenCodeChecksum:377bbf9cfce4cb146a9638344c718b11)
  */
 
 /**
@@ -19,24 +19,24 @@ class CRM_Core_DAO_Navigation extends CRM_Core_DAO {
    *
    * @var string
    */
-  static $_tableName = 'civicrm_navigation';
+  public static $_tableName = 'civicrm_navigation';
 
   /**
    * Should CiviCRM log any modifications to this table in the civicrm_log table.
    *
    * @var bool
    */
-  static $_log = FALSE;
+  public static $_log = FALSE;
 
   /**
-   * @var int unsigned
+   * @var int
    */
   public $id;
 
   /**
    * Which Domain is this navigation item for
    *
-   * @var int unsigned
+   * @var int
    */
   public $domain_id;
 
@@ -85,21 +85,21 @@ class CRM_Core_DAO_Navigation extends CRM_Core_DAO {
   /**
    * Parent navigation item, used for grouping
    *
-   * @var int unsigned
+   * @var int
    */
   public $parent_id;
 
   /**
    * Is this navigation item active?
    *
-   * @var boolean
+   * @var bool
    */
   public $is_active;
 
   /**
    * If separator needs to be added after this menu item
    *
-   * @var boolean
+   * @var bool
    */
   public $has_separator;
 
@@ -126,7 +126,7 @@ class CRM_Core_DAO_Navigation 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(), 'domain_id', 'civicrm_domain', 'id');
       Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'parent_id', 'civicrm_navigation', 'id');
       CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'links_callback', Civi::$statics[__CLASS__]['links']);
@@ -147,6 +147,7 @@ class CRM_Core_DAO_Navigation extends CRM_Core_DAO {
           'type' => CRM_Utils_Type::T_INT,
           'title' => ts('Navigation ID'),
           'required' => TRUE,
+          'where' => 'civicrm_navigation.id',
           'table_name' => 'civicrm_navigation',
           'entity' => 'Navigation',
           'bao' => 'CRM_Core_BAO_Navigation',
@@ -156,8 +157,9 @@ class CRM_Core_DAO_Navigation extends CRM_Core_DAO {
           'name' => 'domain_id',
           'type' => CRM_Utils_Type::T_INT,
           'title' => ts('Navigation Domain'),
-          'description' => 'Which Domain is this navigation item for',
+          'description' => ts('Which Domain is this navigation item for'),
           'required' => TRUE,
+          'where' => 'civicrm_navigation.domain_id',
           'table_name' => 'civicrm_navigation',
           'entity' => 'Navigation',
           'bao' => 'CRM_Core_BAO_Navigation',
@@ -167,15 +169,16 @@ class CRM_Core_DAO_Navigation extends CRM_Core_DAO {
             'table' => 'civicrm_domain',
             'keyColumn' => 'id',
             'labelColumn' => 'name',
-          ]
+          ],
         ],
         'label' => [
           'name' => 'label',
           'type' => CRM_Utils_Type::T_STRING,
           'title' => ts('Navigation Item Label'),
-          'description' => 'Navigation Title',
+          'description' => ts('Navigation Title'),
           'maxlength' => 255,
           'size' => CRM_Utils_Type::HUGE,
+          'where' => 'civicrm_navigation.label',
           'table_name' => 'civicrm_navigation',
           'entity' => 'Navigation',
           'bao' => 'CRM_Core_BAO_Navigation',
@@ -185,9 +188,10 @@ class CRM_Core_DAO_Navigation extends CRM_Core_DAO {
           'name' => 'name',
           'type' => CRM_Utils_Type::T_STRING,
           'title' => ts('Navigation Item Machine Name'),
-          'description' => 'Internal Name',
+          'description' => ts('Internal Name'),
           'maxlength' => 255,
           'size' => CRM_Utils_Type::HUGE,
+          'where' => 'civicrm_navigation.name',
           'table_name' => 'civicrm_navigation',
           'entity' => 'Navigation',
           'bao' => 'CRM_Core_BAO_Navigation',
@@ -197,9 +201,10 @@ class CRM_Core_DAO_Navigation extends CRM_Core_DAO {
           'name' => 'url',
           'type' => CRM_Utils_Type::T_STRING,
           'title' => ts('Url'),
-          'description' => 'url in case of custom navigation link',
+          'description' => ts('url in case of custom navigation link'),
           'maxlength' => 255,
           'size' => CRM_Utils_Type::HUGE,
+          'where' => 'civicrm_navigation.url',
           'table_name' => 'civicrm_navigation',
           'entity' => 'Navigation',
           'bao' => 'CRM_Core_BAO_Navigation',
@@ -209,10 +214,11 @@ class CRM_Core_DAO_Navigation extends CRM_Core_DAO {
           'name' => 'icon',
           'type' => CRM_Utils_Type::T_STRING,
           'title' => ts('Icon'),
-          'description' => 'CSS class name for an icon',
+          'description' => ts('CSS class name for an icon'),
           'required' => FALSE,
           'maxlength' => 255,
           'size' => CRM_Utils_Type::HUGE,
+          'where' => 'civicrm_navigation.icon',
           'default' => 'NULL',
           'table_name' => 'civicrm_navigation',
           'entity' => 'Navigation',
@@ -223,9 +229,10 @@ class CRM_Core_DAO_Navigation extends CRM_Core_DAO {
           'name' => 'permission',
           'type' => CRM_Utils_Type::T_STRING,
           'title' => ts('Required Permission'),
-          'description' => 'Permission for menu item',
+          'description' => ts('Permission for menu item'),
           'maxlength' => 255,
           'size' => CRM_Utils_Type::HUGE,
+          'where' => 'civicrm_navigation.permission',
           'table_name' => 'civicrm_navigation',
           'entity' => 'Navigation',
           'bao' => 'CRM_Core_BAO_Navigation',
@@ -235,9 +242,10 @@ class CRM_Core_DAO_Navigation extends CRM_Core_DAO {
           'name' => 'permission_operator',
           'type' => CRM_Utils_Type::T_STRING,
           'title' => ts('Permission Operator'),
-          'description' => 'Permission Operator',
+          'description' => ts('Permission Operator'),
           'maxlength' => 3,
           'size' => CRM_Utils_Type::FOUR,
+          'where' => 'civicrm_navigation.permission_operator',
           'table_name' => 'civicrm_navigation',
           'entity' => 'Navigation',
           'bao' => 'CRM_Core_BAO_Navigation',
@@ -247,7 +255,8 @@ class CRM_Core_DAO_Navigation extends CRM_Core_DAO {
           'name' => 'parent_id',
           'type' => CRM_Utils_Type::T_INT,
           'title' => ts('Navigation parent ID'),
-          'description' => 'Parent navigation item, used for grouping',
+          'description' => ts('Parent navigation item, used for grouping'),
+          'where' => 'civicrm_navigation.parent_id',
           'table_name' => 'civicrm_navigation',
           'entity' => 'Navigation',
           'bao' => 'CRM_Core_BAO_Navigation',
@@ -258,13 +267,14 @@ class CRM_Core_DAO_Navigation extends CRM_Core_DAO {
             'keyColumn' => 'id',
             'labelColumn' => 'label',
             'nameColumn' => 'name',
-          ]
+          ],
         ],
         'is_active' => [
           'name' => 'is_active',
           'type' => CRM_Utils_Type::T_BOOLEAN,
           'title' => ts('Is Active'),
-          'description' => 'Is this navigation item active?',
+          'description' => ts('Is this navigation item active?'),
+          'where' => 'civicrm_navigation.is_active',
           'table_name' => 'civicrm_navigation',
           'entity' => 'Navigation',
           'bao' => 'CRM_Core_BAO_Navigation',
@@ -274,7 +284,8 @@ class CRM_Core_DAO_Navigation extends CRM_Core_DAO {
           'name' => 'has_separator',
           'type' => CRM_Utils_Type::T_BOOLEAN,
           'title' => ts('Use separator'),
-          'description' => 'If separator needs to be added after this menu item',
+          'description' => ts('If separator needs to be added after this menu item'),
+          'where' => 'civicrm_navigation.has_separator',
           'table_name' => 'civicrm_navigation',
           'entity' => 'Navigation',
           'bao' => 'CRM_Core_BAO_Navigation',
@@ -284,7 +295,8 @@ class CRM_Core_DAO_Navigation extends CRM_Core_DAO {
           'name' => 'weight',
           'type' => CRM_Utils_Type::T_INT,
           'title' => ts('Order'),
-          'description' => 'Ordering of the navigation items in various blocks.',
+          'description' => ts('Ordering of the navigation items in various blocks.'),
+          'where' => 'civicrm_navigation.weight',
           'table_name' => 'civicrm_navigation',
           'entity' => 'Navigation',
           'bao' => 'CRM_Core_BAO_Navigation',