FOF30\Utils\InstallScript::uninstall PHP Метод

uninstall() публичный Метод

Runs on uninstallation
public uninstall ( JInstallerAdapterComponent $parent )
$parent JInstallerAdapterComponent The parent object
    public function uninstall($parent)
    {
        // Uninstall database
        $dbInstaller = new Installer(JFactory::getDbo(), ($this->schemaXmlPathRelative ? JPATH_ADMINISTRATOR . '/components/' . $this->componentName : '') . '/' . $this->schemaXmlPath);
        $dbInstaller->removeSchema();
        // Uninstall post-installation messages on Joomla! 3.2 and later
        $this->uninstallPostInstallationMessages();
        // Remove ourselves from the list of extensions depending on FOF30
        $this->removeDependency('fof30', $this->componentName);
        // Show the post-uninstallation page
        $this->renderPostUninstallation($parent);
    }

Usage Example

Пример #1
0
 public function uninstall($parent)
 {
     // Remove the update sites for this component on installation. The update sites are now handled at the package
     // level.
     $this->removeObsoleteUpdateSites($parent);
     parent::uninstall($parent);
 }