Updater

Type
Class
Namespace
Craft
Inherits
Craft\Updater
Since
1.0

Class Updater

See also http://craftcms.com

View source (opens new window)

# Public Methods

Method Description
__construct()
backupDatabase()
backupFiles()
checkRequirements() Performs environmental requirement checks before running an update.
cleanUp()
getUpdateFileInfo()
processDownload()
updateDatabase()
updateFiles()

# __construct()

Signature

public Craft\Updater __construct ( )

# backupDatabase()

Signature

public string backupDatabase ( )

# backupFiles()

Signature

public null backupFiles ( $uid, $handle )

# checkRequirements()

Performs environmental requirement checks before running an update.

View source (opens new window)

Returns

null (opens new window)

Throws

Signature

public null checkRequirements ( )

# cleanUp()

Signature

public boolean cleanUp ( $uid, $handle )

# getUpdateFileInfo()

Signature

public array getUpdateFileInfo ( $handle )

# processDownload()

Signature

public array processDownload ( $md5, $handle )

# updateDatabase()

Signature

public null updateDatabase ( $plugin = null )

# updateFiles()

Signature

public null updateFiles ( $uid, $handle )