1: <?php
2:
3: /**
4: * This file is part of the Latte (https://latte.nette.org)
5: * Copyright (c) 2008 David Grudl (https://davidgrudl.com)
6: */
7:
8: namespace Latte\Runtime;
9:
10:
11: /**
12: * Snippet bridge
13: * @internal
14: */
15: interface ISnippetBridge
16: {
17:
18: /**
19: * @return bool
20: */
21: function isSnippetMode();
22:
23: /**
24: * @param bool
25: * @return void
26: */
27: function setSnippetMode($snippetMode);
28:
29: /**
30: * @param string
31: * @return bool
32: */
33: function needsRedraw($name);
34:
35: /**
36: * @param string
37: * @return void
38: */
39: function markRedrawn($name);
40:
41: /**
42: * @param string
43: * @return string
44: */
45: function getHtmlId($name);
46:
47: /**
48: * @param string
49: * @param string
50: * @return mixed
51: */
52: function addSnippet($name, $content);
53:
54: /**
55: * @return void
56: */
57: function renderChildren();
58: }
59: