1 | <?php |
||
14 | class HTMLDOMNode |
||
15 | { |
||
16 | /** @var string HTML tag name */ |
||
17 | public $tag; |
||
18 | /** @var string HTML identifier */ |
||
19 | public $identifier; |
||
20 | /** @var string[] CSS class names collection */ |
||
21 | public $class = array(); |
||
22 | /** @var string HTML name attribute value */ |
||
23 | public $name; |
||
24 | /** @var string Selector for node */ |
||
25 | public $selector; |
||
26 | /** @var \DOMNode pointer to DOM node */ |
||
27 | public $dom; |
||
28 | /** @var $this Pointer to parent node */ |
||
29 | public $parent; |
||
30 | /** @var $this [] Collection of nested nodes */ |
||
31 | public $children = array(); |
||
32 | |||
33 | /** |
||
34 | * Create LESS Node |
||
35 | * |
||
36 | * @param \DOMNode $node Pointer to DOM node |
||
37 | * @param $this $parent Pointer to parent node |
||
38 | * @param string $selector Forced LESS node selector |
||
39 | */ |
||
40 | public function __construct(\DOMNode &$node, self &$parent = null, $selector = null) |
||
77 | |||
78 | /** |
||
79 | * @return string Object string representation |
||
80 | */ |
||
81 | public function __toString() |
||
85 | } |
||
86 |