1: <?php
2:
3: /**
4: * This file is part of the Nette Framework.
5: *
6: * Copyright (c) 2004, 2010 David Grudl (http://davidgrudl.com)
7: *
8: * This source file is subject to the "Nette license", and/or
9: * GPL license. For more information please see http://nette.org
10: * @package Nette\Application
11: */
12:
13:
14:
15: /**
16: *
17: *
18: * @author David Grudl
19: */
20: interface IRenderable
21: {
22:
23: /**
24: * Forces control to repaint.
25: * @param string
26: * @return void
27: */
28: function invalidateControl();
29:
30: /**
31: * Is required to repaint the control?
32: * @return bool
33: */
34: function isControlInvalid();
35:
36: }
37:
38:
39:
40: /**
41: *
42: *
43: * @author David Grudl
44: */
45: interface IPartiallyRenderable extends IRenderable
46: {
47:
48: /**
49: * Forces control or its snippet to repaint.
50: * @param string
51: * @return void
52: */
53: //function invalidateControl($snippet = NULL);
54:
55: /**
56: * Is required to repaint the control or its snippet?
57: * @param string snippet name
58: * @return bool
59: */
60: //function isControlInvalid($snippet = NULL);
61:
62: }
63: