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: * @author David Grudl
15: */
16: interface IStatePersistent
17: {
18:
19: /**
20: * Loads state informations.
21: * @return void
22: */
23: function loadState(array $params);
24:
25: /**
26: * Saves state informations for next request.
27: * @return void
28: */
29: function saveState(array & $params);
30:
31: }
32: