Prado\Web\UI\TSessionPageStatePersister::load PHP Метод

load() публичный Метод

Loads page state from session.
public load ( ) : mixed
Результат mixed the restored state
    public function load()
    {
        if (($timestamp = TPageStateFormatter::unserialize($this->_page, $this->_page->getRequestClientState())) !== null) {
            $session = $this->_page->getSession();
            $session->open();
            $key = self::STATE_SESSION_KEY . $timestamp;
            if (($data = $session->itemAt($key)) !== null) {
                return unserialize($data);
            }
        }
        throw new THttpException(400, 'sessionpagestatepersister_pagestate_corrupted');
    }