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
Throws
Signature
public null checkRequirements ( )
# cleanUp()
Signature
public boolean cleanUp ( $uid, $handle )
# getUpdateFileInfo()
Signature
public array getUpdateFileInfo ( $handle )
# processDownload()
View source (opens new window)
Arguments
$md5(string (opens new window))$handle(string (opens new window))
Returns
Throws
Signature
public array processDownload ( $md5, $handle )
# updateDatabase()
View source (opens new window)
Arguments
$plugin(Craft\BasePlugin, null (opens new window))
Returns
Throws
Signature
public null updateDatabase ( $plugin = null )
# updateFiles()
Signature
public null updateFiles ( $uid, $handle )