From c99fc932b644ed9c5b42decdc583962cb80c4c1a Mon Sep 17 00:00:00 2001 From: xue <> Date: Sun, 13 Nov 2005 15:11:25 +0000 Subject: Deleted asset service. --- .gitattributes | 1 - framework/Web/Services/TAssetService.php | 70 -------------------------------- 2 files changed, 71 deletions(-) delete mode 100644 framework/Web/Services/TAssetService.php diff --git a/.gitattributes b/.gitattributes index 7af8fdff..50d7c49e 100644 --- a/.gitattributes +++ b/.gitattributes @@ -33,7 +33,6 @@ framework/TApplication.php -text framework/TComponent.php -text framework/TODO.txt -text framework/Web/Javascripts/WebForms.js -text -framework/Web/Services/TAssetService.php -text framework/Web/Services/TPageService.php -text framework/Web/TAssetManager.php -text framework/Web/THttpRequest.php -text diff --git a/framework/Web/Services/TAssetService.php b/framework/Web/Services/TAssetService.php deleted file mode 100644 index 914aa1a5..00000000 --- a/framework/Web/Services/TAssetService.php +++ /dev/null @@ -1,70 +0,0 @@ - - */ -class TAssetManager extends TComponent implements IModule -{ - private $_pubDir=null; - private $_pubUrl=null; - - public function init($context) - { - if(is_null($this->_pubDir)) - throw new TCongiruationException('cache_public_location_required'); - if(is_null($this->_pubUrl)) - throw new TCongiruationException('cache_public_url_required'); - } - - public function getPublicLocation() - { - return $this->_pubDir; - } - - public function setPublicLocation($value) - { - if(is_dir($value)) - $this->_pubDir=realpath($value); - else - throw new TInvalidDataValueException('cache_public_location_invalid'); - } - - public function getPublicUrl() - { - return $this->_pubUrl; - } - - public function setPublicUrl($value) - { - $this->_pubUrl=rtrim($value,'/'); - } - - public function publishLocation($path,$forceOverwrite=false) - { - $name=basename($path); - $prefix=md5(dirname($path)); - } - - public function publishFile($path,$forceOverwrite=false) - { - if(($fullpath=realpath($path))!==false) - { - return $this->_pubUrl.'/'.$fullpath; - } - else - throw new TInvalidDataValueException('cachemanager_path_unpublishable'); - } - - public function unpublishPath($path) - { - } -} - -class TMemcache extends TComponent -{ -} - -class TSqliteCache extends TComponent -{ -} -?> \ No newline at end of file -- cgit v1.2.3