Backups

Provides a facility to backup the current website

Class Methods

The following methods can be invoked on instances of this class.

initialize()

Initialize

addFilesystem(mixed pZip, mixed strFolder)

Adds files in $strFolder to the \ZipArchive $pZip
If $pZip is null, the run will be a time calculation

addDatabases(mixed pZip)

runBackup(mixed bFilesystem, mixed bDatabase)

Runs the backup - must be executed in a thread of its own or the script will timeout

backup(mixed bFilesystem, mixed bDatabase)

Runs a backup in a separate thread

cronCleanupBackups()

Cleans up old backups

enableCDP()

Enabled CDP

disableCDP()

Disables CDP

__call(mixed strName, array arrArguments)

Magic function to trap calls to undefined functions and throw an exception rather than
a fatal error.

__callStatic(mixed strName, array arrArguments)

Magic function to trap static calls to undefined functions and throw an exception rather
than a fatal error.

classGetFolder()

Returns the folder where the class exists

__set_state(mixed arrValues)

classGetFolderResources()

Returns the folder where the class's resources exist

classGetSrcFile()

Returns the folder where the class exists

classGetSrcHash()

Returns the folder where the class exists

classGetReflection()

Returns the reflection data for the current class

classGetReflectionAnnotation(string strField)

Returns a specific class annotation for the current class