code/libraries/joomlatools/component/koowa/controller/toolbar/menubar.php
public function getCommands()
    {
        $name     = $this->getController()->getIdentifier()->name;
        $package  = $this->getIdentifier()->package;
        $manifest = JPATH_ADMINISTRATOR.'/components/com_'.$package.'/'.$package.'.xml';

        if(file_exists($manifest))
        {
            $xml = simplexml_load_file($manifest);

            if(isset($xml->administration->submenu))
            {
                foreach($xml->administration->submenu->children() as $menu)
                {
                    $view = (string)$menu['view'];

                    $this->addCommand((string)$menu, array(
                        'href'   => 'option=com_'.$package.'&view='.$view,
                        'active' => ($name == KStringInflector::singularize($view))
                    ));
                }
            }
        }

        return parent::getCommands();
    }
public function getCommands()
    {
        $name     = $this->getController()->getIdentifier()->name;
        $package  = $this->getIdentifier()->package;
        $manifest = JPATH_ADMINISTRATOR.'/components/com_'.$package.'/'.$package.'.xml';

        if(file_exists($manifest))
        {
            $xml = simplexml_load_file($manifest);

            if(isset($xml->administration->submenu))
            {
                foreach($xml->administration->submenu->children() as $menu)
                {
                    $view = (string)$menu['view'];

                    $this->addCommand((string)$menu, array(
                        'href'   => 'option=com_'.$package.'&view='.$view,
                        'active' => ($name == KStringInflector::singularize($view))
                    ));
                }
            }
        }

        return parent::getCommands();
    }
public function getCommands ( ) { $ name = $ this -> getController ( ) -> getIdentifier ( ) -> name ; $ package = $ this -> getIdentifier ( ) -> package ; $ manifest = JPATH_ADMINISTRATOR . '/components/com_' . $ package . '/' . $ package . '.xml' ; if ( file_exists ( $ manifest ) ) { $ xml = simplexml_load_file ( $ manifest ) ; if ( isset ( $ xml -> administration -> submenu ) ) { foreach ( $ xml -> administration -> submenu -> children ( ) as $ menu ) { $ view = ( string ) $ menu [ 'view' ] ; $ this -> addCommand ( ( string ) $ menu , array ( 'href' => 'option=com_' . $ package . '&view=' . $ view , 'active' => ( $ name == KStringInflector :: singularize ( $ view ) ) ) ) ; } } } return parent :: getCommands ( ) ; }
Get the list of commands

Will attempt to use information from the xml manifest if possible

@return  array
Get the list of commands