VihvLCC  3.0.0
IAcl Interface Reference
Inheritance diagram for IAcl:

Public Member Functions

 userCanDo ($resource, $action, $user)
 
 currentUserCanDo ($resource, $action)
 

Detailed Description

interface for Access Control List you should pass implementation of IAcl to EventManager to take control over user access to all events

by default resource id for control is Class name[Config class name], you can change this by overriding GetResourceId() methon in your control

Member Function Documentation

currentUserCanDo (   $resource,
  $action 
)
Parameters
$resourcestring resource name, by default equals to control name
$actionstring action name, in most cases - event name (onAdd, onGet etc)
Returns
true if current user can do $action on the $resource

Implemented in NoAcl.

userCanDo (   $resource,
  $action,
  $user 
)
Parameters
$resourcestring resource name, by default equals to control name
$actionstring action name, in most cases - event name (onAdd, onGet etc)
$userstring user identifier (username or user id)
Returns
true if $user can do $action on the $resource

Implemented in NoAcl.


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