. */ if (! defined('BASEPATH')) exit('No direct script access allowed'); class CisMenu extends FHCAPI_Controller { /** * Object initialization */ public function __construct() { parent::__construct([ 'getMenu' => self::PERM_LOGGED, ]); } //------------------------------------------------------------------------------------------------------------------ // Public methods /** * fetches the menu for CIS from the database based on the userLanguage */ public function getMenu() { $this->load->model('content/Content_model', 'ContentModel'); $this->load->config('cis'); $cis4_content_id =$this->config->item('cis_menu_root_content_id'); $result = $this->ContentModel->getMenu($cis4_content_id, getAuthUID(),getUserLanguage()); $result = $this->getDataOrTerminateWithError($result); $menu = $result->childs ?? []; $this->terminateWithSuccess($menu); } }