mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-15 13:58:24 +08:00
pull origin
This commit is contained in:
@@ -73,6 +73,7 @@ class FragmentCache extends Widget
|
||||
*/
|
||||
public $dynamicPlaceholders;
|
||||
|
||||
|
||||
/**
|
||||
* Initializes the FragmentCache object.
|
||||
*/
|
||||
@@ -150,6 +151,13 @@ class FragmentCache extends Widget
|
||||
return $this->_content;
|
||||
}
|
||||
|
||||
/**
|
||||
* Replaces placeholders in content by results of evaluated dynamic statemens
|
||||
*
|
||||
* @param string $content
|
||||
* @param array $placeholders
|
||||
* @return string final content
|
||||
*/
|
||||
protected function updateDynamicContent($content, $placeholders)
|
||||
{
|
||||
foreach ($placeholders as $name => $statements) {
|
||||
|
||||
Reference in New Issue
Block a user