DynamicContentAwareInterface
in
DynamicContentAwareInterface is the interface that should be implemented by classes which support a [[View]] dynamic content feature.
Tags
Table of Contents
Methods
- addDynamicPlaceholder() : mixed
- Adds a placeholder for dynamic content.
- getDynamicPlaceholders() : array<string|int, mixed>
- Returns a list of placeholders for dynamic content. This method is used internally to implement the content caching feature.
- setDynamicPlaceholders() : mixed
- Sets a list of placeholders for dynamic content. This method is used internally to implement the content caching feature.
Methods
addDynamicPlaceholder()
Adds a placeholder for dynamic content.
public
addDynamicPlaceholder(string $name, string $statements) : mixed
This method is used internally to implement the content caching feature.
Parameters
- $name : string
-
the placeholder name.
- $statements : string
-
the PHP statements for generating the dynamic content.
getDynamicPlaceholders()
Returns a list of placeholders for dynamic content. This method is used internally to implement the content caching feature.
public
getDynamicPlaceholders() : array<string|int, mixed>
Return values
array<string|int, mixed> —a list of placeholders.
setDynamicPlaceholders()
Sets a list of placeholders for dynamic content. This method is used internally to implement the content caching feature.
public
setDynamicPlaceholders(array<string|int, mixed> $placeholders) : mixed
Parameters
- $placeholders : array<string|int, mixed>
-
a list of placeholders.