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;
9:
10:
11: /**
12: * HTML element node.
13: *
14: * @author David Grudl
15: */
16: class HtmlNode extends Object
17: {
18: /** @var string */
19: public $name;
20:
21: /** @var bool */
22: public $isEmpty = FALSE;
23:
24: /** @var array */
25: public $attrs = array();
26:
27: /** @var array */
28: public $macroAttrs = array();
29:
30: /** @var bool */
31: public $closing = FALSE;
32:
33: /** @var HtmlNode */
34: public $parentNode;
35:
36: /** @var string */
37: public $attrCode;
38:
39: /** @var int */
40: public $offset;
41:
42:
43: public function __construct($name, self $parentNode = NULL)
44: {
45: $this->name = $name;
46: $this->parentNode = $parentNode;
47: }
48:
49: }
50: