/**
* Loads page state from hidden fields.
* @return mixed the restored state
* @throws THttpException if page state is corrupted
*/
public function load()
{
if (($data = TPageStateFormatter::unserialize($this->_page, $this->_page->getRequestClientState())) !== null) {
return $data;
} else {
throw new THttpException(400, 'pagestatepersister_pagestate_corrupted');
}
}