Documentation

Permissions
in package
Uses UtilsProvider

Folders permission handling.

Table of Contents

Constants

RESTRICTION_ALL  = ['par', 'rea', 'cre', 'ins', 'ren', 'del', 'mov']
RESTRICTION_CREATE  = 'cre'
RESTRICTION_DELETE  = 'del'
RESTRICTION_INSERT  = 'ins'
RESTRICTION_MOVE  = 'mov'
RESTRICTION_PARENT  = 'par'
RESTRICTION_REARRANGE  = 'rea'
RESTRICTION_RENAME  = 'ren'

Properties

$me  : mixed

Methods

create()  : array<string|int, string>
Restrict to create new subfolders.
deleteFolder()  : array<string|int, string>
Restrict to create new subfolders.
getInstance()  : Permissions
Get instance.
getPluginConstantPrefix()  : string
Get the prefix of this plugin so composer packages can dynamically build other constant values on it.
insert()  : array<string|int, string>
Restrict to insert/upload new attachments, automatically moved to root if upload Restrict to move files outside of a folder.
setName()  : array<string|int, string>
Restrict to rename a folder.

Constants

RESTRICTION_ALL

public mixed RESTRICTION_ALL = ['par', 'rea', 'cre', 'ins', 'ren', 'del', 'mov']

RESTRICTION_CREATE

public mixed RESTRICTION_CREATE = 'cre'

RESTRICTION_DELETE

public mixed RESTRICTION_DELETE = 'del'

RESTRICTION_INSERT

public mixed RESTRICTION_INSERT = 'ins'

RESTRICTION_MOVE

public mixed RESTRICTION_MOVE = 'mov'

RESTRICTION_PARENT

public mixed RESTRICTION_PARENT = 'par'

RESTRICTION_REARRANGE

public mixed RESTRICTION_REARRANGE = 'rea'

RESTRICTION_RENAME

public mixed RESTRICTION_RENAME = 'ren'

Properties

Methods

create()

Restrict to create new subfolders.

public static create(array<string|int, string> $errors, string $name, int $parent, int $type) : array<string|int, string>
Parameters
$errors : array<string|int, string>
$name : string
$parent : int
$type : int
Return values
array<string|int, string>

deleteFolder()

Restrict to create new subfolders.

public static deleteFolder(array<string|int, string> $errors, int $id, IFolder $folder) : array<string|int, string>
Parameters
$errors : array<string|int, string>
$id : int
$folder : IFolder
Return values
array<string|int, string>

getPluginConstantPrefix()

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

public getPluginConstantPrefix() : string
Tags
codeCoverageIgnore

It only returns a string with the constant prefix

Return values
string

insert()

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

public static insert(array<string|int, string> $errors, int $id, IFolder $folder) : array<string|int, string>
Parameters
$errors : array<string|int, string>
$id : int
$folder : IFolder
Return values
array<string|int, string>

setName()

Restrict to rename a folder.

public static setName(array<string|int, string> $errors, string $name, IFolder $folder) : array<string|int, string>
Parameters
$errors : array<string|int, string>
$name : string
$folder : IFolder
Return values
array<string|int, string>

        
On this page

Search results