## Class CFW_Acl_AccessControl

Description

ACL本体

- author: okada

Located in /Acl/AccessControl.php (line 18)

Variable Summary
array $resourceIndex
CFW_Acl_Resource $resources
array $roleIndex
CFW_Acl_Role $roles
array $rules
Method Summary
unknown_type __construct ()
unknown_type addResource (unknown_type $resourceName, [unknown_type $parentName = null])
unknown_type addRole (unknown_type $roleName, [unknown_type $parentName = null])
unknown_type addRule (unknown_type $resourceName, unknown_type $roleName, [unknown_type $privilege = CFW_Acl_Privilege::ALL])
unknown findResource (unknown_type $resourceName)
unknown findRole (unknown_type $roleName)
string|string isAllowed (unknown_type $resourceName, unknown_type $privilege, unknown_type $roles)
boolean isDenied (unknown_type $resourceName, unknown_type $privilege, unknown_type $roles)
unknown_type load ()
Ambigous normalizeRoles (unknown_type $roles)
Variables
array $resourceIndex (line 35)
CFW_Acl_Resource $resources (line 26)
array $roleIndex (line 39)
CFW_Acl_Role $roles (line 30)
array $rules (line 22)
Methods
Constructor __construct (line 45)

構築.

- access: public

unknown_type __construct ()
addResource (line 78)

リソースを追加する

- access: public

unknown_type addResource (unknown_type $resourceName, [unknown_type $parentName = null])

- unknown_type $resourceName
- unknown_type $parentName

addRole (line 59)

ロールを追加する.

- access: public

unknown_type addRole (unknown_type $roleName, [unknown_type $parentName = null])

- unknown_type $roleName
- unknown_type $parentName

addRule (line 98)

ルールを追加する

- access: public

unknown_type addRule (unknown_type $resourceName, unknown_type $roleName, [unknown_type $privilege = CFW_Acl_Privilege::ALL])

- unknown_type $resourceName
- unknown_type $roleName
- unknown_type $privilege

findResource (line 202)

登録されているリソースオブジェクトを検索する

- access: public

unknown findResource (unknown_type $resourceName)

- unknown_type $resourceName

findRole (line 212)

登録されているロールオブジェクトを検索する

- access: public

unknown findRole (unknown_type $roleName)

- unknown_type $roleName

isAllowed (line 119)

指定条件が許可されているかチェックする.

- access: public

string|string isAllowed (unknown_type $resourceName, unknown_type $privilege, unknown_type $roles)

- unknown_type $resourceName
- unknown_type $privilege
- unknown_type $roles

isDenied (line 171)

指定条件が拒否されているかチェックする.

- access: public

boolean isDenied (unknown_type $resourceName, unknown_type $privilege, unknown_type $roles)

- unknown_type $resourceName
- unknown_type $privilege
- unknown_type $roles

load (line 222)

外部に保存しているACLデータを読み込む.

サブクラスでの実装が必要

- access: public

unknown_type load ()
normalizeRoles (line 179)

渡されたロールに重複などがないよう整理する.

- return: <unknown, multitype:>
- access: public

Ambigous normalizeRoles (unknown_type $roles)

- unknown_type $roles

Documentation generated on Fri, 25 Dec 2009 21:42:32 +0900 by phpDocumentor 1.4.3