public function getSiblings($includeNode = true)
	{
		$parent = $this->getParent();
		$siblings = null;
		
		if ( ! is_null($parent)) {
			$siblings = $parent->getChildren();
		} else {
			$siblings = $this->repository->getRootNodes();
		}
		
		if ( ! $includeNode) {
			foreach ($siblings as $key => $sibling) {
				if ($sibling->isEqualTo($this)) {
					unset($siblings[$key]);
					break;
				}
			}
			// reset index
			$siblings = array_values($siblings);
		}
		
		return $siblings;
	}
public function getSiblings($includeNode = true)
	{
		$parent = $this->getParent();
		$siblings = null;
		
		if ( ! is_null($parent)) {
			$siblings = $parent->getChildren();
		} else {
			$siblings = $this->repository->getRootNodes();
		}
		
		if ( ! $includeNode) {
			foreach ($siblings as $key => $sibling) {
				if ($sibling->isEqualTo($this)) {
					unset($siblings[$key]);
					break;
				}
			}
			// reset index
			$siblings = array_values($siblings);
		}
		
		return $siblings;
	}
public function getSiblings ( $ includeNode = true ) { $ parent = $ this -> getParent ( ) ; $ siblings = null ; if ( ! is_null ( $ parent ) ) { $ siblings = $ parent -> getChildren ( ) ; } else { $ siblings = $ this -> repository -> getRootNodes ( ) ; } if ( ! $ includeNode ) { foreach ( $ siblings as $ key => $ sibling ) { if ( $ sibling -> isEqualTo ( $ this ) ) { unset ( $ siblings [ $ key ] ) ; break ; } } // reset index $ siblings = array_values ( $ siblings ) ; } return $ siblings ; }
Get siblings of the current node
@param boolean $includeNode
@return array
@nestedSetMethod
Get siblings of the current node