Prado\Web\UI\WebControls\TOutputCache::saveStateRecursive PHP Method

saveStateRecursive() protected method

This method overrides the parent implementation by saving state into cache if needed. This method should only be used by framework developers.
protected saveStateRecursive ( $needViewState = true ) : array
return array the collection of the control state (including its children's state).
    protected function &saveStateRecursive($needViewState = true)
    {
        if ($this->_dataCached) {
            return $this->_state;
        } else {
            $st = parent::saveStateRecursive($needViewState);
            // serialization is needed to avoid undefined classes when loading state
            $this->_state = serialize($st);
            return $this->_state;
        }
    }