__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
ファイル: Picowa.php プロジェクト: no22/PicowaCore
 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();
 }