protected function uninstallAspects(Plugin $plugin)
    {
        $dto     = new DTO(array('PluginID'=>$plugin->PluginID));
        $aspects = $this->AspectService->findAll($dto)->getResults();

        foreach ($aspects as $aspect) {
            $this->AspectService->delete($aspect->Slug);
        }

    }
protected function uninstallAspects(Plugin $plugin)
    {
        $dto     = new DTO(array('PluginID'=>$plugin->PluginID));
        $aspects = $this->AspectService->findAll($dto)->getResults();

        foreach ($aspects as $aspect) {
            $this->AspectService->delete($aspect->Slug);
        }

    }
protected function uninstallAspects ( Plugin $ plugin ) { $ dto = new DTO ( array ( 'PluginID' => $ plugin -> PluginID ) ) ; $ aspects = $ this -> AspectService -> findAll ( $ dto ) -> getResults ( ) ; foreach ( $ aspects as $ aspect ) { $ this -> AspectService -> delete ( $ aspect -> Slug ) ; } }
Removes all aspects that were installed by this plugin

@param Plugin $plugin The plugin with aspects to remove

@return void
Removes all aspects that were installed by this plugin