/**
* @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)
*/
/**
*
* @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;
/**
* 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;
*/
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']);
'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',
'title' => ts('Navigation Domain'),
'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',
'table' => 'civicrm_domain',
'keyColumn' => 'id',
'labelColumn' => 'name',
- ]
+ ],
],
'label' => [
'name' => 'label',
'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',
'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',
'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',
'required' => FALSE,
'maxlength' => 255,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_navigation.icon',
'default' => 'NULL',
'table_name' => 'civicrm_navigation',
'entity' => 'Navigation',
'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',
'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',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Navigation parent ID'),
'description' => ts('Parent navigation item, used for grouping'),
+ 'where' => 'civicrm_navigation.parent_id',
'table_name' => 'civicrm_navigation',
'entity' => 'Navigation',
'bao' => 'CRM_Core_BAO_Navigation',
'keyColumn' => 'id',
'labelColumn' => 'label',
'nameColumn' => 'name',
- ]
+ ],
],
'is_active' => [
'name' => 'is_active',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Is Active'),
'description' => ts('Is this navigation item active?'),
+ 'where' => 'civicrm_navigation.is_active',
'table_name' => 'civicrm_navigation',
'entity' => 'Navigation',
'bao' => 'CRM_Core_BAO_Navigation',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Use separator'),
'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',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Order'),
'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',