Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Additional PHPDoc for #1872.

  • Loading branch information...
commit d900fa4144d1b4bf4394a46b91fc3eb98166efed 1 parent 83f6b1b
@resurtm authored
Showing with 15 additions and 0 deletions.
  1. +15 −0 framework/web/CAssetManager.php
View
15 framework/web/CAssetManager.php
@@ -53,6 +53,11 @@ class CAssetManager extends CApplicationComponent
* Options FollowSymLinks
* </pre>
*
+ * Note that this property cannot be true when {@link $forceCopy} property has true value too. Otherwise
+ * an exception would be thrown. Using both properties at the same time is illogical because both of them
+ * are solving similar tasks but in a different ways. Please refer to the {@link $forceCopy} documentation
+ * for more details.
+ *
* @since 1.1.5
*/
public $linkAssets=false;
@@ -85,6 +90,12 @@ class CAssetManager extends CApplicationComponent
* This property sets the default value of the $forceCopy parameter in {@link publish} method. Default value
* of this property is false meaning that the assets will be published only in case they don't exist in webroot
* assets directory.
+ *
+ * Note that this property cannot be true when {@link $linkAssets} property has true value too. Otherwise
+ * an exception would be thrown. Using both properties at the same time is illogical because both of them
+ * are solving similar tasks but in a different ways. Please refer to the {@link $linkAssets} documentation
+ * for more details.
+ *
* @since 1.1.11
*/
public $forceCopy=false;
@@ -185,6 +196,10 @@ public function setBaseUrl($value)
* which is not a concern during development, however. Default value of this parameter is null meaning
* that it's value is controlled by {@link $forceCopy} class property. This parameter has been available
* since version 1.1.2. Default value has been changed since 1.1.11.
+ * Note that this parameter cannot be true when {@link $linkAssets} property has true value too. Otherwise
+ * an exception would be thrown. Using this parameter with {@link $linkAssets} property at the same time
+ * is illogical because both of them are solving similar tasks but in a different ways. Please refer
+ * to the {@link $linkAssets} documentation for more details.
* @return string an absolute URL to the published asset
* @throws CException if the asset to be published does not exist.
*/
Please sign in to comment.
Something went wrong with that request. Please try again.