Class JoomlaupdateModelDefault

Description

Joomla! update overview Model

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

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

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 658)

Removes the extracted package file

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

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 242)

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 440)

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 180)

Returns an array with the configured FTP options

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

Returns an array with the Joomla! update information

  • since: 2.5.4
  • access: public
array getUpdateInformation ()
refreshUpdates (line 107)

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

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

Inherited Methods

Inherited From JModel

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

Inherited From JObject

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

Documentation generated on Mon, 25 Jun 2012 13:54:07 -0500 by phpDocumentor 1.4.4