diff options
author | xue <> | 2006-01-05 03:48:55 +0000 |
---|---|---|
committer | xue <> | 2006-01-05 03:48:55 +0000 |
commit | 282e4c91d2f0e711d8344ede4fc3658dbc9e26bc (patch) | |
tree | e9c1d6f26ccf4d4fffec3986e02f51a97b1f52dc /framework/TApplication.php | |
parent | 98b4c565c0f85fefe5f32ba79915c9453b1df0d4 (diff) |
Added documentation.
Diffstat (limited to 'framework/TApplication.php')
-rw-r--r-- | framework/TApplication.php | 28 |
1 files changed, 0 insertions, 28 deletions
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); - } - */ } /** |