CKFinder 3 – PHP Connector Documentation
Permission Class Reference

Static Public Member Functions

static getAll ()
 
static byName ($name)
 

Public Attributes

const FOLDER_VIEW = 1
 
const FOLDER_CREATE = 2
 
const FOLDER_RENAME = 4
 
const FOLDER_DELETE = 8
 
const FILE_VIEW = 16
 
const FILE_CREATE = 32
 
const FILE_RENAME = 64
 
const FILE_DELETE = 128
 
const IMAGE_RESIZE = 256
 
const IMAGE_RESIZE_CUSTOM = 512
 
const FILE_UPLOAD = 32
 

Detailed Description

The Permission class.

Member Function Documentation

◆ byName()

static byName (   $name)
static

Returns a numeric value for the passed permission name.

Parameters
string$namepermission constant name
Returns
int permission value
Exceptions

InvalidArgumentException when the permission with a given name was not found

◆ getAll()

static getAll ( )
static

Returns an array of all permissions defined in the Permission class constants.

Returns
array an array of permission constants in the form of PERMISSION_NAME => value

Member Data Documentation

◆ FILE_UPLOAD

const FILE_UPLOAD = 32

The documentation for this class was generated from the following file: