\Pydio\Access\CoreRecycleBinManager

Recycle bin actions manager. Utilitaries to check whether the current dir is the recycle bin, and to filter the actions accordingly : transform an item deletion into a move into the recycle folder, etc.

Summary

Methods
Properties
Constants
recycleEnabled()
init()
getRecyclePath()
getRelativeRecycle()
currentLocationIsRecycle()
filterActions()
getCacheFileName()
fileToRecycle()
deleteFromRecycle()
getFileOrigin()
loadCache()
saveCache()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$rbmRecycle
$rbmRelativeRecycle
N/A

Properties

$rbmRecycle

$rbmRecycle : 

Type

$rbmRelativeRecycle

$rbmRelativeRecycle : 

Type

Methods

recycleEnabled()

recycleEnabled() : boolean

Returns

boolean

init()

init(  $repositoryWrapperURL,   $recyclePath) : void

Initialize manager

Parameters

$repositoryWrapperURL
$recyclePath

getRecyclePath()

getRecyclePath() : string

Get the recycle bin path (repository URL included)

Returns

string

getRelativeRecycle()

getRelativeRecycle() : string

Get the recycle bin path (from the root of the repository)

Returns

string

currentLocationIsRecycle()

currentLocationIsRecycle(string  $currentLocation) : boolean

Is the current path the recycle?

Parameters

string $currentLocation

PATH from the root of repo

Returns

boolean

filterActions()

filterActions(string  $action, \Pydio\Access\Core\Model\UserSelection  $selection, array  $httpVars) 

Transform delete/restore actions into move actino

Parameters

string $action
\Pydio\Access\Core\Model\UserSelection $selection
array $httpVars

getCacheFileName()

getCacheFileName() : string

Get the file for caching recylce metadata

Returns

string

fileToRecycle()

fileToRecycle(string  $originalFilePath) : void

Update metadata

Parameters

string $originalFilePath

deleteFromRecycle()

deleteFromRecycle(  $filePath) : void

Update metadata

Parameters

$filePath

getFileOrigin()

getFileOrigin(  $filePath) : string

Use metadata for getting original location

Parameters

$filePath

Returns

string

loadCache()

loadCache() : array|mixed|null

Load the metadata cache

Returns

array|mixed|null

saveCache()

saveCache(  $value) : null

Save the metadata cache

Parameters

$value

Returns

null