[ Index ]

PHP Cross Reference of ACL Module

title

Body

[close]

/models/behaviors/ -> RequestingActiveRecordBehavior.php (summary)

(no description)

File Size: 122 lines (4 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

RequestingActiveRecordBehavior:: (6 methods):
  loadAro()
  may()
  grant()
  deny()
  afterSave()
  beforeDelete()


Class: RequestingActiveRecordBehavior  - X-Ref

RequestingActiveRecordBehavior Class File

This class serves as the behavior to be used for all "actors" in the program who have
to per form actions on other objects

loadAro()   X-Ref
Loads the associated Aro_Object


may($obj, $action)   X-Ref
Looks up if the user is granted a specific action to the given object

param: string|array    $obj    The object to be checked   
param: string          $action the action to be performed
return: bool true if access is granted, false otherwise

grant($obj, $actions, $byPassCheck = false)   X-Ref
Grants the object denoted by the $obj-identifier the given actions

param: type $obj the object identifier
param: array $actions        the actions to grant
param: bool  $byPassCheck    Whether to bypass the additional grant-check
return: bool

deny($obj, $actions)   X-Ref
Denies the object denoted by the $obj-identifier the given actions

param: type $obj the object identifier
param: array $actions the actions to deny
return: bool

afterSave($event)   X-Ref
This method takes care to associate an ARO-collection with this one

param: CEvent $evt

beforeDelete($event)   X-Ref
This method takes care that every associated ACL-objects are properly removed




Generated: Sun Jul 1 19:24:45 2012 Cross-referenced by PHPXref 0.7.1