public function HamlCommentNode::__construct in Sassy 7
Overrides HamlNode::__construct
File
- phamlp/
haml/ tree/ HamlCommentNode.php, line 21
Class
- HamlCommentNode
- HamlCommentNode class. Represents a comment, including MSIE conditional comments. @package PHamlP @subpackage Haml.tree
Code
public function __construct($content, $parent) {
$this->content = $content;
$this->isConditional = (bool) preg_match('/^\\[.+\\]$/', $content, $matches);
$this->parent = $parent;
$this->root = $parent->root;
$parent->children[] = $this;
}