Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Namespaces | Data Structures | Functions
Magento\Framework\Backup Namespace Reference

Namespaces

 Archive
 
 Db
 
 Exception
 
 Filesystem
 
 Test
 

Data Structures

class  AbstractBackup
 
class  BackupException
 
interface  BackupInterface
 
class  Db
 
class  DbTest
 
class  Factory
 
class  Filesystem
 
class  FilesystemTest
 
class  Media
 
class  Nomedia
 
class  Snapshot
 
interface  SourceFileInterface
 

Functions

 is_dir ($path)
 
 is_writable ($path)
 
 disk_free_space ($path)
 
 is_file ($path)
 
 filesize ($path)
 
 unlink ($path)
 
 rmdir ($path)
 

Detailed Description

Copyright © Magento, Inc. All rights reserved. See COPYING.txt for license details.

Copyright © Magento, Inc. All rights reserved. See COPYING.txt for license details.Interface for work with archives

Author
Magento Core Team core@.nosp@m.mage.nosp@m.ntoco.nosp@m.mmer.nosp@m.ce.co.nosp@m.m

Copyright © Magento, Inc. All rights reserved. See COPYING.txt for license details.Backup object factory.

Copyright © Magento, Inc. All rights reserved. See COPYING.txt for license details.Class to work with full filesystem and database backups

Author
Magento Core Team core@.nosp@m.mage.nosp@m.ntoco.nosp@m.mmer.nosp@m.ce.co.nosp@m.m

Function Documentation

◆ disk_free_space()

Magento\Framework\Backup\disk_free_space (   $path)

Mock disk_free_space function

See also
\Magento\Framework\Backup\Filesystem @SuppressWarnings(PHPMD.UnusedFormalParameter)

Definition at line 36 of file io.php.

37 {
38  return 2;
39 }

◆ filesize()

Magento\Framework\Backup\filesize (   $path)

Mock filesize function

See also
\Magento\Framework\Backup\Filesystem @SuppressWarnings(PHPMD.UnusedFormalParameter)

Definition at line 58 of file io.php.

59 {
60  return 1;
61 }

◆ is_dir()

Magento\Framework\Backup\is_dir (   $path)

Mock is_dir function

See also
\Magento\Framework\Backup\Filesystem @SuppressWarnings(PHPMD.UnusedFormalParameter)

Definition at line 14 of file io.php.

15 {
16  return true;
17 }

◆ is_file()

Magento\Framework\Backup\is_file (   $path)

Mock is_file function

See also
\Magento\Framework\Backup\Filesystem @SuppressWarnings(PHPMD.UnusedFormalParameter)

Definition at line 47 of file io.php.

48 {
49  return 2;
50 }

◆ is_writable()

Magento\Framework\Backup\is_writable (   $path)

Mock is_dir function

See also
\Magento\Framework\Backup\Filesystem @SuppressWarnings(PHPMD.UnusedFormalParameter)

Definition at line 25 of file io.php.

26 {
27  return true;
28 }

◆ rmdir()

Magento\Framework\Backup\rmdir (   $path)

Mock rmdir function

See also
\Magento\Framework\Backup\Filesystem @SuppressWarnings(PHPMD.UnusedFormalParameter)

Definition at line 80 of file io.php.

81 {
82  return true;
83 }

◆ unlink()

Magento\Framework\Backup\unlink (   $path)

Mock unlink function

See also
\Magento\Framework\Backup\Filesystem @SuppressWarnings(PHPMD.UnusedFormalParameter)

Definition at line 69 of file io.php.

70 {
71  return true;
72 }