Exemplo n.º 1
0
 /**
  * Переопределим конструктор
  */
 protected final function __construct()
 {
     check_condition(PsEnvironment::isIncluded(), 'Can use ' . __CLASS__ . ' only when environment is included');
     $UQ = __CLASS__ . '-' . PsEnvironment::env();
     $this->LOGGER = PsLogger::inst($UQ);
     $this->PROFILER = PsProfiler::inst($UQ);
     $this->_construct();
 }
Exemplo n.º 2
0
 /**
  * Метод запускается после регистрации всех страниц
  */
 private final function init()
 {
     $this->curpage = $this->searchPage(ServerArrayAdapter::PHP_SELF());
     //Если страница не определена, то, возможно, это страница рабочего окружения (другой CMS).
     if (!$this->curpage && PsEnvironment::isIncluded()) {
         $this->curpage = $this->getPage(PAGE_ENV);
     }
     $this->LOGGER->info('CURRENT: {}', $this->curpage);
 }