You are here

public function SassPropertyNode::inNamespace in Sassy 7

Same name and namespace in other branches
  1. 7.3 phpsass/tree/SassPropertyNode.php \SassPropertyNode::inNamespace()

* Returns a value indicating if this node is in a namespace *

Return value

boolean true if this node is in a property namespace, false if not

1 call to SassPropertyNode::inNamespace()
SassPropertyNode::parse in phamlp/sass/tree/SassPropertyNode.php
* Parse this node. * If the node is a property namespace return all parsed child nodes. If not * return the parsed version of this node. *

File

phamlp/sass/tree/SassPropertyNode.php, line 130

Class

SassPropertyNode
SassPropertyNode class. Represents a CSS property. @package PHamlP @subpackage Sass.tree

Code

public function inNamespace() {
  $parent = $this->parent;
  do {
    if ($parent instanceof SassPropertyNode) {
      return true;
    }
    $parent = $parent->parent;
  } while (is_object($parent));
  return false;
}