summaryrefslogtreecommitdiff
path: root/framework/Web/UI/IPageStatePersister.php
diff options
context:
space:
mode:
Diffstat (limited to 'framework/Web/UI/IPageStatePersister.php')
-rw-r--r--framework/Web/UI/IPageStatePersister.php42
1 files changed, 42 insertions, 0 deletions
diff --git a/framework/Web/UI/IPageStatePersister.php b/framework/Web/UI/IPageStatePersister.php
new file mode 100644
index 00000000..e1c4e8b1
--- /dev/null
+++ b/framework/Web/UI/IPageStatePersister.php
@@ -0,0 +1,42 @@
+<?php
+/**
+ * TPage class file
+ *
+ * @author Qiang Xue <qiang.xue@gmail.com>
+ * @link http://www.pradosoft.com/
+ * @copyright Copyright &copy; 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 <qiang.xue@gmail.com>
+ * @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();
+} \ No newline at end of file