From 6eba9f44164f0ba85ddd3619ee5008d13f531d58 Mon Sep 17 00:00:00 2001 From: "godzilla80@gmx.net" <> Date: Sun, 7 Jun 2009 07:38:09 +0000 Subject: enhancement: introduce protected property "Published" in TAssetManager to allow subclasses access --- framework/Web/TAssetManager.php | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) (limited to 'framework/Web/TAssetManager.php') diff --git a/framework/Web/TAssetManager.php b/framework/Web/TAssetManager.php index 7925d209..4abd1788 100644 --- a/framework/Web/TAssetManager.php +++ b/framework/Web/TAssetManager.php @@ -178,6 +178,24 @@ class TAssetManager extends TModule } } + /** + * @return array List of published assets + * @since 3.1.6 + */ + protected function getPublished() + { + return $this->_published; + } + + /** + * @param $values List of published assets + * @since 3.1.6 + */ + protected function setPublished($values=array()) + { + $this->_published = $values; + } + /** * Returns the published path of a file path. * This method does not perform any publishing. It merely tells you @@ -269,7 +287,7 @@ class TAssetManager extends TModule if(@filemtime($dst.DIRECTORY_SEPARATOR.$file)<@filemtime($src.DIRECTORY_SEPARATOR.$file)) { @copy($src.DIRECTORY_SEPARATOR.$file,$dst.DIRECTORY_SEPARATOR.$file); - @chmod($dst.DIRECTORY_SEPARATOR.$file, PRADO_CHMOD); + @chmod($dst.DIRECTORY_SEPARATOR.$file, PRADO_CHMOD); } } else -- cgit v1.2.3