* @link http://www.pradosoft.com/ * @copyright Copyright © 2005-2014 PradoSoft * @license http://www.pradosoft.com/license/ * @package System.Web.UI */ /** * IPageStatePersister interface. * * IPageStatePersister interface is required for all page state persister * classes. * * @author Qiang Xue * @package System.Web.UI * @since 3.1 */ interface IPageStatePersister { /** * @param TPage the page that this persister works for */ public function getPage(); /** * @param TPage the page that this persister works for */ public function setPage(TPage $page); /** * Saves state to persistent storage. * @param mixed state to be stored */ public function save($state); /** * Loads page state from persistent storage * @return mixed the restored state */ public function load(); }