ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
|
Helper class to create new object types (object_data, RBAC) More...
Static Public Member Functions | |
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... | |
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... | |
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 325 of file class.ilDBUpdateNewObjectType.php.
References $ilDB, $ref_id, and array.
|
static |
Add custom RBAC operation.
string | $a_id | |
string | $a_title | |
string | $a_class | |
string | $a_pos |
Definition at line 230 of file class.ilDBUpdateNewObjectType.php.
|
static |
Add new type to object data.
string | $a_type_id | |
string | $a_type_title |
Definition at line 29 of file class.ilDBUpdateNewObjectType.php.
References $ilDB, array, 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 289 of file class.ilDBUpdateNewObjectType.php.
|
static |
Add RBAC operation.
int | $a_type_id | |
int | $a_ops_id |
Definition at line 85 of file class.ilDBUpdateNewObjectType.php.
|
static |
Add RBAC operations for type.
int | $a_type_id | |
array | $a_operations |
Definition at line 62 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 491 of file class.ilDBUpdateNewObjectType.php.
References $ilDB, array, and ilUtil\now().
|
static |
Clone RBAC-settings between operations.
string | $a_obj_type | |
int | $a_source_op_id | |
int | $a_target_op_id |
Definition at line 376 of file class.ilDBUpdateNewObjectType.php.
References $ilDB, $row, and array.
|
static |
Delete rbac operation.
int | $a_type | |
int | $a_ops_id |
Definition at line 134 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 164 of file class.ilDBUpdateNewObjectType.php.
References $a_type, $GLOBALS, $ilDB, and $query.
|
static |
Get id of RBAC operation.
string | $a_operation |
Definition at line 209 of file class.ilDBUpdateNewObjectType.php.
References $ilDB, $res, and $row.
|
static |
|
static |
Check if rbac operation exists.
int | $a_type_id | type id |
int | $a_ops_id | operation id |
Definition at line 113 of file class.ilDBUpdateNewObjectType.php.
References $ilDB.
|
staticprotected |
Check if given RBAC operation id is valid.
int | $a_ops_id |
Definition at line 186 of file class.ilDBUpdateNewObjectType.php.
|
static |
Change order of operations.
string | $a_operation | |
int | $a_pos |
Definition at line 309 of file class.ilDBUpdateNewObjectType.php.
|
static |
Migrate varchar column to text/clob.
string | $a_table_name | |
string | $a_column_name |
Definition at line 444 of file class.ilDBUpdateNewObjectType.php.
References $ilDB, ilDBInterface\addTableColumn(), array, ilDBInterface\dropTableColumn(), ilDBInterface\manipulate(), and ilDBInterface\renameTableColumn().
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.