PHP Class Gc\Core\Updater\Adapter\AbstractAdapter

Inheritance: extends Gc\Core\Object
Exibir arquivo Open project: gotcms/gotcms Class Usage Examples

Protected Properties

Property Type Description
$messages array Messages list

Public Methods

Method Description
addMessage ( string $message ) : AbstractAdapter Add message
getLatestVersion ( ) : string GetLatest version
getMessages ( ) : array Return messages stack
rollback ( string $version ) : boolean Upgrade
update ( ) : boolean Update
upgrade ( ) : boolean Upgrade

Method Details

addMessage() public method

Add message
public addMessage ( string $message ) : AbstractAdapter
$message string Message
return AbstractAdapter

getLatestVersion() public method

GetLatest version
public getLatestVersion ( ) : string
return string

getMessages() public method

Return messages stack
public getMessages ( ) : array
return array

rollback() abstract public method

Upgrade
abstract public rollback ( string $version ) : boolean
$version string Version
return boolean

update() abstract public method

Update
abstract public update ( ) : boolean
return boolean

upgrade() abstract public method

Upgrade
abstract public upgrade ( ) : boolean
return boolean

Property Details

$messages protected_oe property

Messages list
protected array $messages
return array