.

IAccessControl Interface Reference
[Interfaces]

Interface for access control implementations. More...

Inheritance diagram for IAccessControl:
AccessControlBase

List of all members.

Public Member Functions

  is_allowed ($action, $item, $user, $params=false)
  Check if action on object is allowed for user.
  set_old_implementation (IAccessControl $implementation)
  Set old implementation.

Detailed Description

Interface for access control implementations.

Author:
Gerd Riesselmann

Definition at line 8 of file iaccesscontrol.cls.php.


Member Function Documentation

IAccessControl::is_allowed ( action,
item,
user,
params = false  
)

Check if action on object is allowed for user.

Parameters:
string  $action The action to perform (edit, delete, ....)
mixed  $item Item to perform the action on (may be a DataObject, e.g.)
mixed  $user A user, role, ACO, depending on user management chosen
Returns:
bool

Implemented in AccessControlBase.

IAccessControl::set_old_implementation ( IAccessControl implementation  ) 

Set old implementation.

Requests not handled should be delegated to this

Parameters:
IAccessControl  $implementation

Implemented in AccessControlBase.


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