Since: 2.0
Author: Qiang Xue (qiang.xue@gmail.com)
Inheritance: extends yii\base\Widget
 public function getCachedContent()
 {
     if ($this->cachedData === null) {
         $cachedData = $this->viewElementsGathener->getCachedData($this->getId());
         if ($cachedData === false) {
             $this->cachedData = false;
             return false;
         }
         $this->viewElementsGathener->repeatGatheredData($this->view, $cachedData);
         $this->cachedData = parent::getCachedContent();
     }
     return $this->cachedData;
 }
Example #2
0
 /**
  * Ends fragment caching.
  */
 public function endCache()
 {
     FragmentCache::end();
 }
Example #3
0
 /**
  * Ends FragmentCache widget.
  */
 public function endCache()
 {
     return FragmentCache::end();
 }