english/administrator/components/com_installer/models/discover.php
/**
	 * Cleans out the list of discovered extensions.
	 *
	 * @since	1.6
	 */
Cleans out the list of discovered extensions.
Cleans out the list of discovered extensions .
function purge()
	{
		$db		= JFactory::getDBO();
		$query	= $db->getQuery(true);
		$query->delete();
		$query->from('#__extensions');
		$query->where('state = -1');
		$db->setQuery((string)$query);
		if ($db->Query()) {
			$this->_message = JText::_('COM_INSTALLER_MSG_DISCOVER_PURGEDDISCOVEREDEXTENSIONS');
			return true;
		} else {
			$this->_message = JText::_('COM_INSTALLER_MSG_DISCOVER_FAILEDTOPURGEEXTENSIONS');
			return false;
		}
	}
function purge ( ) { $ db = JFactory :: getDBO ( ) ; $ query = $ db -> getQuery ( true ) ; $ query -> delete ( ) ; $ query -> from ( '#__extensions' ) ; $ query -> where ( 'state = -1' ) ; $ db -> setQuery ( ( string ) $ query ) ; if ( $ db -> Query ( ) ) { $ this -> _message = JText :: _ ( 'COM_INSTALLER_MSG_DISCOVER_PURGEDDISCOVEREDEXTENSIONS' ) ; return true ; } else { $ this -> _message = JText :: _ ( 'COM_INSTALLER_MSG_DISCOVER_FAILEDTOPURGEEXTENSIONS' ) ; return false ; } }
Cleans out the list of discovered extensions.
Cleans out the list of discovered extensions .