PHP Class Gc\Core\Updater

Inheritance: extends Object
ファイルを表示 Open project: gotcms/gotcms Class Usage Examples

Protected Properties

Property Type Description
$adapter Gc\Core\Updater\Adapter\AbstractAdapter Adapter

Public Methods

Method Description
executeScripts ( ) : boolean Update database
getMessages ( ) : array Retrieve messages from adapter
init ( ) : void Initialize update directory
load ( string $type ) : boolean Load adapter
rollback ( string $currentVersion ) : boolean Rollback if problem with database
update ( ) : boolean Update
updateDatabase ( array $configuration, Zend\Db\Adapter\Adapter $dbAdapter ) : boolean Update database
upgrade ( ) : boolean Upgrade

Method Details

executeScripts() public method

Update database
public executeScripts ( ) : boolean
return boolean

getMessages() public method

Retrieve messages from adapter
public getMessages ( ) : array
return array

init() public method

Initialize update directory
public init ( ) : void
return void

load() public method

Load adapter
public load ( string $type ) : boolean
$type string Adapter type
return boolean

rollback() public method

Rollback if problem with database
public rollback ( string $currentVersion ) : boolean
$currentVersion string Current version
return boolean

update() public method

Update
public update ( ) : boolean
return boolean

updateDatabase() public method

Update database
public updateDatabase ( array $configuration, Zend\Db\Adapter\Adapter $dbAdapter ) : boolean
$configuration array Configuration
$dbAdapter Zend\Db\Adapter\Adapter Database adapter
return boolean

upgrade() public method

Upgrade
public upgrade ( ) : boolean
return boolean

Property Details

$adapter protected_oe property

Adapter
protected AbstractAdapter,Gc\Core\Updater\Adapter $adapter
return Gc\Core\Updater\Adapter\AbstractAdapter