PHP Class Pimcore\Backup

Show file Open project: pimcore/pimcore

Public Properties

Property Type Description
$additionalExcludePatterns array
$backupFile
$fileAmount
$filesToBackup

Protected Properties

Property Type Description
$options array
$zipArchive ZipArchive

Public Methods

Method Description
__construct ( $backupFile )
__destruct ( )
__wakeup ( )
complete ( ) : array
fileStep ( $step ) : array
getAdditionalExcludeFiles ( ) : array
getBackupFile ( ) : mixed
getFileAmount ( ) : mixed
getFilesToBackup ( ) : mixed
getOptions ( ) : array
init ( array $options = [] ) : array
mysqlComplete ( ) : array
mysqlData ( $name, $type ) : array
mysqlTables ( array $exclude = [] ) : array
setAdditionalExcludePatterns ( $additionalExcludePatterns )
setOptions ( $options )

Protected Methods

Method Description
getArchive ( )
getFormattedFilesize ( ) : string
getTables ( ) : array
setFileAmount ( $fileAmount )
setFilesToBackup ( $files )

Method Details

__construct() public method

public __construct ( $backupFile )
$backupFile

__destruct() public method

public __destruct ( )

__wakeup() public method

public __wakeup ( )

complete() public method

public complete ( ) : array
return array

fileStep() public method

public fileStep ( $step ) : array
$step
return array

getAdditionalExcludeFiles() public method

public getAdditionalExcludeFiles ( ) : array
return array

getArchive() protected method

protected getArchive ( )

getBackupFile() public method

public getBackupFile ( ) : mixed
return mixed

getFileAmount() public method

public getFileAmount ( ) : mixed
return mixed

getFilesToBackup() public method

public getFilesToBackup ( ) : mixed
return mixed

getFormattedFilesize() protected method

protected getFormattedFilesize ( ) : string
return string

getOptions() public method

public getOptions ( ) : array
return array

getTables() protected method

protected getTables ( ) : array
return array

init() public method

public init ( array $options = [] ) : array
$options array
return array

mysqlComplete() public method

public mysqlComplete ( ) : array
return array

mysqlData() public method

public mysqlData ( $name, $type ) : array
$name
$type
return array

mysqlTables() public method

public mysqlTables ( array $exclude = [] ) : array
$exclude array
return array

setAdditionalExcludePatterns() public method

public setAdditionalExcludePatterns ( $additionalExcludePatterns )
$additionalExcludePatterns

setFileAmount() protected method

protected setFileAmount ( $fileAmount )
$fileAmount

setFilesToBackup() protected method

protected setFilesToBackup ( $files )
$files

setOptions() public method

public setOptions ( $options )
$options

Property Details

$additionalExcludePatterns public property

public array $additionalExcludePatterns
return array

$backupFile public property

public $backupFile

$fileAmount public property

public $fileAmount

$filesToBackup public property

public $filesToBackup

$options protected property

protected array $options
return array

$zipArchive protected property

protected ZipArchive $zipArchive
return ZipArchive