Permalink
Browse files

Latte: added HtmlNode::$parentNode

  • Loading branch information...
1 parent dbd3e1e commit 38bea66bfd4677ad26f2b8c4a811894c10cb92b2 @dg dg committed Apr 23, 2012
Showing with 5 additions and 1 deletion.
  1. +5 −1 Nette/Latte/HtmlNode.php
View
6 Nette/Latte/HtmlNode.php
@@ -37,6 +37,9 @@ class HtmlNode extends Nette\Object
/** @var bool */
public $closing = FALSE;
+ /** @var HtmlNode */
+ public $parentNode;
+
/** @var string */
public $attrCode;
@@ -45,9 +48,10 @@ class HtmlNode extends Nette\Object
- public function __construct($name)
+ public function __construct($name, self $parentNode = NULL)
{
$this->name = $name;
+ $this->parentNode = $parentNode;
}
}

0 comments on commit 38bea66

Please sign in to comment.