diff -r 000000000000 -r 4eba9c11703f web/Zend/Tool/Framework/Client/Storage/Directory.php --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/web/Zend/Tool/Framework/Client/Storage/Directory.php Mon Dec 13 18:29:26 2010 +0100 @@ -0,0 +1,73 @@ +_directoryPath = $directoryPath; + } + + public function put($name, $value) + { + return file_put_contents($this->_directoryPath . DIRECTORY_SEPARATOR . $name, $value); + } + + public function get($name) + { + return file_get_contents($this->_directoryPath . DIRECTORY_SEPARATOR . $name); + } + + public function has($name) + { + return file_exists($this->_directoryPath . DIRECTORY_SEPARATOR . $name); + } + + public function remove($name) + { + return unlink($this->_directoryPath . DIRECTORY_SEPARATOR . $name); + } + + public function getStreamUri($name) + { + return $this->_directoryPath . DIRECTORY_SEPARATOR . $name; + } + +}