ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Helper class to create new object types (object_data, RBAC) More...
Static Public Member Functions | |
static static | addNewType ($a_type_id, $a_type_title) |
Add new type to object data. More... | |
static | addRBACOperations ($a_type_id, array $a_operations) |
Add RBAC operations for type. More... | |
static | addRBACOperation ($a_type_id, $a_ops_id) |
Add RBAC operation. More... | |
static | isRBACOperation ($a_type_id, $a_ops_id) |
Check if rbac operation exists. More... | |
static | deleteRBACOperation ($a_type, $a_ops_id) |
Delete rbac operation. More... | |
static | deleteRBACTemplateOperation ($a_type, $a_ops_id) |
Delete operation for type in templates. More... | |
static | getCustomRBACOperationId ($a_operation) |
Get id of RBAC operation. More... | |
static | addCustomRBACOperation ($a_id, $a_title, $a_class, $a_pos) |
Add custom RBAC operation. More... | |
static | getObjectTypeId ($a_type) |
Get id for object data type entry. More... | |
static | addRBACCreate ($a_id, $a_title, array $a_parent_types) |
Add create RBAC operations for parent object types. More... | |
static | updateOperationOrder ($a_operation, $a_pos) |
Change order of operations. More... | |
static | addAdminNode ($a_obj_type, $a_title) |
Create new admin object node. More... | |
static | cloneOperation ($a_obj_type, $a_source_op_id, $a_target_op_id) |
Clone RBAC-settings between operations. More... | |
static | varchar2text ($a_table_name, $a_column_name) |
Migrate varchar column to text/clob. More... | |
static | addRBACTemplate ($a_obj_type, $a_id, $a_description, $a_op_ids) |
Add new RBAC template. 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 ($a_ops_id) |
Check if given RBAC operation id is valid. More... | |
Static Protected Attributes | |
static | $initialPermissionDefinition |
Helper class to create new object types (object_data, RBAC)
Definition at line 13 of file class.ilDBUpdateNewObjectType.php.
|
static |
Create new admin object node.
string | $a_id | |
string | $a_title |
Definition at line 410 of file class.ilDBUpdateNewObjectType.php.
|
static |
Add custom RBAC operation.
string | $a_id | |
string | $a_title | |
string | $a_class | |
string | $a_pos |
Definition at line 319 of file class.ilDBUpdateNewObjectType.php.
References $ilDB.
|
static |
Add new type to object data.
string | $a_type_id | |
string | $a_type_title |
Definition at line 128 of file class.ilDBUpdateNewObjectType.php.
References $ilDB, and ilUtil\now().
|
static |
Add create RBAC operations for parent object types.
string | $a_id | |
string | $a_title | |
array | $a_parent_types |
Definition at line 375 of file class.ilDBUpdateNewObjectType.php.
References $type.
|
static |
Add RBAC operation.
int | $a_type_id | |
int | $a_ops_id |
Definition at line 180 of file class.ilDBUpdateNewObjectType.php.
References $ilDB.
|
static |
Add RBAC operations for type.
int | $a_type_id | |
array | $a_operations |
Definition at line 160 of file class.ilDBUpdateNewObjectType.php.
|
static |
Add new RBAC template.
string | $a_obj_type | |
string | $a_id | |
string | $a_description | |
int | array | $a_op_ids |
Definition at line 567 of file class.ilDBUpdateNewObjectType.php.
References $ilDB, and ilUtil\now().
|
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').
string | $objectType | |
bool | $hasLearningProgress | A boolean flag whether or not the object type supports learning progress |
bool | $usedForAuthoring | A boolean flag to tell whether or not the object type is mainly used for authoring |
Definition at line 635 of file class.ilDBUpdateNewObjectType.php.
References $DIC, $ilDB, $query, $res, $row, and getCustomRBACOperationId().
|
static |
Clone RBAC-settings between operations.
string | $a_obj_type | |
int | $a_source_op_id | |
int | $a_target_op_id |
Definition at line 460 of file class.ilDBUpdateNewObjectType.php.
|
static |
Delete rbac operation.
int | $a_type | |
int | $a_ops_id |
Definition at line 227 of file class.ilDBUpdateNewObjectType.php.
References $a_type, $GLOBALS, $ilDB, and $query.
|
static |
Delete operation for type in templates.
string | $a_type | |
int | $a_ops_id |
Definition at line 255 of file class.ilDBUpdateNewObjectType.php.
References $a_type, $GLOBALS, $ilDB, and $query.
|
static |
Get id of RBAC operation.
string | $a_operation |
Definition at line 298 of file class.ilDBUpdateNewObjectType.php.
References $ilDB, $res, and $row.
Referenced by applyInitialPermissionGuideline().
|
static |
|
static |
Check if rbac operation exists.
int | $a_type_id | type id |
int | $a_ops_id | operation id |
Definition at line 207 of file class.ilDBUpdateNewObjectType.php.
References $ilDB.
|
staticprotected |
Check if given RBAC operation id is valid.
int | $a_ops_id |
Definition at line 276 of file class.ilDBUpdateNewObjectType.php.
References $valid.
|
static |
Definition at line 602 of file class.ilDBUpdateNewObjectType.php.
|
static |
Change order of operations.
string | $a_operation | |
int | $a_pos |
Definition at line 393 of file class.ilDBUpdateNewObjectType.php.
References $ilDB.
|
static |
Migrate varchar column to text/clob.
string | $a_table_name | |
string | $a_column_name |
Definition at line 522 of file class.ilDBUpdateNewObjectType.php.
References $def, $ilDB, ilDBInterface\addTableColumn(), ilDBInterface\dropTableColumn(), ilDBInterface\manipulate(), and ilDBInterface\renameTableColumn().
|
staticprotected |
Definition at line 22 of file class.ilDBUpdateNewObjectType.php.
const ilDBUpdateNewObjectType::RBAC_OP_COPY = 99 |
Definition at line 20 of file class.ilDBUpdateNewObjectType.php.
const ilDBUpdateNewObjectType::RBAC_OP_DELETE = 6 |
Definition at line 19 of file class.ilDBUpdateNewObjectType.php.
const ilDBUpdateNewObjectType::RBAC_OP_EDIT_PERMISSIONS = 1 |
Definition at line 15 of file class.ilDBUpdateNewObjectType.php.
const ilDBUpdateNewObjectType::RBAC_OP_READ = 3 |
Definition at line 17 of file class.ilDBUpdateNewObjectType.php.
const ilDBUpdateNewObjectType::RBAC_OP_VISIBLE = 2 |
Definition at line 16 of file class.ilDBUpdateNewObjectType.php.
const ilDBUpdateNewObjectType::RBAC_OP_WRITE = 4 |
Definition at line 18 of file class.ilDBUpdateNewObjectType.php.