Exemplo n.º 1
0
 /**
  * @param null $config
  *
  * @return TestApplication
  */
 public function __construct($config = null)
 {
     Craft::setApplication(null);
     clearstatcache();
     // No matter how much you want to delete this line... DO NOT DO IT.
     Craft::$enableIncludePath = false;
     parent::__construct($config);
 }
Exemplo n.º 2
0
 public function __construct($file, $php_self, $request_uri)
 {
     //
     parent::__construct($file, $php_self, $request_uri);
     //
     if (!isset($this->_config->module['userrole'])) {
         $this->_config->module['userrole'] = 0;
     }
     //
     $this->addHook('navbar', array($this, 'render_navbar_logged_user'));
 }
Exemplo n.º 3
0
 /**
  *
  * 
  * @param type $args
  */
 public function __construct($args)
 {
     //
     parent::__construct($args);
     //
     if (!isset($this->_config->module['userrole'])) {
         $this->_config->module['userrole'] = 0;
     }
     //
     $this->addHook('navbar', array($this, 'renderNavbarSessionUser'));
 }
Exemplo n.º 4
0
 /**
  * @param null $config
  *
  * @return TestApplication
  */
 public function __construct($config = null)
 {
     Craft::setApplication(null);
     clearstatcache();
     // SHOW EVERYTHING
     error_reporting(E_ALL & ~E_STRICT);
     ini_set('display_errors', 1);
     mb_internal_encoding('UTF-8');
     mb_http_input('UTF-8');
     mb_http_output('UTF-8');
     mb_detect_order('auto');
     // No matter how much you want to delete this line... DO NOT DO IT.
     Craft::$enableIncludePath = false;
     parent::__construct($config);
 }
Exemplo n.º 5
0
 /**
  * Initialize WebApp with Layerdefinition object
  * 
  * @param Laerdefinition $definition
  *
  * Initializes HTTP (optionally configured for oAuth requests)
  */
 public function initDefinition($definition)
 {
     parent::__construct($definition);
 }
Exemplo n.º 6
0
 public function __construct($file, $php_self, $request_uri)
 {
     parent::__construct($file, $php_self, $request_uri);
 }
Exemplo n.º 7
0
 public function __construct($file, $php_self, $request_uri)
 {
     parent::__construct($file, $php_self, $request_uri);
     global $config;
     $config['modules'][] = 'userrole';
 }
Exemplo n.º 8
0
 /**
  *
  *
  * @param type $args
  */
 public function __construct($args)
 {
     //
     parent::__construct($args);
 }
Exemplo n.º 9
0
 public function __construct($params)
 {
     parent::__construct($params);
 }