|
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Public Member Functions | |
| __construct (\Magento\Backup\Helper\Data $helper, \Magento\Framework\Locale\ResolverInterface $localeResolver, \Magento\Backend\Model\Auth\Session $authSession, \Magento\Framework\Encryption\EncryptorInterface $encryptor, \Magento\Framework\Filesystem $filesystem, $data=[]) | |
| setTime ($time) | |
| setPath ($path) | |
| setName ($name) | |
| load ($fileName, $filePath) | |
| exists () | |
| getFileName () | |
| setType ($value='db') | |
| getType () | |
| setFile (&$content) | |
| & | getFile () |
| deleteFile () | |
| read ($length) | |
| eof () | |
| write ($string) | |
| close () | |
| getSize () | |
| validateUserPassword ($password) | |
Public Member Functions inherited from DataObject | |
| __construct (array $data=[]) | |
| addData (array $arr) | |
| setData ($key, $value=null) | |
| unsetData ($key=null) | |
| getData ($key='', $index=null) | |
| getDataByPath ($path) | |
| getDataByKey ($key) | |
| setDataUsingMethod ($key, $args=[]) | |
| getDataUsingMethod ($key, $args=null) | |
| hasData ($key='') | |
| toArray (array $keys=[]) | |
| convertToArray (array $keys=[]) | |
| toXml (array $keys=[], $rootName='item', $addOpenTag=false, $addCdata=true) | |
| convertToXml (array $arrAttributes=[], $rootName='item', $addOpenTag=false, $addCdata=true) | |
| toJson (array $keys=[]) | |
| convertToJson (array $keys=[]) | |
| toString ($format='') | |
| __call ($method, $args) | |
| isEmpty () | |
| serialize ($keys=[], $valueSeparator='=', $fieldSeparator=' ', $quote='"') | |
| debug ($data=null, &$objects=[]) | |
| offsetSet ($offset, $value) | |
| offsetExists ($offset) | |
| offsetUnset ($offset) | |
| offsetGet ($offset) | |
Public Member Functions inherited from BackupInterface | |
| open ($write=false) | |
Data Fields | |
| const | COMPRESS_RATE = 9 |
Protected Member Functions | |
| _getStream () | |
| _getFilePath () | |
Protected Member Functions inherited from DataObject | |
| _getData ($key) | |
| _underscore ($name) | |
Protected Attributes | |
| $_stream = null | |
| $_filesystem | |
| $_helper | |
| $_localeResolver | |
| $_backendAuthSession | |
| $_encryptor | |
| $varDirectory | |
Protected Attributes inherited from DataObject | |
| $_data = [] | |
Additional Inherited Members | |
Static Protected Attributes inherited from DataObject | |
| static | $_underscoreCache = [] |
Backup file item model
@method string getPath() @method string getName() @method string getTime() @SuppressWarnings(PHPMD.CouplingBetweenObjects) @api
Definition at line 21 of file Backup.php.
| __construct | ( | \Magento\Backup\Helper\Data | $helper, |
| \Magento\Framework\Locale\ResolverInterface | $localeResolver, | ||
| \Magento\Backend\Model\Auth\Session | $authSession, | ||
| \Magento\Framework\Encryption\EncryptorInterface | $encryptor, | ||
| \Magento\Framework\Filesystem | $filesystem, | ||
$data = [] |
|||
| ) |
| \Magento\Backup\Helper\Data | $helper | |
| \Magento\Framework\Locale\ResolverInterface | $localeResolver | |
| \Magento\Backend\Model\Auth\Session | $authSession | |
| \Magento\Framework\Encryption\EncryptorInterface | $encryptor | |
| \Magento\Framework\Filesystem | $filesystem | |
| array | $data |
Definition at line 84 of file Backup.php.
|
protected |
|
protected |
Get zlib handler
Definition at line 320 of file Backup.php.
| close | ( | ) |
Close open backup file
Implements BackupInterface.
Definition at line 374 of file Backup.php.
| deleteFile | ( | ) |
Delete backup file
Definition at line 263 of file Backup.php.
| eof | ( | ) |
| exists | ( | ) |
| & getFile | ( | ) |
Return content of backup file
Definition at line 248 of file Backup.php.
| getFileName | ( | ) |
| getSize | ( | ) |
| getType | ( | ) |
| load | ( | $fileName, | |
| $filePath | |||
| ) |
Load backup file info
| string | $fileName | |
| string | $filePath |
Definition at line 145 of file Backup.php.
| read | ( | $length | ) |
Read backup uncompressed data
| int | $length |
Definition at line 334 of file Backup.php.
| setFile | ( | & | $content | ) |
Set the backup file content
| string | &$content |
Definition at line 230 of file Backup.php.
| setName | ( | $name | ) |
Set backup name
| string | $name |
Implements BackupInterface.
Definition at line 132 of file Backup.php.
| setPath | ( | $path | ) |
Set backup path
| string | $path |
Implements BackupInterface.
Definition at line 120 of file Backup.php.
| setTime | ( | $time | ) |
Set backup time
| int | $time |
Implements BackupInterface.
Definition at line 108 of file Backup.php.
| setType | ( | $value = 'db' | ) |
Sets type of file
| string | $value |
Implements BackupInterface.
Definition at line 200 of file Backup.php.
| validateUserPassword | ( | $password | ) |
Validate user password
| string | $password |
Definition at line 423 of file Backup.php.
| write | ( | $string | ) |
Write to backup file
| string | $string |
Implements BackupInterface.
Definition at line 356 of file Backup.php.
|
protected |
Definition at line 64 of file Backup.php.
|
protected |
Definition at line 69 of file Backup.php.
|
protected |
Definition at line 45 of file Backup.php.
|
protected |
Definition at line 50 of file Backup.php.
|
protected |
Definition at line 57 of file Backup.php.
|
protected |
Definition at line 40 of file Backup.php.
|
protected |
Definition at line 74 of file Backup.php.
| const COMPRESS_RATE = 9 |
Compress rate
Definition at line 26 of file Backup.php.