|
ILIAS
release_8 Revision v8.24
|
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...
Collaboration diagram for ilDBUpdateNewObjectType:Static Public Member Functions | |
| static | addNewType (string $type_id, string $type_title) |
| Add new type to object data. More... | |
| static | addRBACOperations (int $type_id, array $operations) |
| Add RBAC operations for type. More... | |
| static | addRBACOperation (int $type_id, int $ops_id) |
| Add RBAC operation. More... | |
| static | isRBACOperation (int $type_id, int $ops_id) |
| Check if rbac operation exists. More... | |
| static | deleteRBACOperation (string $type, int $ops_id) |
| Delete rbac operation. More... | |
| static | deleteRBACTemplateOperation (string $type, int $ops_id) |
| Delete operation for type in templates. More... | |
| static | getCustomRBACOperationId (string $operation) |
| Get id of RBAC operation. More... | |
| static | addCustomRBACOperation (string $id, string $title, string $class, int $pos) |
| Add custom RBAC operation. More... | |
| static | getObjectTypeId (string $type) |
| Get id for object data type entry. More... | |
| static | addRBACCreate (string $id, string $title, array $parent_types) |
| Add create RBAC operations for parent object types. More... | |
| static | updateOperationOrder (string $operation, int $pos) |
| Change order of operations. More... | |
| static | addAdminNode (string $obj_type, string $title) |
| Create new admin object node. More... | |
| static | cloneOperation (string $obj_type, int $source_op_id, int $target_op_id) |
| Clone RBAC-settings between operations. More... | |
| static | setRolePermission (int $a_rol_id, string $a_type, array $a_ops, int $a_ref_id) |
| static | applyInitialPermissionGuideline (string $objectType, bool $hasLearningProgress=false, bool $usedForAuthoring=false) |
| This method will apply the 'Initial Permissions Guideline' when introducing new object types. More... | |
Data Fields | |
| const | RBAC_OP_EDIT_PERMISSIONS = 1 |
| const | RBAC_OP_VISIBLE = 2 |
| const | RBAC_OP_READ = 3 |
| const | RBAC_OP_WRITE = 4 |
| const | RBAC_OP_DELETE = 6 |
| const | RBAC_OP_COPY = 99 |
Static Protected Member Functions | |
| static | isValidRBACOperation (int $ops_id) |
| Check if given RBAC operation id is valid. More... | |
Static Protected Attributes | |
| static array | $initialPermissionDefinition |
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.
ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.
If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning Helper class to create new object types (object_data, RBAC)
Definition at line 29 of file class.ilDBUpdateNewObjectType.php.
|
static |
Create new admin object node.
Definition at line 430 of file class.ilDBUpdateNewObjectType.php.
References $ilDB, $ref_id, ilObject\_getObjectTypeIdByTitle(), addNewType(), addRBACOperations(), RBAC_OP_EDIT_PERMISSIONS, RBAC_OP_READ, RBAC_OP_VISIBLE, RBAC_OP_WRITE, ROOT_FOLDER_ID, and SYSTEM_FOLDER_ID.
Here is the call graph for this function:
|
static |
Add custom RBAC operation.
Definition at line 336 of file class.ilDBUpdateNewObjectType.php.
References $id, $ilDB, and ilRbacReview\_getCustomRBACOperationId().
Referenced by addRBACCreate().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Add new type to object data.
Definition at line 142 of file class.ilDBUpdateNewObjectType.php.
References $id, $ilDB, and ilObject\_getObjectTypeIdByTitle().
Referenced by addAdminNode().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Add create RBAC operations for parent object types.
Definition at line 397 of file class.ilDBUpdateNewObjectType.php.
References $id, $type, ilObject\_getObjectTypeIdByTitle(), addCustomRBACOperation(), and addRBACOperation().
Here is the call graph for this function:
|
static |
Add RBAC operation.
Definition at line 193 of file class.ilDBUpdateNewObjectType.php.
Referenced by addRBACCreate(), and addRBACOperations().
Here is the caller graph for this function:
|
static |
Add RBAC operations for type.
Definition at line 175 of file class.ilDBUpdateNewObjectType.php.
References ilRbacReview\_getCustomRBACOperationId(), and addRBACOperation().
Referenced by addAdminNode().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
This method will apply the 'Initial Permissions Guideline' when introducing new object types.
This method does not apply permissions to existing obejcts in the ILIAS repository ('change existing objects').
| bool | $hasLearningProgress | A boolean flag whether the object type supports learning progress |
| bool | $usedForAuthoring | A boolean flag to tell whether the object type is mainly used for authoring |
Definition at line 579 of file class.ilDBUpdateNewObjectType.php.
|
static |
Clone RBAC-settings between operations.
Definition at line 479 of file class.ilDBUpdateNewObjectType.php.
|
static |
Delete rbac operation.
Definition at line 242 of file class.ilDBUpdateNewObjectType.php.
References $GLOBALS, $ilDB, $type, ilObject\_getObjectTypeIdByTitle(), and deleteRBACTemplateOperation().
Here is the call graph for this function:
|
static |
Delete operation for type in templates.
Definition at line 271 of file class.ilDBUpdateNewObjectType.php.
References $GLOBALS, $ilDB, and $type.
Referenced by deleteRBACOperation().
Here is the caller graph for this function:
|
static |
Get id of RBAC operation.
Definition at line 312 of file class.ilDBUpdateNewObjectType.php.
|
static |
Get id for object data type entry.
Definition at line 372 of file class.ilDBUpdateNewObjectType.php.
|
static |
Check if rbac operation exists.
Definition at line 223 of file class.ilDBUpdateNewObjectType.php.
References $ilDB.
|
staticprotected |
Check if given RBAC operation id is valid.
Definition at line 293 of file class.ilDBUpdateNewObjectType.php.
References $valid, RBAC_OP_COPY, RBAC_OP_DELETE, RBAC_OP_EDIT_PERMISSIONS, RBAC_OP_READ, RBAC_OP_VISIBLE, and RBAC_OP_WRITE.
|
static |
Definition at line 546 of file class.ilDBUpdateNewObjectType.php.
References $DIC, $ilDB, and ilRbacReview\_getCustomRBACOperationId().
Here is the call graph for this function:
|
static |
Change order of operations.
Definition at line 414 of file class.ilDBUpdateNewObjectType.php.
References $ilDB.
|
staticprotected |
Definition at line 38 of file class.ilDBUpdateNewObjectType.php.
| const ilDBUpdateNewObjectType::RBAC_OP_COPY = 99 |
Definition at line 36 of file class.ilDBUpdateNewObjectType.php.
Referenced by isValidRBACOperation().
| const ilDBUpdateNewObjectType::RBAC_OP_DELETE = 6 |
Definition at line 35 of file class.ilDBUpdateNewObjectType.php.
Referenced by isValidRBACOperation().
| const ilDBUpdateNewObjectType::RBAC_OP_EDIT_PERMISSIONS = 1 |
Definition at line 31 of file class.ilDBUpdateNewObjectType.php.
Referenced by addAdminNode(), and isValidRBACOperation().
| const ilDBUpdateNewObjectType::RBAC_OP_READ = 3 |
Definition at line 33 of file class.ilDBUpdateNewObjectType.php.
Referenced by addAdminNode(), and isValidRBACOperation().
| const ilDBUpdateNewObjectType::RBAC_OP_VISIBLE = 2 |
Definition at line 32 of file class.ilDBUpdateNewObjectType.php.
Referenced by addAdminNode(), and isValidRBACOperation().
| const ilDBUpdateNewObjectType::RBAC_OP_WRITE = 4 |
Definition at line 34 of file class.ilDBUpdateNewObjectType.php.
Referenced by addAdminNode(), and isValidRBACOperation().