public function init() { parent::init(); if (!$this->isAdmin()) { Admin::staticAdminLogon(); } }
/** * Constructor por defecto * @throws AccessDeniedException */ public function init() { parent::init(); if (!$this->isLogged()) { throw new UserAuthException(_("User not logged in")); } }
/** * Initialize api */ public function init() { parent::init(); $this->domain = $this->getApi(); $this->debug = Config::getInstance()->getDebugMode() || Config::getInstance()->get('debugQueries'); $this->hydrateRequestData(); $this->hydrateOrders(); $this->createConnection(); }