Interface yii\base\DynamicContentAwareInterface
| Implemented by | yii\ |
|---|---|
| Available since version | 2.0.14 |
| Source Code | https://github.com/yiisoft/yii2/blob/master/framework/base/DynamicContentAwareInterface.php |
DynamicContentAwareInterface is the interface that should be implemented by classes
which support a yii\
Public Methods
| Method | Description | Defined By |
|---|---|---|
| addDynamicPlaceholder() | Adds a placeholder for dynamic content. | yii\ |
| getDynamicPlaceholders() | Returns a list of placeholders for dynamic content. This method is used internally to implement the content caching feature. | yii\ |
| setDynamicPlaceholders() | Sets a list of placeholders for dynamic content. This method is used internally to implement the content caching feature. | yii\ |
Method Details
Adds a placeholder for dynamic content.
This method is used internally to implement the content caching feature.
| public abstract mixed addDynamicPlaceholder ( string $name, string $statements ) | ||
| $name | string |
The placeholder name. |
| $statements | string |
The PHP statements for generating the dynamic content. |
public function addDynamicPlaceholder($name, $statements);
Returns a list of placeholders for dynamic content. This method is used internally to implement the content caching feature.
| public abstract array getDynamicPlaceholders ( ) | ||
| return | array |
A list of placeholders. |
|---|---|---|
public function getDynamicPlaceholders();
Sets a list of placeholders for dynamic content. This method is used internally to implement the content caching feature.
| public abstract mixed setDynamicPlaceholders ( array $placeholders ) | ||
| $placeholders | array |
A list of placeholders. |
public function setDynamicPlaceholders($placeholders);
User Contributed Notes
Leave a comment
Join the conversation to share a note.