Beispiel #1
0
    public function uninstall($adapter)
    {
        $params = JComponentHelper::getParams('com_joomleague');
        //Also uninstall db tables of JoomLeague?
        $uninstallDB = $params->get('cfg_drop_joomleague_tables_when_uninstalled', 0);
        if ($uninstallDB) {
            echo JText::_('Also removing database tables of JoomLeague');
            include_once JPATH_ADMINISTRATOR . '/models/databasetools.php';
            JoomleagueModelDatabaseTools::dropJoomLeagueTables();
        } else {
            echo JText::_('Database tables of JoomLeague are not removed');
        }
        ?>
		<div class="header">JoomLeague has been removed from your system!</div>
		<p>To completely remove Joomleague from your system, be sure to also
			uninstall the JoomLeague modules, plugins and languages.</p>

		<?php 
        return true;
    }