ILIAS
trunk Revision v11.0_alpha-1749-g1a06bdef097
|
Helper class to create new object types (object_data, RBAC) More...
Static Public Member Functions | |
static array 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 |
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(), ROOT_FOLDER_ID, and SYSTEM_FOLDER_ID.
|
static |
Add custom RBAC operation.
Definition at line 336 of file class.ilDBUpdateNewObjectType.php.
References $id, $ilDB, and ilRbacReview\_getCustomRBACOperationId().
|
static |
Add new type to object data.
Definition at line 142 of file class.ilDBUpdateNewObjectType.php.
References $id, $ilDB, and ilObject\_getObjectTypeIdByTitle().
|
static |
Add create RBAC operations for parent object types.
Definition at line 397 of file class.ilDBUpdateNewObjectType.php.
References ilObject\_getObjectTypeIdByTitle().
|
static |
Add RBAC operation.
Definition at line 193 of file class.ilDBUpdateNewObjectType.php.
|
static |
Add RBAC operations for type.
Definition at line 175 of file class.ilDBUpdateNewObjectType.php.
References ilRbacReview\_getCustomRBACOperationId().
|
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.
References $DIC, $ilDB, $res, ilRbacReview\_getCustomRBACOperationId(), ilObject\_getObjectTypeIdByTitle(), and ILIAS\Repository\int().
|
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, and ilObject\_getObjectTypeIdByTitle().
|
static |
Delete operation for type in templates.
Definition at line 271 of file class.ilDBUpdateNewObjectType.php.
References $GLOBALS, and $ilDB.
|
static |
Get id of RBAC operation.
Definition at line 312 of file class.ilDBUpdateNewObjectType.php.
References $ilDB, $res, and null.
|
static |
Get id for object data type entry.
Definition at line 372 of file class.ilDBUpdateNewObjectType.php.
References $ilDB, $res, and null.
|
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.
|
static |
Definition at line 546 of file class.ilDBUpdateNewObjectType.php.
References $DIC, $ilDB, and ilRbacReview\_getCustomRBACOperationId().
|
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.
const ilDBUpdateNewObjectType::RBAC_OP_DELETE = 6 |
Definition at line 35 of file class.ilDBUpdateNewObjectType.php.
const ilDBUpdateNewObjectType::RBAC_OP_EDIT_PERMISSIONS = 1 |
Definition at line 31 of file class.ilDBUpdateNewObjectType.php.
const ilDBUpdateNewObjectType::RBAC_OP_READ = 3 |
Definition at line 33 of file class.ilDBUpdateNewObjectType.php.
const ilDBUpdateNewObjectType::RBAC_OP_VISIBLE = 2 |
Definition at line 32 of file class.ilDBUpdateNewObjectType.php.
const ilDBUpdateNewObjectType::RBAC_OP_WRITE = 4 |
Definition at line 34 of file class.ilDBUpdateNewObjectType.php.