english/libraries/joomla/installer/installer.php
/**
	 * Package update method
	 *
	 * @param   string  $path	Path to package source folder
	 *
	 * @return  boolean  True if successful
	 * @since   11.1
	 */
Package update method
@param   string  $path       Path to package source folder

@return  boolean  True if successful
@since   11.1
Package update method @param string $path Path to package source folder @return boolean True if successful @since 11 . 1
public function update($path=null)
	{
		if ($path && JFolder::exists($path)) {
			$this->setPath('source', $path);
		}
		else {
			$this->abort(JText::_('JLIB_INSTALLER_ABORT_NOUPDATEPATH'));
		}
		if (!$this->setupInstall()) {
			return $this->abort(JText::_('JLIB_INSTALLER_ABORT_DETECTMANIFEST'));
		}
		$type = (string)$this->manifest->attributes()->type;
		if (is_object($this->_adapters[$type])) {
			if (method_exists($this->_adapters[$type], 'loadLanguage')) {
				$this->_adapters[$type]->loadLanguage($path);
			}
            		JPluginHelper::importPlugin('extension');
			$dispatcher = JDispatcher::getInstance();
			$dispatcher->trigger('onExtensionBeforeUpdate', array('type'=>$type, 'manifest'=>$this->manifest));
			$result = $this->_adapters[$type]->update();
			$dispatcher->trigger('onExtensionAfterUpdate', array('installer'=>clone $this, 'eid'=> $result));
			if ($result !== false) {
				return true;
			}
			else {
				return false;
			}
		}
		return false;
	}
public function update ( $ path = null ) { if ( $ path && JFolder :: exists ( $ path ) ) { $ this -> setPath ( 'source' , $ path ) ; } else { $ this -> abort ( JText :: _ ( 'JLIB_INSTALLER_ABORT_NOUPDATEPATH' ) ) ; } if ( ! $ this -> setupInstall ( ) ) { return $ this -> abort ( JText :: _ ( 'JLIB_INSTALLER_ABORT_DETECTMANIFEST' ) ) ; } $ type = ( string ) $ this -> manifest -> attributes ( ) -> type ; if ( is_object ( $ this -> _adapters [ $ type ] ) ) { if ( method_exists ( $ this -> _adapters [ $ type ] , 'loadLanguage' ) ) { $ this -> _adapters [ $ type ] -> loadLanguage ( $ path ) ; } JPluginHelper :: importPlugin ( 'extension' ) ; $ dispatcher = JDispatcher :: getInstance ( ) ; $ dispatcher -> trigger ( 'onExtensionBeforeUpdate' , array ( 'type' => $ type , 'manifest' => $ this -> manifest ) ) ; $ result = $ this -> _adapters [ $ type ] -> update ( ) ; $ dispatcher -> trigger ( 'onExtensionAfterUpdate' , array ( 'installer' => clone $ this , 'eid' => $ result ) ) ; if ( $ result !== false ) { return true ; } else { return false ; } } return false ; }
Package update method
 @param   string  $path       Path to package source folder
Package update method @param string $path Path to package source folder
// Add the languages from the package itself // Fire the onExtensionBeforeUpdate event. // Run the update // Fire the onExtensionAfterUpdate