Class JoomlaupdateModelDefault

Description

Joomla! update overview Model

Located in /administrator/components/com_joomlaupdate/models/default.php (line 23)

JObject
   |
   --JModelLegacy
      |
      --JoomlaupdateModelDefault
Method Summary
 void applyUpdateSite ()
 void cleanUp ()
 void createRestorationFile ([ $basename = null])
 bool|string download ()
 boolean downloadPackage (string $url, string $target)
 boolean finaliseUpgrade ()
 array getFTPOptions ()
 boolean purge ()
 void refreshUpdates ([boolean $force = false])
Variables
Methods
applyUpdateSite (line 33)

Detects if the Joomla! update site currently in use matches the one configured in this component. If they don't match, it changes it.

  • since: 2.5.4
  • access: public
void applyUpdateSite ()
cleanUp (line 734)

Removes the extracted package file

  • since: 2.5.4
  • access: public
void cleanUp ()
createRestorationFile (line 303)
  • since: 2.5.4
  • access: public
void createRestorationFile ([ $basename = null])
  • $basename
download (line 241)

Downloads the update package to the site

  • return: False on failure, basename of the file in any other case
  • since: 2.5.4
  • access: public
bool|string download ()
downloadPackage (line 284)

Downloads a package file to a specific directory

  • return: True on success
  • since: 2.5.4
  • access: protected
boolean downloadPackage (string $url, string $target)
  • string $url: The URL to download from
  • string $target: The directory to store the file
finaliseUpgrade (line 515)

Runs the schema update SQL files, the PHP update script and updates the manifest cache and #__extensions entry. Essentially, it is identical to JInstallerFile::install() without the file copy.

  • return: True on success
  • since: 2.5.4
  • access: public
boolean finaliseUpgrade ()
getFTPOptions (line 186)

Returns an array with the configured FTP options

  • since: 2.5.4
  • access: public
array getFTPOptions ()
getUpdateInformation (line 133)

Returns an array with the Joomla! update information

  • since: 2.5.4
  • access: public
array getUpdateInformation ()
purge (line 206)

Removes all of the updates from the table and enable all update streams.

  • return: Result of operation
  • since: 3.0
  • access: public
boolean purge ()
refreshUpdates (line 110)

Makes sure that the Joomla! update cache is up-to-date

  • since: 2.5.4
  • access: public
void refreshUpdates ([boolean $force = false])
  • boolean $force: Force reload, ignoring the cache timeout

Inherited Methods

Inherited From JModelLegacy

 JModelLegacy::__construct()
 JModelLegacy::addIncludePath()
 JModelLegacy::addTablePath()
 JModelLegacy::cleanCache()
 JModelLegacy::getDbo()
 JModelLegacy::getInstance()
 JModelLegacy::getName()
 JModelLegacy::getState()
 JModelLegacy::getTable()
 JModelLegacy::loadHistory()
 JModelLegacy::populateState()
 JModelLegacy::setDbo()
 JModelLegacy::setState()
 JModelLegacy::_createFileName()
 JModelLegacy::_createTable()
 JModelLegacy::_getList()
 JModelLegacy::_getListCount()

Inherited From JObject

 JObject::__construct()
 JObject::def()
 JObject::get()
 JObject::getError()
 JObject::getErrors()
 JObject::getProperties()
 JObject::set()
 JObject::setError()
 JObject::setProperties()
 JObject::__toString()

Documentation generated on Tue, 19 Nov 2013 14:59:57 +0100 by phpDocumentor 1.4.3