PHP 클래스 Spatie\Backup\Tasks\Backup\Zip

파일 보기 프로젝트 열기: spatie/laravel-backup 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$fileCount integer
$pathToZip string
$zipFile ZipArchive

공개 메소드들

메소드 설명
__construct ( string $pathToZip )
add ( string | array $files, string $nameInZip = null ) : Zip
close ( )
count ( ) : integer
createForManifest ( Manifest $manifest, string $pathToZip ) : Zip
humanReadableSize ( ) : string
open ( )
path ( ) : string
size ( ) : integer

보호된 메소드들

메소드 설명
determineNameOfFileInZip ( string $pathToFile, string $pathToZip )

메소드 상세

__construct() 공개 메소드

public __construct ( string $pathToZip )
$pathToZip string

add() 공개 메소드

public add ( string | array $files, string $nameInZip = null ) : Zip
$files string | array
$nameInZip string
리턴 Zip

close() 공개 메소드

public close ( )

count() 공개 메소드

public count ( ) : integer
리턴 integer

createForManifest() 공개 정적인 메소드

public static createForManifest ( Manifest $manifest, string $pathToZip ) : Zip
$manifest Manifest
$pathToZip string
리턴 Zip

determineNameOfFileInZip() 보호된 정적인 메소드

protected static determineNameOfFileInZip ( string $pathToFile, string $pathToZip )
$pathToFile string
$pathToZip string

humanReadableSize() 공개 메소드

public humanReadableSize ( ) : string
리턴 string

open() 공개 메소드

public open ( )

path() 공개 메소드

public path ( ) : string
리턴 string

size() 공개 메소드

public size ( ) : integer
리턴 integer

프로퍼티 상세

$fileCount 보호되어 있는 프로퍼티

protected int $fileCount
리턴 integer

$pathToZip 보호되어 있는 프로퍼티

protected string $pathToZip
리턴 string

$zipFile 보호되어 있는 프로퍼티

protected ZipArchive $zipFile
리턴 ZipArchive