public function addTitle($title, $class = 'Menu_Advanced_Title')
    {
        $i = $this->add(
            $class,
            null,
            null,
            array_merge($this->defaultTemplate(), array('Title'))
        );
        /** @type Menu_Advanced_Title $i */

        $i->set($title);

        return $i;
    }
public function addTitle($title, $class = 'Menu_Advanced_Title')
    {
        $i = $this->add(
            $class,
            null,
            null,
            array_merge($this->defaultTemplate(), array('Title'))
        );
        /** @type Menu_Advanced_Title $i */

        $i->set($title);

        return $i;
    }
public function addTitle ( $ title , $ class = 'Menu_Advanced_Title' ) { $ i = $ this -> add ( $ class , null , null , array_merge ( $ this -> defaultTemplate ( ) , array ( 'Title' ) ) ) ; /** @type Menu_Advanced_Title $i */ $ i -> set ( $ title ) ; return $ i ; }
Adds a title to your menu.
Adds a title to your menu .