FileCacheWrapper
extends ManagedModel
in package
implements
IQueryRow, IDeserializable, JsonSerializable
Uses
TArrayTools
Class FileCacheWrapper
Interfaces, Classes, Traits and Enums
- IQueryRow
- Interface IQueryRow
- IDeserializable
- JsonSerializable
Table of Contents
- ID_LENGTH = 31
- $TYPE_ARRAY : mixed
- $TYPE_BOOLEAN : mixed
- $TYPE_INTEGER : mixed
- $TYPE_NULL : mixed
- $TYPE_SERIALIZABLE : mixed
- $TYPE_STRING : mixed
- $checksum : string
- $encrypted : bool
- $etag : string
- $id : int
- $mimePart : int
- $mimeType : int
- $modelManager : ModelManager
- $mTime : int
- $name : string
- $parent : int
- $path : string
- $pathHash : string
- $permissions : int
- $size : int
- $storage : string
- $storageId : int
- $storageMTime : int
- $unencryptedSize : int
- getChecksum() : string
- getEtag() : string
- getId() : int
- getMimePart() : int
- getMimeType() : int
- getMTime() : int
- getName() : string
- getParent() : int
- getPath() : string
- getPathHash() : string
- getPermissions() : int
- getSize() : int
- getStorage() : string
- getStorageId() : int
- getStorageMTime() : int
- getUnencryptedSize() : int
- import() : self
- importFromDatabase() : IQueryRow
- import data to feed the model.
- importFromIFederatedUser() : void
- isAccessible() : bool
- Returns whether the given database result can be interpreted as a share with accessible file (not trashed, not deleted)
- isEncrypted() : bool
- jsonSerialize() : array<string|int, string>
- setChecksum() : FileCacheWrapper
- setEncrypted() : FileCacheWrapper
- setEtag() : FileCacheWrapper
- setId() : FileCacheWrapper
- setMimePart() : FileCacheWrapper
- setMimeType() : FileCacheWrapper
- setMTime() : FileCacheWrapper
- setName() : FileCacheWrapper
- setParent() : FileCacheWrapper
- setPath() : FileCacheWrapper
- setPathHash() : FileCacheWrapper
- setPermissions() : FileCacheWrapper
- setSize() : FileCacheWrapper
- setStorage() : FileCacheWrapper
- setStorageId() : FileCacheWrapper
- setStorageMTime() : FileCacheWrapper
- setUnencryptedSize() : FileCacheWrapper
- toCache() : array<string|int, mixed>
- typeOf() : string
- validKey() : bool
- cleanArray() : mixed
- extractArray() : mixed
- get() : string
- getArray() : array<string|int, mixed>
- getBool() : bool
- getFloat() : float
- getInt() : int
- getList() : array<string|int, mixed>
- getManager() : ModelManager
- getObj() : mixed
- mustContains() : mixed
Constants
ID_LENGTH
public
mixed
ID_LENGTH
= 31
Properties
$TYPE_ARRAY
public
static mixed
$TYPE_ARRAY
= 'Array'
$TYPE_BOOLEAN
public
static mixed
$TYPE_BOOLEAN
= 'Boolean'
$TYPE_INTEGER
public
static mixed
$TYPE_INTEGER
= 'Integer'
$TYPE_NULL
public
static mixed
$TYPE_NULL
= 'Null'
$TYPE_SERIALIZABLE
public
static mixed
$TYPE_SERIALIZABLE
= 'Serializable'
$TYPE_STRING
public
static mixed
$TYPE_STRING
= 'String'
$checksum
private
string
$checksum
= ''
$encrypted
private
bool
$encrypted
= false
$etag
private
string
$etag
= ''
$id
private
int
$id
= 0
$mimePart
private
int
$mimePart
= 0
$mimeType
private
int
$mimeType
= 0
$modelManager
private
ModelManager
$modelManager
$mTime
private
int
$mTime
= 0
$name
private
string
$name
= ''
$parent
private
int
$parent
= 0
$path
private
string
$path
= ''
$pathHash
private
string
$pathHash
= ''
$permissions
private
int
$permissions
= 0
$size
private
int
$size
= 0
$storage
private
string
$storage
= ''
$storageId
private
int
$storageId
= 0
$storageMTime
private
int
$storageMTime
= 0
$unencryptedSize
private
int
$unencryptedSize
= 0
Methods
getChecksum()
public
getChecksum() : string
Return values
string —getEtag()
public
getEtag() : string
Return values
string —getId()
public
getId() : int
Return values
int —getMimePart()
public
getMimePart() : int
Return values
int —getMimeType()
public
getMimeType() : int
Return values
int —getMTime()
public
getMTime() : int
Return values
int —getName()
public
getName() : string
Return values
string —getParent()
public
getParent() : int
Return values
int —getPath()
public
getPath() : string
Return values
string —getPathHash()
public
getPathHash() : string
Return values
string —getPermissions()
public
getPermissions() : int
Return values
int —getSize()
public
getSize() : int
Return values
int —getStorage()
public
getStorage() : string
Return values
string —getStorageId()
public
getStorageId() : int
Return values
int —getStorageMTime()
public
getStorageMTime() : int
Return values
int —getUnencryptedSize()
public
getUnencryptedSize() : int
Return values
int —import()
public
import(array<string|int, mixed> $data) : self
Parameters
- $data : array<string|int, mixed>
Tags
Return values
self —importFromDatabase()
import data to feed the model.
public
importFromDatabase(array<string|int, mixed> $data[, string $prefix = '' ]) : IQueryRow
Parameters
- $data : array<string|int, mixed>
- $prefix : string = ''
Tags
Return values
IQueryRow —importFromIFederatedUser()
public
importFromIFederatedUser(IFederatedUser $orig) : void
Parameters
- $orig : IFederatedUser
Tags
Return values
void —isAccessible()
Returns whether the given database result can be interpreted as a share with accessible file (not trashed, not deleted)
public
isAccessible() : bool
Return values
bool —isEncrypted()
public
isEncrypted() : bool
Return values
bool —jsonSerialize()
public
jsonSerialize() : array<string|int, string>
Return values
array<string|int, string> —setChecksum()
public
setChecksum(string $checksum) : FileCacheWrapper
Parameters
- $checksum : string
Return values
FileCacheWrapper —setEncrypted()
public
setEncrypted(bool $encrypted) : FileCacheWrapper
Parameters
- $encrypted : bool
Return values
FileCacheWrapper —setEtag()
public
setEtag(string $etag) : FileCacheWrapper
Parameters
- $etag : string
Return values
FileCacheWrapper —setId()
public
setId(int $id) : FileCacheWrapper
Parameters
- $id : int
Return values
FileCacheWrapper —setMimePart()
public
setMimePart(int $mimePart) : FileCacheWrapper
Parameters
- $mimePart : int
Return values
FileCacheWrapper —setMimeType()
public
setMimeType(int $mimeType) : FileCacheWrapper
Parameters
- $mimeType : int
Return values
FileCacheWrapper —setMTime()
public
setMTime(int $mTime) : FileCacheWrapper
Parameters
- $mTime : int
Return values
FileCacheWrapper —setName()
public
setName(string $name) : FileCacheWrapper
Parameters
- $name : string
Return values
FileCacheWrapper —setParent()
public
setParent(int $parent) : FileCacheWrapper
Parameters
- $parent : int
Return values
FileCacheWrapper —setPath()
public
setPath(string $path) : FileCacheWrapper
Parameters
- $path : string
Return values
FileCacheWrapper —setPathHash()
public
setPathHash(string $pathHash) : FileCacheWrapper
Parameters
- $pathHash : string
Return values
FileCacheWrapper —setPermissions()
public
setPermissions(int $permissions) : FileCacheWrapper
Parameters
- $permissions : int
Return values
FileCacheWrapper —setSize()
public
setSize(int $size) : FileCacheWrapper
Parameters
- $size : int
Return values
FileCacheWrapper —setStorage()
public
setStorage(string $storage) : FileCacheWrapper
Parameters
- $storage : string
Return values
FileCacheWrapper —setStorageId()
public
setStorageId(int $storageId) : FileCacheWrapper
Parameters
- $storageId : int
Return values
FileCacheWrapper —setStorageMTime()
public
setStorageMTime(int $storageMTime) : FileCacheWrapper
Parameters
- $storageMTime : int
Return values
FileCacheWrapper —setUnencryptedSize()
public
setUnencryptedSize(int $unencryptedSize) : FileCacheWrapper
Parameters
- $unencryptedSize : int
Return values
FileCacheWrapper —toCache()
public
toCache() : array<string|int, mixed>
Return values
array<string|int, mixed> —typeOf()
public
typeOf(string $key, array<string|int, mixed> $arr[, bool $root = true ]) : string
Parameters
- $key : string
- $arr : array<string|int, mixed>
- $root : bool = true
Tags
Return values
string —validKey()
public
validKey(string $k, array<string|int, mixed> $arr) : bool
Parameters
- $k : string
- $arr : array<string|int, mixed>
Return values
bool —cleanArray()
protected
cleanArray(array<string|int, mixed> &$arr) : mixed
Parameters
- $arr : array<string|int, mixed>
Return values
mixed —extractArray()
protected
extractArray(string $k, string $value, array<string|int, mixed> $list) : mixed
Parameters
- $k : string
- $value : string
- $list : array<string|int, mixed>
Tags
Return values
mixed —get()
protected
get(string $k, array<string|int, mixed> $arr[, string $default = '' ]) : string
Parameters
- $k : string
- $arr : array<string|int, mixed>
- $default : string = ''
Return values
string —getArray()
protected
getArray(string $k, array<string|int, mixed> $arr[, array<string|int, mixed> $default = [] ]) : array<string|int, mixed>
Parameters
- $k : string
- $arr : array<string|int, mixed>
- $default : array<string|int, mixed> = []
Return values
array<string|int, mixed> —getBool()
protected
getBool(string $k, array<string|int, mixed> $arr[, bool $default = false ]) : bool
Parameters
- $k : string
- $arr : array<string|int, mixed>
- $default : bool = false
Return values
bool —getFloat()
protected
getFloat(string $k, array<string|int, mixed> $arr, float $default) : float
Parameters
- $k : string
- $arr : array<string|int, mixed>
- $default : float
Return values
float —getInt()
protected
getInt(string $k, array<string|int, mixed> $arr, int $default) : int
Parameters
- $k : string
- $arr : array<string|int, mixed>
- $default : int
Return values
int —getList()
protected
getList(string $k, array<string|int, mixed> $arr, array<string|int, mixed> $import[, array<string|int, mixed> $default = [] ]) : array<string|int, mixed>
Parameters
- $k : string
- $arr : array<string|int, mixed>
- $import : array<string|int, mixed>
- $default : array<string|int, mixed> = []
Return values
array<string|int, mixed> —getManager()
protected
getManager() : ModelManager
Return values
ModelManager —getObj()
protected
getObj(string $k, array<string|int, mixed> $arr[, JsonSerializable|null $default = null ]) : mixed
Parameters
- $k : string
- $arr : array<string|int, mixed>
- $default : JsonSerializable|null = null
Return values
mixed —mustContains()
protected
mustContains(array<string|int, mixed> $keys, array<string|int, mixed> $arr) : mixed
Parameters
- $keys : array<string|int, mixed>
- $arr : array<string|int, mixed>