/** * Tests if $node has next sibling * * @param sfBreadNav $node Propel object for node * @param PropelPDO $con Connection to use. * @return bool */ public static function hasNextSibling(NodeObject $node, PropelPDO $con = null) { return sfBreadNavPeer::isValid(sfBreadNavPeer::retrieveNextSibling($node, $con)); }
/** * Gets ancestor for the given node if it exists * * @param PropelPDO $con Connection to use. * @return mixed Propel object if exists else false */ public function retrieveParent(PropelPDO $con = null) { if (null === $this->hasParentNode) { $this->parentNode = sfBreadNavPeer::retrieveParent($this, $con); $this->hasParentNode = sfBreadNavPeer::isValid($this->parentNode); } return $this->parentNode; }