Beispiel #1
0
 /**
  * returns all the column names of this table
  *
  * @access public
  * @return array
  */
 function &fields()
 {
     if (!self::$_fields) {
         self::$_fields = array('id' => array('name' => 'id', 'type' => CRM_Utils_Type::T_INT, 'required' => true), 'domain_id' => array('name' => 'domain_id', 'type' => CRM_Utils_Type::T_INT, 'required' => true, 'FKClassName' => 'CRM_Core_DAO_Domain'), 'label' => array('name' => 'label', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Label'), 'maxlength' => 255, 'size' => CRM_Utils_Type::HUGE), 'name' => array('name' => 'name', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Name'), 'maxlength' => 255, 'size' => CRM_Utils_Type::HUGE), 'url' => array('name' => 'url', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Url'), 'maxlength' => 255, 'size' => CRM_Utils_Type::HUGE), 'permission' => array('name' => 'permission', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Permission'), 'maxlength' => 255, 'size' => CRM_Utils_Type::HUGE), 'permission_operator' => array('name' => 'permission_operator', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Permission Operator'), 'maxlength' => 3, 'size' => CRM_Utils_Type::FOUR), 'parent_id' => array('name' => 'parent_id', 'type' => CRM_Utils_Type::T_INT, 'FKClassName' => 'CRM_Core_DAO_Navigation'), 'is_active' => array('name' => 'is_active', 'type' => CRM_Utils_Type::T_BOOLEAN), 'has_separator' => array('name' => 'has_separator', 'type' => CRM_Utils_Type::T_BOOLEAN, 'title' => ts('Has Separator')), 'weight' => array('name' => 'weight', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Weight')));
     }
     return self::$_fields;
 }
Beispiel #2
0
 /**
  * Returns all the column names of this table
  *
  * @return array
  */
 static function &fields()
 {
     if (!self::$_fields) {
         self::$_fields = array('id' => array('name' => 'id', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Navigation ID'), 'required' => true), 'domain_id' => array('name' => 'domain_id', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Navigation Domain'), 'description' => 'Which Domain is this navigation item for', 'required' => true, 'FKClassName' => 'CRM_Core_DAO_Domain', 'pseudoconstant' => array('table' => 'civicrm_domain', 'keyColumn' => 'id', 'labelColumn' => 'name')), 'label' => array('name' => 'label', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Navigation Item Label'), 'description' => 'Navigation Title', 'maxlength' => 255, 'size' => CRM_Utils_Type::HUGE), 'name' => array('name' => 'name', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Navigation Item Machine Name'), 'description' => 'Internal Name', 'maxlength' => 255, 'size' => CRM_Utils_Type::HUGE), 'url' => array('name' => 'url', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Url'), 'description' => 'url in case of custom navigation link', 'maxlength' => 255, 'size' => CRM_Utils_Type::HUGE), 'permission' => array('name' => 'permission', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Required Permission'), 'description' => 'Permission for menu item', 'maxlength' => 255, 'size' => CRM_Utils_Type::HUGE), 'permission_operator' => array('name' => 'permission_operator', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Permission Operator'), 'description' => 'Permission Operator', 'maxlength' => 3, 'size' => CRM_Utils_Type::FOUR), 'parent_id' => array('name' => 'parent_id', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Navigation parent ID'), 'description' => 'Parent navigation item, used for grouping', 'FKClassName' => 'CRM_Core_DAO_Navigation', 'pseudoconstant' => array('table' => 'civicrm_navigation', 'keyColumn' => 'name', 'labelColumn' => 'label')), 'is_active' => array('name' => 'is_active', 'type' => CRM_Utils_Type::T_BOOLEAN, 'title' => ts('Is Active'), 'description' => 'Is this navigation item active?'), 'has_separator' => array('name' => 'has_separator', 'type' => CRM_Utils_Type::T_BOOLEAN, 'title' => ts('Use separator'), 'description' => 'If separator needs to be added after this menu item'), 'weight' => array('name' => 'weight', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Order'), 'description' => 'Ordering of the navigation items in various blocks.'));
     }
     return self::$_fields;
 }