Example #1
0
 public function init()
 {
     parent::init();
     if (!$this->isAdmin()) {
         Admin::staticAdminLogon();
     }
 }
Example #2
0
 /**
  * Constructor por defecto
  * @throws AccessDeniedException
  */
 public function init()
 {
     parent::init();
     if (!$this->isLogged()) {
         throw new UserAuthException(_("User not logged in"));
     }
 }
Example #3
0
File: Api.php Project: c15k0/psfs
 /**
  * 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();
 }