mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-06-01 20:29:29 +00:00
41 lines
839 B
PHP
Executable File
41 lines
839 B
PHP
Executable File
<?php
|
|
|
|
if (! defined('BASEPATH')) exit('No direct script access allowed');
|
|
|
|
/**
|
|
*
|
|
*/
|
|
class CisVue extends FHC_Controller
|
|
{
|
|
|
|
/**
|
|
* Object initialization
|
|
*/
|
|
public function __construct()
|
|
{
|
|
parent::__construct();
|
|
|
|
// Loads authentication library and starts authentication
|
|
$this->load->library('AuthLib');
|
|
$this->load->library('PermissionLib');
|
|
|
|
if (!isLogged())
|
|
show_404();
|
|
}
|
|
|
|
//------------------------------------------------------------------------------------------------------------------
|
|
// Public methods
|
|
|
|
/**
|
|
*/
|
|
public function Menu()
|
|
{
|
|
$this->load->model('content/Content_model', 'ContentModel');
|
|
$result = $this->ContentModel->getMenu(defined('CIS4_MENU_ENTRY') ? CIS4_MENU_ENTRY : null, get_uid());
|
|
$menu = getData($result) ?? (object)['childs' => []];
|
|
|
|
$this->outputJsonSuccess($menu);
|
|
}
|
|
|
|
}
|