public function get_config() { if ($this->_config == NULL) { $config = $this->read_config(); $config = DF_Util_Arrays::asArray($config); $this->_config = $config; } return $this->_config; }
private function setup_session_handler() { $config = $this->getConfig(); $conf_session = DF_Util_Arrays::asArray($config['session']); $session_path = $conf_session['save_path']; $sh = new DF_Web_SessionHandler($session_path); session_set_save_handler(array($sh, "open"), array($sh, "close"), array($sh, "read"), array($sh, "write"), array($sh, "destroy"), array($sh, "gc")); }