From 282e4c91d2f0e711d8344ede4fc3658dbc9e26bc Mon Sep 17 00:00:00 2001 From: xue <> Date: Thu, 5 Jan 2006 03:48:55 +0000 Subject: Added documentation. --- framework/TApplication.php | 28 ---------------------------- 1 file changed, 28 deletions(-) (limited to 'framework/TApplication.php') diff --git a/framework/TApplication.php b/framework/TApplication.php index 0e808858..eb53653b 100644 --- a/framework/TApplication.php +++ b/framework/TApplication.php @@ -378,15 +378,6 @@ class TApplication extends TComponent protected function loadGlobals() { $this->_globals=$this->getApplicationStatePersister()->load(); - /* - if(($cache=$this->getCache())!==null && ($value=$cache->get('prado:globals'))!==false) - $this->_globals=unserialize($value); - else - { - if(($content=@file_get_contents($this->getRuntimePath().'/'.self::GLOBAL_FILE))!==false) - $this->_globals=unserialize($content); - } - */ } /** @@ -398,25 +389,6 @@ class TApplication extends TComponent if(!$this->_stateChanged) return; $this->getApplicationStatePersister()->save($this->_globals); - /* - $content=serialize($this->_globals); - $saveFile=true; - if(($cache=$this->getCache())!==null) - { - if($cache->get('prado:globals')===$content) - $saveFile=false; - else - $cache->set('prado:globals',$content); - } - if($saveFile) - { - $fileName=$this->getRuntimePath().'/'.self::GLOBAL_FILE; - if(version_compare(phpversion(),'5.1.0','>=')) - file_put_contents($fileName,$content,LOCK_EX); - else - file_put_contents($fileName,$content); - } - */ } /** -- cgit v1.2.3