◆ __construct()
ilAccessRbacStandardOperationsAddedObjective::__construct |
( |
string |
$type | ) |
|
◆ achieve()
ilAccessRbacStandardOperationsAddedObjective::achieve |
( |
Environment |
$environment | ) |
|
Definition at line 73 of file class.ilAccessRBACStandardOperationsAddedObjective.php.
References ilRbacReview\_getCustomRBACOperationId(), ilObject\_getObjectTypeIdByTitle(), ilRbacReview\_isRBACOperation(), and ILIAS\Setup\Environment\getResource().
75 $db = $environment->
getResource(Environment::RESOURCE_DATABASE);
78 foreach ($this->valid_operations as $ops_id) {
79 if ($ops_id == self::RBAC_OP_COPY) {
88 "typ_id" => [
"integer", $type_id],
89 "ops_id" => [
"integer", $ops_id]
92 $db->insert(
"rbac_ta", $values);
getResource(string $id)
Consumers of this method should check if the result is what they expect, e.g.
static _getCustomRBACOperationId(string $operation, \ilDBInterface $ilDB=null)
An environment holds resources to be used in the setup process.
static _isRBACOperation(int $type_id, int $ops_id, \ilDBInterface $ilDB=null)
static _getObjectTypeIdByTitle(string $type, \ilDBInterface $ilDB=null)
◆ getHash()
ilAccessRbacStandardOperationsAddedObjective::getHash |
( |
| ) |
|
◆ getLabel()
ilAccessRbacStandardOperationsAddedObjective::getLabel |
( |
| ) |
|
◆ getPreconditions()
ilAccessRbacStandardOperationsAddedObjective::getPreconditions |
( |
Environment |
$environment | ) |
|
◆ isApplicable()
ilAccessRbacStandardOperationsAddedObjective::isApplicable |
( |
Environment |
$environment | ) |
|
◆ isNotable()
ilAccessRbacStandardOperationsAddedObjective::isNotable |
( |
| ) |
|
◆ $type
string ilAccessRbacStandardOperationsAddedObjective::$type |
|
protected |
◆ $valid_operations
array ilAccessRbacStandardOperationsAddedObjective::$valid_operations |
|
protected |
◆ RBAC_OP_COPY
const ilAccessRbacStandardOperationsAddedObjective::RBAC_OP_COPY = 99 |
|
protected |
◆ RBAC_OP_DELETE
const ilAccessRbacStandardOperationsAddedObjective::RBAC_OP_DELETE = 6 |
|
protected |
◆ RBAC_OP_EDIT_PERMISSIONS
const ilAccessRbacStandardOperationsAddedObjective::RBAC_OP_EDIT_PERMISSIONS = 1 |
|
protected |
◆ RBAC_OP_READ
const ilAccessRbacStandardOperationsAddedObjective::RBAC_OP_READ = 3 |
|
protected |
◆ RBAC_OP_VISIBLE
const ilAccessRbacStandardOperationsAddedObjective::RBAC_OP_VISIBLE = 2 |
|
protected |
◆ RBAC_OP_WRITE
const ilAccessRbacStandardOperationsAddedObjective::RBAC_OP_WRITE = 4 |
|
protected |
The documentation for this class was generated from the following file: