С версии: 2.0
Автор: Qiang Xue (qiang.xue@gmail.com)
Наследование: extends yii\base\Widget
Пример #1
0
 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;
 }
Пример #2
0
 /**
  * Ends fragment caching.
  */
 public function endCache()
 {
     FragmentCache::end();
 }
Пример #3
0
 /**
  * Ends FragmentCache widget.
  */
 public function endCache()
 {
     return FragmentCache::end();
 }