src/Installer/Framework.php
public static function uninstall()
	{
		$results = array();

		//see if any mods from jfusion plugins need to be removed
		$plugins = Factory::getPlugins('all', false, 0);
		foreach($plugins as $plugin) {
			$model = new Plugin();
			$result = $model->uninstall($plugin->name);

			$r = new stdClass();
			$result['status'] = 1;
			$r->status = $result['status'];

			if (!$r->status) {
				$r->message = Text::_('UNINSTALL') . ' ' . $plugin->name . ' ' . Text::_('FAILED');
			} else {
				$r->message = Text::_('UNINSTALL') . ' ' . $plugin->name . ' ' . Text::_('SUCCESS');
			}

			$results[] = $r;
		}

		//remove the jfusion tables.
		$db = Factory::getDBO();
		$query = 'DROP TABLE IF EXISTS #__jfusion';
		$db->setQuery($query);
		$db->execute();

		$query = 'DROP TABLE IF EXISTS #__jfusion_sync';
		$db->setQuery($query);
		$db->execute();

		$query = 'DROP TABLE IF EXISTS #__jfusion_sync_details';
		$db->setQuery($query);
		$db->execute();

		$query = 'DROP TABLE IF EXISTS #__jfusion_users';
		$db->setQuery($query);
		$db->execute();
		return $results;
	}
public static function uninstall()
	{
		$results = array();

		//see if any mods from jfusion plugins need to be removed
		$plugins = Factory::getPlugins('all', false, 0);
		foreach($plugins as $plugin) {
			$model = new Plugin();
			$result = $model->uninstall($plugin->name);

			$r = new stdClass();
			$result['status'] = 1;
			$r->status = $result['status'];

			if (!$r->status) {
				$r->message = Text::_('UNINSTALL') . ' ' . $plugin->name . ' ' . Text::_('FAILED');
			} else {
				$r->message = Text::_('UNINSTALL') . ' ' . $plugin->name . ' ' . Text::_('SUCCESS');
			}

			$results[] = $r;
		}

		//remove the jfusion tables.
		$db = Factory::getDBO();
		$query = 'DROP TABLE IF EXISTS #__jfusion';
		$db->setQuery($query);
		$db->execute();

		$query = 'DROP TABLE IF EXISTS #__jfusion_sync';
		$db->setQuery($query);
		$db->execute();

		$query = 'DROP TABLE IF EXISTS #__jfusion_sync_details';
		$db->setQuery($query);
		$db->execute();

		$query = 'DROP TABLE IF EXISTS #__jfusion_users';
		$db->setQuery($query);
		$db->execute();
		return $results;
	}
public static function uninstall ( ) { $ results = array ( ) ; //see if any mods from jfusion plugins need to be removed $ plugins = Factory :: getPlugins ( 'all' , false , 0 ) ; foreach ( $ plugins as $ plugin ) { $ model = new Plugin ( ) ; $ result = $ model -> uninstall ( $ plugin -> name ) ; $ r = new stdClass ( ) ; $ result [ 'status' ] = 1 ; $ r -> status = $ result [ 'status' ] ; if ( ! $ r -> status ) { $ r -> message = Text :: _ ( 'UNINSTALL' ) . ' ' . $ plugin -> name . ' ' . Text :: _ ( 'FAILED' ) ; } else { $ r -> message = Text :: _ ( 'UNINSTALL' ) . ' ' . $ plugin -> name . ' ' . Text :: _ ( 'SUCCESS' ) ; } $ results [ ] = $ r ; } //remove the jfusion tables. $ db = Factory :: getDBO ( ) ; $ query = 'DROP TABLE IF EXISTS #__jfusion' ; $ db -> setQuery ( $ query ) ; $ db -> execute ( ) ; $ query = 'DROP TABLE IF EXISTS #__jfusion_sync' ; $ db -> setQuery ( $ query ) ; $ db -> execute ( ) ; $ query = 'DROP TABLE IF EXISTS #__jfusion_sync_details' ; $ db -> setQuery ( $ query ) ; $ db -> execute ( ) ; $ query = 'DROP TABLE IF EXISTS #__jfusion_users' ; $ db -> setQuery ( $ query ) ; $ db -> execute ( ) ; return $ results ; }
method to uninstall the component

@return stdClass[] with status/message field for plugin uninstall info
method to uninstall the component