1: <?php
2:
3: /**
4: * This file is part of the Nette Framework (http://nette.org)
5: *
6: * Copyright (c) 2004 David Grudl (http://davidgrudl.com)
7: *
8: * For the full copyright and license information, please view
9: * the file license.txt that was distributed with this source code.
10: */
11:
12: namespace Nette\Latte;
13:
14: use Nette;
15:
16:
17: /**
18: * HTML element node.
19: *
20: * @author David Grudl
21: */
22: class HtmlNode extends Nette\Object
23: {
24: /** @var string */
25: public $name;
26:
27: /** @var bool */
28: public $isEmpty = FALSE;
29:
30: /** @var array */
31: public $attrs = array();
32:
33: /** @var array */
34: public $macroAttrs = array();
35:
36: /** @var bool */
37: public $closing = FALSE;
38:
39: /** @var string */
40: public $attrCode;
41:
42: /** @var int */
43: public $offset;
44:
45:
46: public function __construct($name)
47: {
48: $this->name = $name;
49: }
50:
51: }
52: