From 2ba72bad594cec828bfc016707f41947741c434c Mon Sep 17 00:00:00 2001 From: xue <> Date: Fri, 17 Feb 2006 01:10:31 +0000 Subject: removed some APIs. --- framework/Web/TAssetManager.php | 43 ----------------------------------------- 1 file changed, 43 deletions(-) (limited to 'framework/Web/TAssetManager.php') diff --git a/framework/Web/TAssetManager.php b/framework/Web/TAssetManager.php index fedec61f..41700d51 100644 --- a/framework/Web/TAssetManager.php +++ b/framework/Web/TAssetManager.php @@ -137,49 +137,6 @@ class TAssetManager extends TModule $this->_baseUrl=rtrim($value,'/'); } - /** - * @param string file path - * @return string the URL to the published file path. Null if the file is not published. - */ - public function getPublishedUrl($path) - { - if(($fullpath=realpath($path))!==false) - { - $dir=$this->hash(dirname($fullpath)); - $file=$this->_basePath.'/'.$dir.'/'.basename($fullpath); - if(is_file($file) || is_dir($file)) - return $this->_baseUrl.'/'.$dir.'/'.basename($fullpath); - } - return null; - } - - /** - * @param string file path - * @return boolean whether the specified file path is published or not - */ - public function isFilePathPublished($path,$checkTimestamp=false) - { - if(!isset($this->_published[$path])) - { - if(($fullpath=realpath($path))===false) - return false; - $dir=$this->hash(dirname($fullpath)); - $file=$this->_basePath.'/'.$dir.'/'.basename($fullpath); - if($checkTimestamp || $this->getApplication()->getMode()!==TApplication::STATE_PERFORMANCE) - { - if(is_file($fullpath)) - return @filemtime($fullpath)<=@filemtime($file); - else - { - } - } - else - return is_file($file) || is_dir($file); - } - else - return true; - } - /** * Publishes a file or a directory (recursively). * This method will copy the content in a directory (recursively) to -- cgit v1.2.3