diff options
author | godzilla80@gmx.net <> | 2009-06-07 07:38:09 +0000 |
---|---|---|
committer | godzilla80@gmx.net <> | 2009-06-07 07:38:09 +0000 |
commit | 6eba9f44164f0ba85ddd3619ee5008d13f531d58 (patch) | |
tree | 6ad50ba23172fee0ed221b22a06f196785f491d4 | |
parent | 4b32a36b9df4b21c8d8a9f3ebc2051fd8a37fb48 (diff) |
enhancement: introduce protected property "Published" in TAssetManager to allow subclasses access
-rw-r--r-- | HISTORY | 1 | ||||
-rw-r--r-- | framework/Web/TAssetManager.php | 20 |
2 files changed, 20 insertions, 1 deletions
@@ -3,6 +3,7 @@ BUG: Issue#98 - Missing file in quickstart demo (Chrisotphe) BUG: Issue#117 - Consider TValidationSummary.DisplayMode="HeaderOnly" if TValidationSummary.ShowMessageBox is set (Yves) BUG: Issue#164 - CultureInfo::validCulture should be declared as a static method (Christophe) ENH: Issue#175 - TBulletedList: Introduce TBulletStyle::None (Yves) +ENH: TAssetManager: introduce protected property "Published" to allow subclasses access (Yves) Version 3.1.5 May 24, 2009 BUG: Issue#55 - TPropertyAccess.get and has don't recognize magic getter __get (Yves) 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 @@ -179,6 +179,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
* if the file path is published, where it will go.
@@ -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
|