ILIAS
trunk Revision v11.0_alpha-1713-gd8962da2f67
|
Public Member Functions | |
__construct (ilDBInterface $db) | |
get (string $context, ?string $parent_context) | |
Get a context If the context does not exist, it is created. More... | |
store (ilOrgUnitOperationContext $operation_context) | |
Store context to db. More... | |
delete (string $context) | |
Delete context by name Returns false, if no context is found. More... | |
find (string $context) | |
Find an existing context Returns null if no context is found. More... | |
getById (int $id) | |
Get context by id Returns null if no context is found. More... | |
getByRefId (int $ref_id) | |
Get context by ref_id Returns null if no context is found. More... | |
getByObjId (int $obj_id) | |
Get context by obj_id Returns null if no context is found. More... | |
Data Fields | |
const | TABLE_NAME = 'il_orgu_op_contexts' |
Protected Attributes | |
ilDBInterface | $db |
Private Member Functions | |
insert (ilOrgUnitOperationContext $operation_context) | |
update (ilOrgUnitOperationContext $operation_context) | |
appendPath (ilOrgUnitOperationContext $operation_context, ?int $next=null) | |
Definition at line 21 of file class.ilOrgUnitOperationContextDBRepository.php.
ilOrgUnitOperationContextDBRepository::__construct | ( | ilDBInterface | $db | ) |
Definition at line 27 of file class.ilOrgUnitOperationContextDBRepository.php.
References $db.
|
private |
Definition at line 183 of file class.ilOrgUnitOperationContextDBRepository.php.
References getById(), ilOrgUnitOperationContext\getId(), ilOrgUnitOperationContext\getParentContextId(), ilOrgUnitOperationContext\getPathIds(), ilOrgUnitOperationContext\getPathNames(), and ilOrgUnitOperationContext\withPathNames().
Referenced by find(), get(), getById(), insert(), and store().
ilOrgUnitOperationContextDBRepository::delete | ( | string | $context | ) |
Delete context by name Returns false, if no context is found.
Implements OrgUnitOperationContextRepository.
Definition at line 111 of file class.ilOrgUnitOperationContextDBRepository.php.
References find().
ilOrgUnitOperationContextDBRepository::find | ( | string | $context | ) |
Find an existing context Returns null if no context is found.
Implements OrgUnitOperationContextRepository.
Definition at line 128 of file class.ilOrgUnitOperationContextDBRepository.php.
References $res, appendPath(), and null.
Referenced by delete(), get(), getByObjId(), and getByRefId().
ilOrgUnitOperationContextDBRepository::get | ( | string | $context, |
?string | $parent_context | ||
) |
Get a context If the context does not exist, it is created.
ilException |
Implements OrgUnitOperationContextRepository.
Definition at line 32 of file class.ilOrgUnitOperationContextDBRepository.php.
References $context, appendPath(), find(), null, and store().
ilOrgUnitOperationContextDBRepository::getById | ( | int | $id | ) |
Get context by id Returns null if no context is found.
This is kept for backwards compatibility, but might be removed at a later date
Implements OrgUnitOperationContextRepository.
Definition at line 149 of file class.ilOrgUnitOperationContextDBRepository.php.
References $res, appendPath(), and null.
Referenced by appendPath().
ilOrgUnitOperationContextDBRepository::getByObjId | ( | int | $obj_id | ) |
Get context by obj_id Returns null if no context is found.
Implements OrgUnitOperationContextRepository.
Definition at line 176 of file class.ilOrgUnitOperationContextDBRepository.php.
References ilObject\_lookupType(), and find().
ilOrgUnitOperationContextDBRepository::getByRefId | ( | int | $ref_id | ) |
Get context by ref_id Returns null if no context is found.
Implements OrgUnitOperationContextRepository.
Definition at line 170 of file class.ilOrgUnitOperationContextDBRepository.php.
References ilObject\_lookupType(), and find().
|
private |
Definition at line 77 of file class.ilOrgUnitOperationContextDBRepository.php.
References $id, appendPath(), ilOrgUnitOperationContext\getContext(), and ilOrgUnitOperationContext\getParentContextId().
Referenced by store().
ilOrgUnitOperationContextDBRepository::store | ( | ilOrgUnitOperationContext | $operation_context | ) |
Store context to db.
Implements OrgUnitOperationContextRepository.
Definition at line 62 of file class.ilOrgUnitOperationContextDBRepository.php.
References appendPath(), ilOrgUnitOperationContext\getContext(), ilOrgUnitOperationContext\getId(), insert(), update(), and ilOrgUnitOperationContext\withPathNames().
Referenced by get().
|
private |
Definition at line 99 of file class.ilOrgUnitOperationContextDBRepository.php.
References ilOrgUnitOperationContext\getContext(), ilOrgUnitOperationContext\getId(), and ilOrgUnitOperationContext\getParentContextId().
Referenced by store().
|
protected |
Definition at line 24 of file class.ilOrgUnitOperationContextDBRepository.php.
Referenced by __construct().
const ilOrgUnitOperationContextDBRepository::TABLE_NAME = 'il_orgu_op_contexts' |
Definition at line 23 of file class.ilOrgUnitOperationContextDBRepository.php.