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