You are here

public function HamlFilterNode::__construct in Sassy 7

* HamlFilterNode constructor. * Sets the filter. *

Parameters

HamlBaseFilter the filter to run: * @return HamlFilterNode

Overrides HamlNode::__construct

File

phamlp/haml/tree/HamlFilterNode.php, line 31

Class

HamlFilterNode
HamlFilterNode class. Represent a filter in the Haml source. The filter is run on the output from child nodes when the node is rendered. @package PHamlP @subpackage Haml.tree

Code

public function __construct($filter, $parent) {
  $this->filter = $filter;
  $this->parent = $parent;
  $this->root = $parent->root;
  $parent->children[] = $this;
}