ArchiveItem
in package
Table of Contents
Properties
- $accessed : DateTime|null
- $archivePath : string|null
- $created : DateTime|null
- $extension : string|null
- $extraInfos : array<string|int, mixed>
- $filename : string|null
- $hostOS : string|null
- $id : string|null
- $isDirectory : bool
- $isHidden : bool
- $isImage : bool
- $modified : DateTime|null
- $packedSize : int|null
- $path : string|null
- $rootPath : string|null
- $size : int|null
- $sizeHuman : string|null
Methods
- __construct() : mixed
- __toString() : string
- fromP7zip() : self
- getAccessed() : DateTime|null
- getArchivePath() : string|null
- getCreated() : DateTime|null
- getExtension() : string|null
- getExtraInfos() : array<string|int, mixed>
- getFilename() : string|null
- getHostOS() : string|null
- getId() : string|null
- Path encoded in base64.
- getModified() : DateTime|null
- getPackedSize() : int|null
- getPath() : string|null
- getRootPath() : string|null
- getSize() : int|null
- getSizeHuman() : string|null
- isDirectory() : bool
- isHidden() : bool
- isImage() : bool
- toArray() : array<string|int, mixed>
Properties
$accessed
protected
DateTime|null
$accessed
= null
$archivePath
protected
string|null
$archivePath
= null
$created
protected
DateTime|null
$created
= null
$extension
protected
string|null
$extension
= null
$extraInfos
protected
array<string|int, mixed>
$extraInfos
= []
$filename
protected
string|null
$filename
= null
$hostOS
protected
string|null
$hostOS
= null
$id
protected
string|null
$id
= null
$isDirectory
protected
bool
$isDirectory
= false
$isHidden
protected
bool
$isHidden
= false
$isImage
protected
bool
$isImage
= false
$modified
protected
DateTime|null
$modified
= null
$packedSize
protected
int|null
$packedSize
= null
$path
protected
string|null
$path
= null
$rootPath
protected
string|null
$rootPath
= null
$size
protected
int|null
$size
= null
$sizeHuman
protected
string|null
$sizeHuman
= null
Methods
__construct()
public
__construct([string|null $id = null ][, string|null $archivePath = null ][, string|null $filename = null ][, string|null $extension = null ][, string|null $path = null ][, string|null $rootPath = null ][, string|null $sizeHuman = null ][, int|null $size = null ][, int|null $packedSize = null ][, bool $isDirectory = false ][, bool $isImage = false ][, bool $isHidden = false ][, DateTime|null $modified = null ][, DateTime|null $created = null ][, DateTime|null $accessed = null ][, array<string|int, mixed> $extraInfos = [] ][, string|null $hostOS = null ]) : mixed
Parameters
- $id : string|null = null
- $archivePath : string|null = null
- $filename : string|null = null
- $extension : string|null = null
- $path : string|null = null
- $rootPath : string|null = null
- $sizeHuman : string|null = null
- $size : int|null = null
- $packedSize : int|null = null
- $isDirectory : bool = false
- $isImage : bool = false
- $isHidden : bool = false
- $modified : DateTime|null = null
- $created : DateTime|null = null
- $accessed : DateTime|null = null
- $extraInfos : array<string|int, mixed> = []
- $hostOS : string|null = null
__toString()
public
__toString() : string
Return values
stringfromP7zip()
public
static fromP7zip(array<string|int, mixed> $data[, string|null $archivePath = null ]) : self
Parameters
- $data : array<string|int, mixed>
- $archivePath : string|null = null
Return values
selfgetAccessed()
public
getAccessed() : DateTime|null
Return values
DateTime|nullgetArchivePath()
public
getArchivePath() : string|null
Return values
string|nullgetCreated()
public
getCreated() : DateTime|null
Return values
DateTime|nullgetExtension()
public
getExtension() : string|null
Return values
string|nullgetExtraInfos()
public
getExtraInfos() : array<string|int, mixed>
Return values
array<string|int, mixed>getFilename()
public
getFilename() : string|null
Return values
string|nullgetHostOS()
public
getHostOS() : string|null
Return values
string|nullgetId()
Path encoded in base64.
public
getId() : string|null
Return values
string|nullgetModified()
public
getModified() : DateTime|null
Return values
DateTime|nullgetPackedSize()
public
getPackedSize() : int|null
Return values
int|nullgetPath()
public
getPath() : string|null
Return values
string|nullgetRootPath()
public
getRootPath() : string|null
Return values
string|nullgetSize()
public
getSize() : int|null
Return values
int|nullgetSizeHuman()
public
getSizeHuman() : string|null
Return values
string|nullisDirectory()
public
isDirectory() : bool
Return values
boolisHidden()
public
isHidden() : bool
Return values
boolisImage()
public
isImage() : bool
Return values
booltoArray()
public
toArray() : array<string|int, mixed>