blob: 651677a6bdf075c557d93105868c7fd5c1d7588d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
<?php
/**
* TPage class file
*
* @author Qiang Xue <qiang.xue@gmail.com>
* @link http://www.pradosoft.com/
* @copyright Copyright © 2005-2014 PradoSoft
* @license http://www.pradosoft.com/license/
* @package Prado\Web\UI
*/
namespace Prado\Web\UI;
/**
* IPageStatePersister interface.
*
* IPageStatePersister interface is required for all page state persister
* classes.
*
* @author Qiang Xue <qiang.xue@gmail.com>
* @package Prado\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();
}
|