public function HamlNode::__construct in Sassy 7
4 methods override HamlNode::__construct()
- HamlCommentNode::__construct in phamlp/
haml/ tree/ HamlCommentNode.php - HamlFilterNode::__construct in phamlp/
haml/ tree/ HamlFilterNode.php - * HamlFilterNode constructor. * Sets the filter. *
- HamlHelperNode::__construct in phamlp/
haml/ tree/ HamlHelperNode.php - * HamlFilterNode constructor. * Sets the filter. *
- HamlRootNode::__construct in phamlp/
haml/ tree/ HamlRootNode.php - * Root HamlNode constructor. *
File
- phamlp/
haml/ tree/ HamlNode.php, line 69
Class
- HamlNode
- HamlNode class. Base class for all Haml nodes. @package PHamlP @subpackage Haml.tree
Code
public function __construct($content, $parent) {
$this->content = $content;
if (!is_null($parent)) {
// $parent === null for "else" code blocks
$this->parent = $parent;
$this->root = $parent->root;
$parent->children[] = $this;
}
}