Merge pull request #14062 from civicrm/5.13
[civicrm-core.git] / CRM / Core / DAO / Menu.php
index f9f8087dfae95a83baf0c6eabab34f518ad84980..3815647ba270afb98e78438d314c381500300765 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/Menu.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:78591d8ca17fb4eb39a7123f35399035)
+ * (GenCodeChecksum:ea477a411301cae7e78667099c0f654c)
  */
 
 /**
@@ -19,14 +19,14 @@ class CRM_Core_DAO_Menu extends CRM_Core_DAO {
    *
    * @var string
    */
-  static $_tableName = 'civicrm_menu';
+  public static $_tableName = 'civicrm_menu';
 
   /**
    * 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
@@ -194,7 +194,7 @@ class CRM_Core_DAO_Menu 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(), 'component_id', 'civicrm_component', 'id');
       CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'links_callback', Civi::$statics[__CLASS__]['links']);
@@ -215,6 +215,7 @@ class CRM_Core_DAO_Menu extends CRM_Core_DAO {
           'type' => CRM_Utils_Type::T_INT,
           'title' => ts('Menu ID'),
           'required' => TRUE,
+          'where' => 'civicrm_menu.id',
           'table_name' => 'civicrm_menu',
           'entity' => 'Menu',
           'bao' => 'CRM_Core_DAO_Menu',
@@ -224,8 +225,9 @@ class CRM_Core_DAO_Menu extends CRM_Core_DAO {
           'name' => 'domain_id',
           'type' => CRM_Utils_Type::T_INT,
           'title' => ts('Domain'),
-          'description' => 'Which Domain is this menu item for',
+          'description' => ts('Which Domain is this menu item for'),
           'required' => TRUE,
+          'where' => 'civicrm_menu.domain_id',
           'table_name' => 'civicrm_menu',
           'entity' => 'Menu',
           'bao' => 'CRM_Core_DAO_Menu',
@@ -241,9 +243,10 @@ class CRM_Core_DAO_Menu extends CRM_Core_DAO {
           'name' => 'path',
           'type' => CRM_Utils_Type::T_STRING,
           'title' => ts('Path'),
-          'description' => 'Path Name',
+          'description' => ts('Path Name'),
           'maxlength' => 255,
           'size' => CRM_Utils_Type::HUGE,
+          'where' => 'civicrm_menu.path',
           'table_name' => 'civicrm_menu',
           'entity' => 'Menu',
           'bao' => 'CRM_Core_DAO_Menu',
@@ -253,7 +256,8 @@ class CRM_Core_DAO_Menu extends CRM_Core_DAO {
           'name' => 'path_arguments',
           'type' => CRM_Utils_Type::T_TEXT,
           'title' => ts('Arguments'),
-          'description' => 'Arguments to pass to the url',
+          'description' => ts('Arguments to pass to the url'),
+          'where' => 'civicrm_menu.path_arguments',
           'table_name' => 'civicrm_menu',
           'entity' => 'Menu',
           'bao' => 'CRM_Core_DAO_Menu',
@@ -265,6 +269,7 @@ class CRM_Core_DAO_Menu extends CRM_Core_DAO {
           'title' => ts('Menu Title'),
           'maxlength' => 255,
           'size' => CRM_Utils_Type::HUGE,
+          'where' => 'civicrm_menu.title',
           'table_name' => 'civicrm_menu',
           'entity' => 'Menu',
           'bao' => 'CRM_Core_DAO_Menu',
@@ -274,9 +279,10 @@ class CRM_Core_DAO_Menu extends CRM_Core_DAO {
           'name' => 'access_callback',
           'type' => CRM_Utils_Type::T_STRING,
           'title' => ts('Access Callback'),
-          'description' => 'Function to call to check access permissions',
+          'description' => ts('Function to call to check access permissions'),
           'maxlength' => 255,
           'size' => CRM_Utils_Type::HUGE,
+          'where' => 'civicrm_menu.access_callback',
           'table_name' => 'civicrm_menu',
           'entity' => 'Menu',
           'bao' => 'CRM_Core_DAO_Menu',
@@ -286,7 +292,8 @@ class CRM_Core_DAO_Menu extends CRM_Core_DAO {
           'name' => 'access_arguments',
           'type' => CRM_Utils_Type::T_TEXT,
           'title' => ts('Access Arguments'),
-          'description' => 'Arguments to pass to access callback',
+          'description' => ts('Arguments to pass to access callback'),
+          'where' => 'civicrm_menu.access_arguments',
           'table_name' => 'civicrm_menu',
           'entity' => 'Menu',
           'bao' => 'CRM_Core_DAO_Menu',
@@ -296,9 +303,10 @@ class CRM_Core_DAO_Menu extends CRM_Core_DAO {
           'name' => 'page_callback',
           'type' => CRM_Utils_Type::T_STRING,
           'title' => ts('Page Callback'),
-          'description' => 'function to call for this url',
+          'description' => ts('function to call for this url'),
           'maxlength' => 255,
           'size' => CRM_Utils_Type::HUGE,
+          'where' => 'civicrm_menu.page_callback',
           'table_name' => 'civicrm_menu',
           'entity' => 'Menu',
           'bao' => 'CRM_Core_DAO_Menu',
@@ -308,7 +316,8 @@ class CRM_Core_DAO_Menu extends CRM_Core_DAO {
           'name' => 'page_arguments',
           'type' => CRM_Utils_Type::T_TEXT,
           'title' => ts('Page Arguments'),
-          'description' => 'Arguments to pass to page callback',
+          'description' => ts('Arguments to pass to page callback'),
+          'where' => 'civicrm_menu.page_arguments',
           'table_name' => 'civicrm_menu',
           'entity' => 'Menu',
           'bao' => 'CRM_Core_DAO_Menu',
@@ -318,7 +327,8 @@ class CRM_Core_DAO_Menu extends CRM_Core_DAO {
           'name' => 'breadcrumb',
           'type' => CRM_Utils_Type::T_TEXT,
           'title' => ts('Breadcrumb'),
-          'description' => 'Breadcrumb for the path.',
+          'description' => ts('Breadcrumb for the path.'),
+          'where' => 'civicrm_menu.breadcrumb',
           'table_name' => 'civicrm_menu',
           'entity' => 'Menu',
           'bao' => 'CRM_Core_DAO_Menu',
@@ -328,9 +338,10 @@ class CRM_Core_DAO_Menu extends CRM_Core_DAO {
           'name' => 'return_url',
           'type' => CRM_Utils_Type::T_STRING,
           'title' => ts('Return Url'),
-          'description' => 'Url where a page should redirected to, if next url not known.',
+          'description' => ts('Url where a page should redirected to, if next url not known.'),
           'maxlength' => 255,
           'size' => CRM_Utils_Type::HUGE,
+          'where' => 'civicrm_menu.return_url',
           'table_name' => 'civicrm_menu',
           'entity' => 'Menu',
           'bao' => 'CRM_Core_DAO_Menu',
@@ -340,9 +351,10 @@ class CRM_Core_DAO_Menu extends CRM_Core_DAO {
           'name' => 'return_url_args',
           'type' => CRM_Utils_Type::T_STRING,
           'title' => ts('Return Url Args'),
-          'description' => 'Arguments to pass to return_url',
+          'description' => ts('Arguments to pass to return_url'),
           'maxlength' => 255,
           'size' => CRM_Utils_Type::HUGE,
+          'where' => 'civicrm_menu.return_url_args',
           'table_name' => 'civicrm_menu',
           'entity' => 'Menu',
           'bao' => 'CRM_Core_DAO_Menu',
@@ -352,7 +364,8 @@ class CRM_Core_DAO_Menu extends CRM_Core_DAO {
           'name' => 'component_id',
           'type' => CRM_Utils_Type::T_INT,
           'title' => ts('Component'),
-          'description' => 'Component that this menu item belongs to',
+          'description' => ts('Component that this menu item belongs to'),
+          'where' => 'civicrm_menu.component_id',
           'table_name' => 'civicrm_menu',
           'entity' => 'Menu',
           'bao' => 'CRM_Core_DAO_Menu',
@@ -371,7 +384,8 @@ class CRM_Core_DAO_Menu extends CRM_Core_DAO {
           'name' => 'is_active',
           'type' => CRM_Utils_Type::T_BOOLEAN,
           'title' => ts('Enabled?'),
-          'description' => 'Is this menu item active?',
+          'description' => ts('Is this menu item active?'),
+          'where' => 'civicrm_menu.is_active',
           'table_name' => 'civicrm_menu',
           'entity' => 'Menu',
           'bao' => 'CRM_Core_DAO_Menu',
@@ -381,7 +395,8 @@ class CRM_Core_DAO_Menu extends CRM_Core_DAO {
           'name' => 'is_public',
           'type' => CRM_Utils_Type::T_BOOLEAN,
           'title' => ts('Public?'),
-          'description' => 'Is this menu accessible to the public?',
+          'description' => ts('Is this menu accessible to the public?'),
+          'where' => 'civicrm_menu.is_public',
           'table_name' => 'civicrm_menu',
           'entity' => 'Menu',
           'bao' => 'CRM_Core_DAO_Menu',
@@ -391,7 +406,8 @@ class CRM_Core_DAO_Menu extends CRM_Core_DAO {
           'name' => 'is_exposed',
           'type' => CRM_Utils_Type::T_BOOLEAN,
           'title' => ts('Exposed?'),
-          'description' => 'Is this menu exposed to the navigation system?',
+          'description' => ts('Is this menu exposed to the navigation system?'),
+          'where' => 'civicrm_menu.is_exposed',
           'table_name' => 'civicrm_menu',
           'entity' => 'Menu',
           'bao' => 'CRM_Core_DAO_Menu',
@@ -401,7 +417,8 @@ class CRM_Core_DAO_Menu extends CRM_Core_DAO {
           'name' => 'is_ssl',
           'type' => CRM_Utils_Type::T_BOOLEAN,
           'title' => ts('Use SSL?'),
-          'description' => 'Should this menu be exposed via SSL if enabled?',
+          'description' => ts('Should this menu be exposed via SSL if enabled?'),
+          'where' => 'civicrm_menu.is_ssl',
           'table_name' => 'civicrm_menu',
           'entity' => 'Menu',
           'bao' => 'CRM_Core_DAO_Menu',
@@ -411,8 +428,9 @@ class CRM_Core_DAO_Menu extends CRM_Core_DAO {
           'name' => 'weight',
           'type' => CRM_Utils_Type::T_INT,
           'title' => ts('Order'),
-          'description' => 'Ordering of the menu items in various blocks.',
+          'description' => ts('Ordering of the menu items in various blocks.'),
           'required' => TRUE,
+          'where' => 'civicrm_menu.weight',
           'default' => '1',
           'table_name' => 'civicrm_menu',
           'entity' => 'Menu',
@@ -423,8 +441,9 @@ class CRM_Core_DAO_Menu extends CRM_Core_DAO {
           'name' => 'type',
           'type' => CRM_Utils_Type::T_INT,
           'title' => ts('Type'),
-          'description' => 'Drupal menu type.',
+          'description' => ts('Drupal menu type.'),
           'required' => TRUE,
+          'where' => 'civicrm_menu.type',
           'default' => '1',
           'table_name' => 'civicrm_menu',
           'entity' => 'Menu',
@@ -435,8 +454,9 @@ class CRM_Core_DAO_Menu extends CRM_Core_DAO {
           'name' => 'page_type',
           'type' => CRM_Utils_Type::T_INT,
           'title' => ts('Page Type'),
-          'description' => 'CiviCRM menu type.',
+          'description' => ts('CiviCRM menu type.'),
           'required' => TRUE,
+          'where' => 'civicrm_menu.page_type',
           'default' => '1',
           'table_name' => 'civicrm_menu',
           'entity' => 'Menu',
@@ -447,7 +467,8 @@ class CRM_Core_DAO_Menu extends CRM_Core_DAO {
           'name' => 'skipBreadcrumb',
           'type' => CRM_Utils_Type::T_BOOLEAN,
           'title' => ts('Hide Breadcrumb?'),
-          'description' => 'skip this url being exposed to breadcrumb',
+          'description' => ts('skip this url being exposed to breadcrumb'),
+          'where' => 'civicrm_menu.skipBreadcrumb',
           'table_name' => 'civicrm_menu',
           'entity' => 'Menu',
           'bao' => 'CRM_Core_DAO_Menu',
@@ -457,7 +478,8 @@ class CRM_Core_DAO_Menu extends CRM_Core_DAO {
           'name' => 'module_data',
           'type' => CRM_Utils_Type::T_TEXT,
           'title' => ts('Other menu data'),
-          'description' => 'All other menu metadata not stored in other fields',
+          'description' => ts('All other menu metadata not stored in other fields'),
+          'where' => 'civicrm_menu.module_data',
           'table_name' => 'civicrm_menu',
           'entity' => 'Menu',
           'bao' => 'CRM_Core_DAO_Menu',