class File_CStorage


Located at : UKNOWVA_ROOT/components/com_community/libraries/storage/file.php

Methods

_init()

No description

true
exists($storageid, $checkRemote = false)

Check if the given storage id exist. We perform local check via db since checking remotely is time consuming

true
put($storageid, $file)

Put the file into remote storage,

get(storageid $storageid, file $file)

Retrive the file from remote location and store it locally

getURI($storageId)

Return the absolute URI path to the resource

delete($storageid)

Remove the given file

Details

at line 14
_init()

at line 23
true exists($storageid, $checkRemote = false)

Check if the given storage id exist. We perform local check via db since checking remotely is time consuming

Parameters

$storageid
$checkRemote

Return Value

true is file exits

at line 32
true put($storageid, $file)

Put the file into remote storage,

Parameters

$storageid
$file

Return Value

true if successful

at line 46
get(storageid $storageid, file $file)

Retrive the file from remote location and store it locally

Parameters

storageid $storageid The unique file we want to retrive
file $file String filename where we want to save the file

at line 56
getURI($storageId)

Return the absolute URI path to the resource

Parameters

$storageId

at line 66
delete($storageid)

Remove the given file

Parameters

$storageid