示例#1
0
 /**
  * Class constructor
  * 
  * @param string $name    The name of this menu, which is how its parent will
  *                        reference it. Also used as label if label not specified
  * @param string $route   The route/url for this menu to use. If not specified,
  *                        text will be shown without a link
  * @param array $attributes Attributes to place on the li tag of this menu item
  */
 public function __construct($name, $route = null, $attributes = array())
 {
     parent::__construct($name);
     sfApplicationConfiguration::getActive()->loadHelpers(array('Tag', 'Url'));
     $this->_tree = new ioMenuTree($this);
     $this->_route = $route;
     $this->_attributes = $attributes;
 }