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: use Nette;
11:
12:
13: /**
14: * Component with ability to save and load its state.
15: *
16: * @author David Grudl
17: */
18: interface IStatePersistent
19: {
20:
21: /**
22: * Loads state informations.
23: * @return void
24: */
25: function loadState(array $params);
26:
27: /**
28: * Saves state informations for next request.
29: * @return void
30: */
31: function saveState(array & $params);
32:
33: }
34: