Documentation

Horde_Perms
in package

The Horde_Perms package provides the Horde permissions system.

Copyright 2001-2017 Horde LLC (http://www.horde.org/)

See the enclosed file LICENSE for license information (LGPL). If you did not receive this file, see http://www.horde.org/licenses/lgpl21.

Tags
author

Chuck Hagenbuch chuck@horde.org

author

Jan Schneider jan@horde.org

category

Horde

Table of Contents

ALL  = 30
A bitmask of all possible permission values.
DELETE  = 16
The object can be deleted.
EDIT  = 8
Contents of the object can be edited.
READ  = 4
Contents of the object can be read.
ROOT  = -1
The root permission.
SHOW  = 2
Existence of object is known - object is shown to user.
$_itaCache  : array<string|int, mixed>
Cache for integerToArray().
getPermsArray()  : array<string|int, mixed>
Returns an hash of the available permissions.
integerToArray()  : TODO
Given an integer value of permissions returns an array representation of the integer.

Constants

ALL

A bitmask of all possible permission values.

public mixed ALL = 30

Useful for removeXxxPermission(), unsetPerm(), etc. 30 = SHOW | READ | EDIT | DELETE

DELETE

The object can be deleted.

public mixed DELETE = 16

EDIT

Contents of the object can be edited.

public mixed EDIT = 8

READ

Contents of the object can be read.

public mixed READ = 4

ROOT

The root permission.

public mixed ROOT = -1

SHOW

Existence of object is known - object is shown to user.

public mixed SHOW = 2

Properties

$_itaCache

Cache for integerToArray().

protected static array<string|int, mixed> $_itaCache = array()

Methods

getPermsArray()

Returns an hash of the available permissions.

public static getPermsArray() : array<string|int, mixed>
Return values
array<string|int, mixed>

The available permissions as a hash.

integerToArray()

Given an integer value of permissions returns an array representation of the integer.

public static integerToArray(int $int) : TODO
Parameters
$int : int

The integer representation of permissions.

Return values
TODO

Search results