3 +--------------------------------------------------------------------+
4 | Copyright CiviCRM LLC. All rights reserved. |
6 | This work is published under the GNU AGPLv3 license with some |
7 | permitted exceptions and without any warranty. For full license |
8 | and copyright information, see https://civicrm.org/licensing |
9 +--------------------------------------------------------------------+
15 * @copyright CiviCRM LLC https://civicrm.org/licensing
19 * Page for displaying list of location types.
21 class CRM_Admin_Page_Navigation
extends CRM_Core_Page_Basic
{
24 * The action links that we need to display for the browse screen.
28 public static $_links = NULL;
36 public function getBAOName() {
37 return 'CRM_Core_BAO_Navigation';
44 * (reference) of action links
46 public function &links() {
51 * Get name of edit form.
54 * Classname of edit form.
56 public function editForm() {
57 return 'CRM_Admin_Form_Navigation';
66 public function editName() {
67 return 'CiviCRM Navigation';
78 public function userContext($mode = NULL) {
79 return 'civicrm/admin/menu';
85 public function browse() {
86 // assign home id to the template
87 $homeMenuId = CRM_Core_DAO
::getFieldValue('CRM_Core_DAO_Navigation', 'Home', 'id', 'name');
88 $this->assign('homeMenuId', $homeMenuId);
91 CRM_Core_Resources
::singleton()
92 ->addScriptFile('civicrm', 'bower_components/jstree/dist/jstree.min.js', 0, 'html-header')
93 ->addStyleFile('civicrm', 'bower_components/jstree/dist/themes/default/style.min.css');