__construct() public method

To carry out all the processing in Pico, call {@link Pico::run()}.
public __construct ( string $rootDir, string $configDir, string $pluginsDir, string $themesDir )
$rootDir string root directory of this Pico instance
$configDir string config directory of this Pico instance
$pluginsDir string plugins directory of this Pico instance
$themesDir string themes directory of this Pico instance
示例#1
0
 public function __construct($options = array())
 {
     parent::__construct($options);
     $this->initializeSession();
     session_start();
     $this->initializeErrorHandler();
     $this->initializeExceptionHandler();
     $this->afterInit('url', $this->_afterInitUrl());
 }
示例#2
0
文件: Picowa.php 项目: no22/Picowa
 public function __construct($options = array())
 {
     parent::__construct();
     if (!isset($options['mountPoint'])) {
         $options['mountPoint'] = PICOWA_MOUNT_POINT;
     }
     $confs = isset($options['config']) ? $options['config'] : array();
     $this->attach('confs', array('PwConfig', $confs));
     $this->attach('options', array('PwArrayWrapper', $options));
     $this->attach('url', array('PwUrl', $options['mountPoint']));
     $this->initializeSession();
     session_start();
     Pico::cfg()->use_error_handler and set_error_handler(array($this, 'handleError'), 2);
 }
示例#3
0
文件: test.php 项目: TakamiChie/Pico
 public function __construct($rootDir, $configDir, $pluginsDir, $themesDir)
 {
     parent::__construct($rootDir, $configDir, $pluginsDir, $themesDir);
     $this->loadConfig();
 }