3 Versions

This commit is contained in:
cgfhtw
2022-12-15 09:42:28 +01:00
parent 266ba7523f
commit c56b774d1d
48 changed files with 2909 additions and 430 deletions
@@ -0,0 +1,43 @@
<?php
if (! defined('BASEPATH')) exit('No direct script access allowed');
/**
* This controller operates between (interface) the JS (GUI) and the FilterCmptLib (back-end)
* Provides data to the ajax get calls about the filter component
* Listens to ajax post calls to change the filter data
* This controller works with JSON calls on the HTTP GET or POST and the output is always JSON
* NOTE: extends the FHC_Controller instead of the Auth_Controller because the FilterCmpt has its
* own permissions check
*/
class CisVue extends Auth_Controller
{
/**
* Object initialization
*/
public function __construct()
{
parent::__construct([
'Menu' => 'user:r'
]);
// Loads authentication library and starts authentication
$this->load->library('AuthLib');
}
//------------------------------------------------------------------------------------------------------------------
// Public methods
/**
*/
public function Menu()
{
$this->load->model('content/Content_model', 'ContentModel');
$result = $this->ContentModel->getMenu(6739, get_uid());
$menu = getData($result) ?? (object)['childs' => []];
$this->outputJsonSuccess($menu);
}
}