コード例 #1
0
 /**
  * Retrieves the entire tree from parent $node
  *
  * @param      sfBreadNav $node	Propel object for parent node
  * @param      PropelPDO $con	Connection to use.
  */
 public static function retrieveBranch(NodeObject $node, PropelPDO $con = null)
 {
     return sfBreadNavPeer::retrieveDescendants($node, $con);
 }
コード例 #2
0
 /**
  * Gets the descendants for the node
  *
  * @param      PropelPDO Connection to use.
  * @return     array
  */
 public function getDescendants(PropelPDO $con = null)
 {
     $this->getLevel();
     return sfBreadNavPeer::retrieveDescendants($this, $con);
 }