\Pluf\BackupService

!! You need also to backup Pluf if you want the full backup.

!!

Summary

Methods
Properties
Constants
loadData()
storeData()
dump()
load()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
prepare()
isSuportedApp()
No private properties found
N/A

Methods

loadData()

loadData(string  $zipFilePath) 

Loads all data from the zipfile into the current tenant

To start a service online, you have to load initialization data or create them by your self. For example, there are many pages, groups, templates you need in the first step.

This function load basic data from a zip file.

Parameters

string $zipFilePath

storeData()

storeData(string  $zipFilePath) 

Stores all data from the current tenant into the zip file.

Some time you need to start a new tenant, so it is better to clone exist one. This function help you to create a new back up zip file from existed tenant.

Parameters

string $zipFilePath

dump()

dump(  $model,   $serialize = true,   $folder = null) : mixed

Given a model or model name, dump the content.

If the object is given, only this single object is dumped else the complete table.

Parameters

$model
$serialize
$folder

Returns

mixed —

Array or JSON string

load()

load(  $json,   $deserialize = true) 

Parameters

$json
$deserialize

prepare()

prepare(  $model,   $folder) 

Return an array, ready to be serialized as json.

Parameters

$model
$folder

isSuportedApp()

isSuportedApp(  $app) 

Parameters

$app