english/libraries/joomla/installer/installer.php
/**
	 * Package uninstallation method
	 *
	 * @param   string   $type	Package type
	 * @param   mixed    $identifier	Package identifier for adapter
	 * @param   integer  $cid	Application ID; deprecated in 1.6
	 *
	 * @return  boolean  True if successful
	 * @since   11.1
	 */
Package uninstallation method
@param   string   $type      Package type
@param   mixed    $identifier        Package identifier for adapter
@param   integer  $cid       Application ID; deprecated in 1.6

@return  boolean  True if successful
@since   11.1
Package uninstallation method @param string $type Package type @param mixed $identifier Package identifier for adapter @param integer $cid Application ID ; deprecated in 1 . 6 @return boolean True if successful @since 11 . 1
public function uninstall($type, $identifier, $cid=0)
	{
		if (!isset($this->_adapters[$type]) || !is_object($this->_adapters[$type])) {
			if (!$this->setAdapter($type)) {
				return false; 
			}
		}
		if (is_object($this->_adapters[$type])) {
            JPluginHelper::importPlugin('extension');
            $dispatcher = JDispatcher::getInstance();
            $dispatcher->trigger('onExtensionBeforeUninstall', array('eid' => $identifier));
			$result = $this->_adapters[$type]->uninstall($identifier);
			$dispatcher->trigger('onExtensionAfterUninstall', array('installer'=>clone $this, 'eid'=> $identifier, 'result' => $result));
			return $result;
		}
		return false;
	}
public function uninstall ( $ type , $ identifier , $ cid = 0 ) { if ( ! isset ( $ this -> _adapters [ $ type ] ) || ! is_object ( $ this -> _adapters [ $ type ] ) ) { if ( ! $ this -> setAdapter ( $ type ) ) { return false ; } } if ( is_object ( $ this -> _adapters [ $ type ] ) ) { JPluginHelper :: importPlugin ( 'extension' ) ; $ dispatcher = JDispatcher :: getInstance ( ) ; $ dispatcher -> trigger ( 'onExtensionBeforeUninstall' , array ( 'eid' => $ identifier ) ) ; $ result = $ this -> _adapters [ $ type ] -> uninstall ( $ identifier ) ; $ dispatcher -> trigger ( 'onExtensionAfterUninstall' , array ( 'installer' => clone $ this , 'eid' => $ identifier , 'result' => $ result ) ) ; return $ result ; } return false ; }
Package uninstallation method
 @param   string   $type      Package type
 @param   mixed    $identifier        Package identifier for adapter
 @param   integer  $cid       Application ID; deprecated in 1.6
Package uninstallation method @param string $type Package type @param mixed $identifier Package identifier for adapter @param integer $cid Application ID ; deprecated in 1 . 6
// We failed to get the right adapter // We don't load languages here, we get the extension adapter to work it out // Fire the onExtensionBeforeUninstall event. // Run the uninstall // Fire the onExtensionAfterInstall