Add file to the repository
static
string
addFile
(string $source, [array $attributes = null], [string $backend_name = null])
-
string
$source: File path of source file
-
array
$attributes
-
string
$backend_name: Backend name. If NULL default backend will be used
Clean up the repository - delete all files
static
boolean
cleanUp
([string $backend_name = null])
-
string
$backend_name: Backend name. If NULL default backend will be used
Return number of files from the repository
static
integer
countFiles
([string $backend_name = null])
-
string
$backend_name: Backend name. If NULL default backend will be used
Delete specific file from repository
static
boolean
deleteFile
(string $file_id, [string $backend_name = null])
-
string
$file_id
-
string
$backend_name: Backend name. If NULL default backend will be used
Get backend
-
string
$backend_name: If NULL default backend will be returned. Else backend named $backend_name will be returned if avialble
Return value of specifi file attribute. If attrbute is not available return $default
static
mixed
getFileAttribute
(string $file_id, string $attribute_name, [mixed $default = null], [string $backend_name = null])
-
string
$file_id
-
string
$attribute_name
-
mixed
$default
-
string
$backend_name: Backend name. If NULL default backend will be used
Return all file attributes
static
array
getFileAttributes
(string $file_id, [string $backend_name = null])
-
string
$file_id
-
string
$backend_name: Backend name. If NULL default backend will be used
Return content of specific file
static
string
getFileContent
(stirng $file_id, [string $backend_name = null])
-
stirng
$file_id: File ID
-
string
$backend_name: Backend name. If NULL default backend will be used
Check if $file_id is in repository
static
boolean
isInRepository
(string $file_id, [string $backend_name = null])
-
string
$file_id
-
string
$backend_name: Backend name. If NULL default backend will be used
Return all file IDs that are stored in repository
static
array
listFiles
([string $backend_name = null])
-
string
$backend_name: Backend name. If NULL default backend will be used
Set value of specific attribute
static
null
setFileAttribute
(string $file_id, string $attribute_name, mixed $attribute_value, [string $backend_name = null])
-
string
$file_id
-
string
$attribute_name
-
mixed
$attribute_value: Resources and objects are not supported!
-
string
$backend_name: Backend name. If NULL default backend will be used
Update content of specific file with content from $source file
static
boolean
updateFileContent
(string $file_id, string $source, [string $backend_name = null])
-
string
$file_id
-
string
$source
-
string
$backend_name: Backend name. If NULL default backend will be used