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). |
/** * Saves all control state (viewstate and controlstate) as a collection. * This method overrides the parent implementation by saving state * into cache if needed. * This method should only be used by framework developers. * @param boolean whether the viewstate should be saved * @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; } }