1: <?php
2:
3: /**
4: * This file is part of the Nette Framework (https://nette.org)
5: * Copyright (c) 2004 David Grudl (http://davidgrudl.com)
6: * @package Nette\Application\UI
7: */
8:
9:
10:
11: /**
12: * Component with ability to save and load its state.
13: *
14: * @author David Grudl
15: * @package Nette\Application\UI
16: */
17: interface IStatePersistent
18: {
19:
20: /**
21: * Loads state informations.
22: * @return void
23: */
24: function loadState(array $params);
25:
26: /**
27: * Saves state informations for next request.
28: * @return void
29: */
30: function saveState(array & $params);
31:
32: }
33: