/** * Checks if we have an XML request. * @throws Exception_Exido */ public function __construct() { if (Exido::$is_xml == false) { throw new Exception_Exido('We accept only XML requests'); } parent::__construct(); }
/** * Constructor. Check if the user is logged in. */ public function __construct() { parent::__construct(); // Configure the main menu $this->view->header_menu = array(); if ($this->_components != null and !empty($this->_components)) { // Generate backend menu foreach ($this->_components as $key => $d) { if ($d['is_enabled'] and $d['has_backend'] and $d['is_visible_in_backend_menu']) { $this->view->header_menu[$key] = __($d['ui_name']); } } } // Logged user name $this->view->user_logged_as = $this->_system_user['user_name']; }