\Pydio\Access\Core\FilterAJXP_Permission

Class AJXP_Permission

Atomic permission associated to a folder path. Can be initialized either with an integer value (use MASK constants) or with a string value like "r", "rw", etc.

Summary

Methods
Properties
Constants
__construct()
getCopy()
canRead()
canWrite()
denies()
isEmpty()
testPermission()
setRead()
setWrite()
setDeny()
override()
__toString()
jsonSerialize()
No public properties found
MASK
READ
WRITE
DENY
TRAVEL
No protected methods found
No protected properties found
N/A
No private methods found
$value
N/A

Constants

MASK

MASK

Use an integer number to store permission |r|w|d|t|.

...|.. |0|1|0|0|....|..

READ

READ

WRITE

WRITE

DENY

DENY

TRAVEL

TRAVEL

Properties

$value

$value : 

Type

Methods

__construct()

__construct(array|null  $value = null) 

Parameters

array|null $value

canRead()

canRead() : boolean

Test if the permission is readable

Returns

boolean

canWrite()

canWrite() : boolean

Test if the permission is writeable

Returns

boolean

denies()

denies() : boolean

Test if the permission denies access, whatever happens.

Returns

boolean

isEmpty()

isEmpty() : boolean

Test if the permission is just empty

Returns

boolean

testPermission()

testPermission(integer  $numPerm) : boolean

Test permission against an integer value

Parameters

integer $numPerm

Throws

\Exception

Returns

boolean

setRead()

setRead(boolean|true  $value = true) 

Set this permission as readable

Parameters

boolean|true $value

setWrite()

setWrite(boolean|true  $value = true) 

Set this permission as writeable

Parameters

boolean|true $value

setDeny()

setDeny(boolean|true  $value = true) 

Set this permission as denied

Parameters

boolean|true $value

__toString()

__toString() : string

Returns

string

jsonSerialize()

jsonSerialize() : mixed

Specify data which should be serialized to JSON

Returns

mixed —

data which can be serialized by json_encode, which is a value of any type other than a resource.