示例#1
0
 /**
  * Gets the level if set, otherwise calculates this and returns it
  *
  * @param      PropelPDO Connection to use.
  * @return     int
  */
 public function getLevel(PropelPDO $con = null)
 {
     if (null === $this->level) {
         $this->level = sfBreadNavPeer::getLevel($this, $con);
     }
     return $this->level;
 }