(no description)
File Size: | 99 lines (4 kb) |
Included or required: | 0 times |
Referenced: | 2 times |
Includes or requires: | 0 files |
Class: course_capability_assignment - X-Ref
Aids in capability assignment and alteration of the assigned capability.allow($capability, $roleid, $contextid) X-Ref |
Assigns a capability to a role at the given context giving it permission. return: course_capability_assignment param: string|array $capability The capability to assign. param: int $roleid The roleID to assign to. param: int $contextid The contextID for where to make the assignment. |
prohibit($capability, $roleid, $contextid) X-Ref |
Assigns a capability to a role at the given context prohibiting it. return: course_capability_assignment param: string|array $capability The capability to assign. param: int $roleid The roleID to assign to. param: int $contextid The contextID for where to make the assignment. |
prevent($capability, $roleid, $contextid) X-Ref |
Assigns a capability to a role at the given context preventing it. return: course_capability_assignment param: string|array $capability The capability to assign. param: int $roleid The roleID to assign to. param: int $contextid The contextID for where to make the assignment. |
__construct($capability, $roleid, $contextid, $permission) X-Ref |
Creates a new course_capability_assignment object return: course_capability_assignment param: string|array $capability The capability to assign. param: int $roleid The roleID to assign to. param: int $contextid The contextID for where to make the assignment. param: int $permission The permission to apply. One of CAP_ALLOW, CAP_PROHIBIT, CAP_PREVENT. |
assign($permission) X-Ref |
Assign a new permission. param: int $permission One of CAP_ALLOW, CAP_PROHIBIT, CAP_PREVENT |
revoke() X-Ref |
Revokes the capability assignment. |