mirror of
				https://github.com/yiisoft/yii2.git
				synced 2025-11-04 14:46:19 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			41 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			41 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			PHP
		
	
	
	
	
	
<?php
 | 
						|
/**
 | 
						|
 * @link https://www.yiiframework.com/
 | 
						|
 * @copyright Copyright (c) 2008 Yii Software LLC
 | 
						|
 * @license https://www.yiiframework.com/license/
 | 
						|
 */
 | 
						|
 | 
						|
namespace yii\base;
 | 
						|
 | 
						|
/**
 | 
						|
 * DynamicContentAwareInterface is the interface that should be implemented by classes
 | 
						|
 * which support a [[View]] dynamic content feature.
 | 
						|
 *
 | 
						|
 * @author Sergey Makinen <sergey@makinen.ru>
 | 
						|
 * @since 2.0.14
 | 
						|
 */
 | 
						|
interface DynamicContentAwareInterface
 | 
						|
{
 | 
						|
    /**
 | 
						|
     * Returns a list of placeholders for dynamic content. This method
 | 
						|
     * is used internally to implement the content caching feature.
 | 
						|
     * @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.
 | 
						|
     * @param array $placeholders a list of placeholders.
 | 
						|
     */
 | 
						|
    public function setDynamicPlaceholders($placeholders);
 | 
						|
 | 
						|
    /**
 | 
						|
     * Adds a placeholder for dynamic content.
 | 
						|
     * This method is used internally to implement the content caching feature.
 | 
						|
     * @param string $name the placeholder name.
 | 
						|
     * @param string $statements the PHP statements for generating the dynamic content.
 | 
						|
     */
 | 
						|
    public function addDynamicPlaceholder($name, $statements);
 | 
						|
}
 |