From 4ece066e7c05ae6c1e29c96784374f5d02aa3015 Mon Sep 17 00:00:00 2001 From: xue <> Date: Thu, 12 Jan 2006 23:01:44 +0000 Subject: Moved geshi to 3rdParty --- framework/Web/Services/TPageService.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'framework/Web/Services') diff --git a/framework/Web/Services/TPageService.php b/framework/Web/Services/TPageService.php index 65549159..b07527c6 100644 --- a/framework/Web/Services/TPageService.php +++ b/framework/Web/Services/TPageService.php @@ -464,6 +464,19 @@ class TPageService extends TService { return $this->getRequest()->constructUrl($this->_id,$pagePath,$getParams,$encodeAmpersand); } + + /** + * Publishes a private asset and returns its URL. + * This method will publish a private asset (file or directory) + * and returns the URL to the asset. Note, if the asset refers to + * a directory, all contents under that directory will be published. + * @param string path of the asset that is either absolute or relative to the directory containing the current running script. + * @return string URL to the asset path. + */ + public function getAsset($path) + { + return $this->getAssetManager()->publishFilePath($path); + } } -- cgit v1.2.3