-
Notifications
You must be signed in to change notification settings - Fork 25
Expand file tree
/
Copy pathcontroller.php
More file actions
executable file
·43 lines (38 loc) · 1.15 KB
/
controller.php
File metadata and controls
executable file
·43 lines (38 loc) · 1.15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<?php
/**
* @version SVN: <svn_id>
* @package Com_Hierarchy
* @author Techjoomla <extensions@techjoomla.com>
* @copyright Copyright (c) 2009-2017 TechJoomla. All rights reserved.
* @license GNU General Public License version 2 or later.
*/
// No direct access
defined('_JEXEC') or die;
use Joomla\CMS\MVC\Controller\BaseController;
use Joomla\CMS\Factory;
/**
* Hierarchy view class for the hierarchy package.
*
* @since 1.6
*/
class HierarchyController extends BaseController
{
/**
* Method to display a view.
*
* @param boolean $cachable If true, the view output will be cached
* @param array $urlparams An array of safe url parameters and their variable types, for valid values see {@link JFilterInput::clean()}.
*
* @return JController This object to support chaining.
*
* @since 1.5
*/
public function display($cachable = false, $urlparams = false)
{
require_once JPATH_COMPONENT . '/helpers/hierarchy.php';
$view = Factory::getApplication()->input->getCmd('view', 'hierarchys');
Factory::getApplication()->input->set('view', $view);
parent::display($cachable, $urlparams);
return $this;
}
}