ILIAS
release_4-3 Revision
|
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. | |
static | addRBACOperations ($a_type_id, array $a_operations) |
Add RBAC operations for type. | |
static | addRBACOperation ($a_type_id, $a_ops_id) |
Add RBAC operation. | |
static | deleteRBACOperation ($a_type, $a_ops_id) |
Delete rbac operation. | |
static | deleteRBACTemplateOperation ($a_type, $a_ops_id) |
Delete operation for type in templates. | |
static | getCustomRBACOperationId ($a_operation) |
Get id of RBAC operation. | |
static | addCustomRBACOperation ($a_id, $a_title, $a_class, $a_pos) |
Add custom RBAC operation. | |
static | getObjectTypeId ($a_type) |
Get id for object data type entry. | |
static | addRBACCreate ($a_id, $a_title, array $a_parent_types) |
Add create RBAC operations for parent object types. | |
static | updateOperationOrder ($a_operation, $a_pos) |
Change order of operations. | |
static | varchar2text ($a_table_name, $a_column_name) |
Migrate varchar column to text/clob. |
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. |
Helper class to create new object types (object_data, RBAC)
Definition at line 13 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 206 of file class.ilDBUpdateNewObjectType.php.
References getCustomRBACOperationId().
Referenced by addRBACCreate().
|
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 getObjectTypeId(), 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 265 of file class.ilDBUpdateNewObjectType.php.
References addCustomRBACOperation(), addRBACOperation(), and getObjectTypeId().
|
static |
Add RBAC operation.
int | $a_type_id | |
int | $a_ops_id |
Definition at line 84 of file class.ilDBUpdateNewObjectType.php.
Referenced by addRBACCreate(), and addRBACOperations().
|
static |
Add RBAC operations for type.
int | $a_type_id | |
array | $a_operations |
Definition at line 62 of file class.ilDBUpdateNewObjectType.php.
References addRBACOperation(), and getCustomRBACOperationId().
|
static |
Delete rbac operation.
int | $a_type | |
int | $a_ops_id |
Definition at line 110 of file class.ilDBUpdateNewObjectType.php.
References $GLOBALS, $query, deleteRBACTemplateOperation(), and getObjectTypeId().
|
static |
Delete operation for type in templates.
string | $a_type | |
int | $a_ops_id |
Definition at line 140 of file class.ilDBUpdateNewObjectType.php.
References $GLOBALS, and $query.
Referenced by deleteRBACOperation().
|
static |
Get id of RBAC operation.
string | $a_operation |
Definition at line 185 of file class.ilDBUpdateNewObjectType.php.
Referenced by addCustomRBACOperation(), and addRBACOperations().
|
static |
Get id for object data type entry.
string | $a_type |
Definition at line 246 of file class.ilDBUpdateNewObjectType.php.
Referenced by addNewType(), addRBACCreate(), and deleteRBACOperation().
|
staticprotected |
Check if given RBAC operation id is valid.
int | $a_ops_id |
Definition at line 162 of file class.ilDBUpdateNewObjectType.php.
References $valid.
|
static |
Change order of operations.
string | $a_operation | |
int | $a_pos |
Definition at line 285 of file class.ilDBUpdateNewObjectType.php.
|
static |
Migrate varchar column to text/clob.
string | $a_table_name | |
string | $a_column_name |
Definition at line 302 of file class.ilDBUpdateNewObjectType.php.
References ilDB\LOCK_WRITE.
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.