PHP Class Gc\Core\Updater\Adapter\Basic

Inheritance: extends AbstractAdapter
ファイルを表示 Open project: gotcms/gotcms

Public Methods

Method Description
init ( ) : void Initialize adapter
rollback ( string $version ) : boolean Rollback
update ( ) : boolean Update
upgrade ( ) : boolean Upgrade

Protected Methods

Method Description
addDirectoryToZip ( ZipArchive $zip, string $directory, string[] $excludeDirectory = [] ) : ZipArchive Add directory and children to zip
createBackup ( string $backupFilename ) : boolean Create Backup

Method Details

addDirectoryToZip() protected method

Add directory and children to zip
protected addDirectoryToZip ( ZipArchive $zip, string $directory, string[] $excludeDirectory = [] ) : ZipArchive
$zip ZipArchive Zip
$directory string Directory
$excludeDirectory string[] Exclude directory
return ZipArchive

createBackup() protected method

Create Backup
protected createBackup ( string $backupFilename ) : boolean
$backupFilename string File name of the backup
return boolean

init() public method

Initialize adapter
public init ( ) : void
return void

rollback() public method

Rollback
public rollback ( string $version ) : boolean
$version string Version
return boolean

update() public method

Update
public update ( ) : boolean
return boolean

upgrade() public method

Upgrade
public upgrade ( ) : boolean
return boolean