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