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