Updater

Type
Class
Namespace
Craft
Inherits
Craft\Updater
Since
1.0

Class Updater

See also http://craftcms.com

View source

Public Methods

__construct()

Signature

public Craft\Updater __construct ( )

backupDatabase()

Signature

public string backupDatabase ( )

backupFiles()

View source

Arguments

  • $uid
  • $handle

Returns

null

Throws

Signature

public null backupFiles ( $uid, $handle )

checkRequirements()

Performs environmental requirement checks before running an update.

View source

Returns

null

Throws

Signature

public null checkRequirements ( )

cleanUp()

View source

Arguments

  • $uid
  • $handle

Returns

boolean

Throws

Signature

public boolean cleanUp ( $uid, $handle )

getUpdateFileInfo()

View source

Arguments

  • $handle

Returns

array

Signature

public array getUpdateFileInfo ( $handle )

processDownload()

View source

Arguments

Returns

array

Throws

Signature

public array processDownload ( $md5, $handle )

updateDatabase()

View source

Arguments

Returns

null

Throws

Signature

public null updateDatabase ( $plugin = null )

updateFiles()

View source

Arguments

  • $uid
  • $handle

Returns

null

Throws

Signature

public null updateFiles ( $uid, $handle )