public function isChildOf($node) {
        $result = $this->owner->getAttribute($this->leftAttribute) > $node->getAttribute($this->leftAttribute) && $this->owner->getAttribute($this->rightAttribute) < $node->getAttribute($this->rightAttribute);

        if ($result && $this->treeAttribute !== false) {
            $result = $this->owner->getAttribute($this->treeAttribute) === $node->getAttribute($this->treeAttribute);
        }

        return $result;
    }
public function isChildOf($node) {
        $result = $this->owner->getAttribute($this->leftAttribute) > $node->getAttribute($this->leftAttribute) && $this->owner->getAttribute($this->rightAttribute) < $node->getAttribute($this->rightAttribute);

        if ($result && $this->treeAttribute !== false) {
            $result = $this->owner->getAttribute($this->treeAttribute) === $node->getAttribute($this->treeAttribute);
        }

        return $result;
    }
public function isChildOf ( $ node ) { $ result = $ this -> owner -> getAttribute ( $ this -> leftAttribute ) > $ node -> getAttribute ( $ this -> leftAttribute ) && $ this -> owner -> getAttribute ( $ this -> rightAttribute ) < $ node -> getAttribute ( $ this -> rightAttribute ) ; if ( $ result && $ this -> treeAttribute !== false ) { $ result = $ this -> owner -> getAttribute ( $ this -> treeAttribute ) === $ node -> getAttribute ( $ this -> treeAttribute ) ; } return $ result ; }
Determines whether the node is child of the parent node.
@param ActiveRecord $node the parent node
@return boolean whether the node is child of the parent node
Determines whether the node is child of the parent node .