ElementNode::__construct PHP Method

__construct() public method

public __construct ( $line, $compiler )
    public function __construct($line, $compiler)
    {
        parent::__construct($line);
        $this->_phpVariable = false;
        $this->_el = new Element($this->getHaml(), $compiler);
        $this->_phpVariable = $this->_el->isPhpVariable();
    }

Usage Example

Exemplo n.º 1
0
 /**
  * Constructs the document element node
  */
 public function __construct()
 {
     parent::__construct();
     $this->setTagName("Document");
 }