Esempio n. 1
0
 function initDefaults()
 {
     ApiCLI::initDefaults();
     // DTP constant checked
     if (strpos($_GET['page'], ';') !== false) {
         list($namespace, $_GET['page']) = explode(';', $_GET['page']);
         if (!isset($this->namespaces[$namespace])) {
             throw new BaseException('Specified namespace (' . $namespace . ') can\'t be found');
             // it's also
         }
         $this->ns = $this->namespaces[$namespace];
         $this->ns->initLayout();
     } else {
         // do nothing!
         //$this->initLayout();
     }
 }