\MatthiasWeb\RealMediaLibrary\attachmentPermissions

Folders permission handling.

Summary

Methods
Properties
Constants
getPluginConstantPrefix()
insert()
create()
deleteFolder()
setName()
getInstance()
No public properties found
RESTRICTION_PARENT
RESTRICTION_REARRANGE
RESTRICTION_CREATE
RESTRICTION_INSERT
RESTRICTION_RENAME
RESTRICTION_DELETE
RESTRICTION_MOVE
RESTRICTION_ALL
No protected methods found
No protected properties found
N/A
No private methods found
$me
N/A

Constants

RESTRICTION_PARENT

RESTRICTION_PARENT ='par'

RESTRICTION_REARRANGE

RESTRICTION_REARRANGE ='rea'

RESTRICTION_CREATE

RESTRICTION_CREATE ='cre'

RESTRICTION_INSERT

RESTRICTION_INSERT ='ins'

RESTRICTION_RENAME

RESTRICTION_RENAME ='ren'

RESTRICTION_DELETE

RESTRICTION_DELETE ='del'

RESTRICTION_MOVE

RESTRICTION_MOVE ='mov'

RESTRICTION_ALL

RESTRICTION_ALL =array('par', 'rea', 'cre', 'ins', 'ren', 'del', 'mov')

Properties

$me

$me :

Type

Methods

getPluginConstantPrefix()

getPluginConstantPrefix(): string

Get the prefix of this plugin so composer packages can dynamically build other constant values on it.

Returns

string

insert()

insert(array<mixed,string>  $errors,integer  $id,\MatthiasWeb\RealMediaLibrary\api\IFolder  $folder): array<mixed,string>

Restrict to insert/upload new attachments, automatically moved to root if upload Restrict to move files outside of a folder.

Parameters

array<mixed,string> $errors
integer $id
\MatthiasWeb\RealMediaLibrary\api\IFolder $folder

Returns

array<mixed,string>

create()

create(array<mixed,string>  $errors,string  $name,integer  $parent,integer  $type): array<mixed,string>

Restrict to create new subfolders.

Parameters

array<mixed,string> $errors
string $name
integer $parent
integer $type

Returns

array<mixed,string>

deleteFolder()

deleteFolder(array<mixed,string>  $errors,integer  $id,\MatthiasWeb\RealMediaLibrary\api\IFolder  $folder): array<mixed,string>

Restrict to create new subfolders.

Parameters

array<mixed,string> $errors
integer $id
\MatthiasWeb\RealMediaLibrary\api\IFolder $folder

Returns

array<mixed,string>

setName()

setName(array<mixed,string>  $errors,string  $name,\MatthiasWeb\RealMediaLibrary\api\IFolder  $folder): array<mixed,string>

Restrict to rename a folder.

Parameters

array<mixed,string> $errors
string $name
\MatthiasWeb\RealMediaLibrary\api\IFolder $folder

Returns

array<mixed,string>