english/administrator/components/com_installer/models/update.php
/**
	 * Removes all of the updates from the table.
	 *
	 * @return	boolean result of operation
	 * @since	1.6
	 */
Removes all of the updates from the table.
@return      boolean result of operation
@since       1.6
Removes all of the updates from the table . @return boolean result of operation @since 1 . 6
public function purge()
	{
		$db = JFactory::getDBO();
		$db->setQuery('TRUNCATE TABLE #__updates');
		if ($db->Query()) {
			$this->_message = JText::_('COM_INSTALLER_PURGED_UPDATES');
			return true;
		} else {
			$this->_message = JText::_('COM_INSTALLER_FAILED_TO_PURGE_UPDATES');
			return false;
		}
	}
public function purge ( ) { $ db = JFactory :: getDBO ( ) ; $ db -> setQuery ( 'TRUNCATE TABLE #__updates' ) ; if ( $ db -> Query ( ) ) { $ this -> _message = JText :: _ ( 'COM_INSTALLER_PURGED_UPDATES' ) ; return true ; } else { $ this -> _message = JText :: _ ( 'COM_INSTALLER_FAILED_TO_PURGE_UPDATES' ) ; return false ; } }
Removes all of the updates from the table.
Removes all of the updates from the table .
// Note: TRUNCATE is a DDL operation // This may or may not mean depending on your database