diff options
author | xue <> | 2006-02-17 01:10:31 +0000 |
---|---|---|
committer | xue <> | 2006-02-17 01:10:31 +0000 |
commit | 2ba72bad594cec828bfc016707f41947741c434c (patch) | |
tree | bc8db927076496674661db67edb9ea9ffc6b856c /framework/Web | |
parent | d9f2cd39ecbc0249b7614a17ce4a575f1ce8aa7d (diff) |
removed some APIs.
Diffstat (limited to 'framework/Web')
-rw-r--r-- | framework/Web/TAssetManager.php | 43 |
1 files changed, 0 insertions, 43 deletions
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 @@ -138,49 +138,6 @@ class TAssetManager extends TModule }
/**
- * @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
* a web accessible directory and returns the URL for the directory.
|