public function getSiblings($includeNode=false)
    {
        $parent = $this->getParent();
        $siblings = array();
        if($parent && $parent->isValidNode())
        {
            $children = $parent->getChildren();
            foreach($children as $child)
            {
                if(!$includeNode && $this->isEqualTo($child))
                {
                    continue;
                }
                $siblings[] = $child;
            }
        }

        return $siblings;
    }
public function getSiblings($includeNode=false)
    {
        $parent = $this->getParent();
        $siblings = array();
        if($parent && $parent->isValidNode())
        {
            $children = $parent->getChildren();
            foreach($children as $child)
            {
                if(!$includeNode && $this->isEqualTo($child))
                {
                    continue;
                }
                $siblings[] = $child;
            }
        }

        return $siblings;
    }
public function getSiblings ( $ includeNode = false ) { $ parent = $ this -> getParent ( ) ; $ siblings = array ( ) ; if ( $ parent && $ parent -> isValidNode ( ) ) { $ children = $ parent -> getChildren ( ) ; foreach ( $ children as $ child ) { if ( ! $ includeNode && $ this -> isEqualTo ( $ child ) ) { continue ; } $ siblings [ ] = $ child ; } } return $ siblings ; }
gets siblings for node

@param bool $includeNode whether to include this node in the list of
sibling nodes (default: false)

@return array array of NodeWrapper objects
gets siblings for node