You are here

public function HamlHelperNode::__construct in Sassy 7

* HamlFilterNode constructor. * Sets the filter. *

Parameters

string helper class.: * @param string helper call. * @return HamlHelperNode

Overrides HamlNode::__construct

File

phamlp/haml/tree/HamlHelperNode.php, line 50

Class

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

Code

public function __construct($class, $pre, $name, $args, $parent) {
  $this->class = $class;
  $this->pre = $pre;
  $this->name = $name;
  $this->args = $args;
  $this->parent = $parent;
  $this->root = $parent->root;
  $parent->children[] = $this;
}