Prado\Web\UI\TControl::loadRecursive PHP Метод

loadRecursive() защищенный Метод

Only framework developers should use this method.
protected loadRecursive ( )
    protected function loadRecursive()
    {
        if ($this->_stage < self::CS_LOADED) {
            if (isset($this->_rf[self::RF_ADAPTER])) {
                $this->_rf[self::RF_ADAPTER]->onLoad(null);
            } else {
                $this->onLoad(null);
            }
        }
        if ($this->getHasControls()) {
            foreach ($this->_rf[self::RF_CONTROLS] as $control) {
                if ($control instanceof TControl) {
                    $control->loadRecursive();
                }
            }
        }
        if ($this->_stage < self::CS_LOADED) {
            $this->_stage = self::CS_LOADED;
        }
    }

Usage Example

Пример #1
0
 /**
  * Performs the Load step for the control and all its child controls.
  * This method overrides the parent implementation by setting up
  * the stack of the output cache in the page. If the data is restored
  * from cache, it also recovers the actions associated with the cached data.
  * Only framework developers should use this method.
  * @param TControl the naming container control
  */
 protected function loadRecursive()
 {
     if ($this->_cacheAvailable && !$this->_dataCached) {
         $stack = $this->getPage()->getCachingStack();
         $stack->push($this);
         parent::loadRecursive();
         $stack->pop();
     } else {
         if ($this->_dataCached) {
             $this->performActions();
         }
         parent::loadRecursive();
     }
 }
TControl