english/libraries/joomla/installer/installer.php
/**
	 * Cleans up discovered extensions if they're being installed somehow else
	 * @param   string   $type The type of extension (component, etc)
	 * @param   string   $element Unique element identifier (e.g. com_content)
	 * @param   string   $folder The folder of the extension (plugins; e.g. system)
	 * @param   integer  $client The client application (administrator or site)
	 *
	 * @return result of query
	 */
Cleans up discovered extensions if they're being installed somehow else
@param   string   $type The type of extension (component, etc)
@param   string   $element Unique element identifier
@param   string   $folder The folder of the extension (plugins; e.g. system)
@param   integer  $client The client application (administrator or site)

@return result of query
Cleans up discovered extensions if they ' re being installed somehow else @param string $type The type of extension ( component etc ) @param string $element Unique element identifier @param string $folder The folder of the extension ( plugins ; e . g . system ) @param integer $client The client application ( administrator or site ) @return result of query
public function cleanDiscoveredExtension($type, $element, $folder='', $client=0)
	{
		$dbo = JFactory::getDBO();
		$dbo->setQuery('DELETE FROM #__extensions WHERE type = '. $dbo->Quote($type).' AND element = '. $dbo->Quote($element) .' AND folder = '. $dbo->Quote($folder). ' AND client_id = '. intval($client).' AND state = -1');
		return $dbo->Query();
	}
public function cleanDiscoveredExtension ( $ type , $ element , $ folder = '' , $ client = 0 ) { $ dbo = JFactory :: getDBO ( ) ; $ dbo -> setQuery ( 'DELETE FROM #__extensions WHERE type = ' . $ dbo -> Quote ( $ type ) . ' AND element = ' . $ dbo -> Quote ( $ element ) . ' AND folder = ' . $ dbo -> Quote ( $ folder ) . ' AND client_id = ' . intval ( $ client ) . ' AND state = -1' ) ; return $ dbo -> Query ( ) ; }
Cleans up discovered extensions if they're being installed somehow else
 @param   string   $type The type of extension (component, etc)
 @param   string   $element Unique element identifier (e.g.
Cleans up discovered extensions if they ' re being installed somehow else @param string $type The type of extension ( component etc ) @param string $element Unique element identifier ( e . g .