Public Member Functions | |
checkPermission ($e) | |
Check whether an event can be performed. | |
doc () | |
Return a documentation string about this class. |
Do permission checks to determine what user can perform what action. Extend this class in your project to do project-specific permission checks.
6/17/07
SPermission::checkPermission | ( | $ | e | ) |
Check whether an event can be performed.
Check whether an event can be performed, based on the source user (the user trying to perform the event), the action (what the event is trying to do), and the target (the object being acted upon by the event).
In your project, extend this function in your extended Permission module. First call parent::checkPermission($e) to make sure that the event is not null. Then run your own checks based on the permissions defined in your local event handler object.
$e | [SEvent]: The event to check |