/**
* 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();
}
}