protected function uninstallCMSNavItems(Plugin $plugin)
    {
        $dto = new DTO(array('PluginID' => $plugin->PluginID));
        $navitems = $this->CMSNavItemService->findAll($dto)->getResults();

        rsort($navitems);

        foreach ($navitems as $navitem) {
            $this->CMSNavItemService->delete($navitem->Slug);
        }
    }
protected function uninstallCMSNavItems(Plugin $plugin)
    {
        $dto = new DTO(array('PluginID' => $plugin->PluginID));
        $navitems = $this->CMSNavItemService->findAll($dto)->getResults();

        rsort($navitems);

        foreach ($navitems as $navitem) {
            $this->CMSNavItemService->delete($navitem->Slug);
        }
    }
protected function uninstallCMSNavItems ( Plugin $ plugin ) { $ dto = new DTO ( array ( 'PluginID' => $ plugin -> PluginID ) ) ; $ navitems = $ this -> CMSNavItemService -> findAll ( $ dto ) -> getResults ( ) ; rsort ( $ navitems ) ; foreach ( $ navitems as $ navitem ) { $ this -> CMSNavItemService -> delete ( $ navitem -> Slug ) ; } }
Removes all cms nav items that were installed by this plugin

@param Plugin $plugin The plugin with cms nav items to remove

@return void
Removes all cms nav items that were installed by this plugin