示例#1
0
 protected function initRecursive($namingContainer = null)
 {
     if ($this->_cacheAvailable && !$this->_dataCached) {
         $stack = $this->getPage()->getCachingStack();
         $stack->push($this);
         parent::initRecursive($namingContainer);
         $stack->pop();
     } else {
         parent::initRecursive($namingContainer);
     }
 }
示例#2
0
 /**
  * Performs the OnInit step for the control and all its child controls.
  * This method overrides the parent implementation
  * by ensuring child controls are created first.
  * Only framework developers should use this method.
  * @param TControl the naming container control
  */
 protected function initRecursive($namingContainer = null)
 {
     $this->ensureChildControls();
     parent::initRecursive($namingContainer);
 }