|
ILIAS
release_9 Revision v9.13-25-g2c18ec4c24f
|
Inheritance diagram for ilOrgUnitOperationContextDBRepository:
Collaboration diagram for ilOrgUnitOperationContextDBRepository: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 20 of file class.ilOrgUnitOperationContextDBRepository.php.
| ilOrgUnitOperationContextDBRepository::__construct | ( | ilDBInterface | $db | ) |
Definition at line 26 of file class.ilOrgUnitOperationContextDBRepository.php.
References $db.
|
private |
Definition at line 182 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().
Here is the call graph for this function:
Here is the caller graph for this function:| ilOrgUnitOperationContextDBRepository::delete | ( | string | $context | ) |
Delete context by name Returns false, if no context is found.
Implements OrgUnitOperationContextRepository.
Definition at line 110 of file class.ilOrgUnitOperationContextDBRepository.php.
References find().
Here is the call graph for this function:| ilOrgUnitOperationContextDBRepository::find | ( | string | $context | ) |
Find an existing context Returns null if no context is found.
Implements OrgUnitOperationContextRepository.
Definition at line 127 of file class.ilOrgUnitOperationContextDBRepository.php.
References $res, and appendPath().
Referenced by delete(), get(), getByObjId(), and getByRefId().
Here is the call graph for this function:
Here is the caller graph for this function:| 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 31 of file class.ilOrgUnitOperationContextDBRepository.php.
References $context, appendPath(), find(), and store().
Here is the call graph for this function:| 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 148 of file class.ilOrgUnitOperationContextDBRepository.php.
References $res, and appendPath().
Referenced by appendPath().
Here is the call graph for this function:
Here is the caller graph for this function:| ilOrgUnitOperationContextDBRepository::getByObjId | ( | int | $obj_id | ) |
Get context by obj_id Returns null if no context is found.
Implements OrgUnitOperationContextRepository.
Definition at line 175 of file class.ilOrgUnitOperationContextDBRepository.php.
References ilObject\_lookupType(), and find().
Here is the call graph for this function:| ilOrgUnitOperationContextDBRepository::getByRefId | ( | int | $ref_id | ) |
Get context by ref_id Returns null if no context is found.
Implements OrgUnitOperationContextRepository.
Definition at line 169 of file class.ilOrgUnitOperationContextDBRepository.php.
References ilObject\_lookupType(), and find().
Here is the call graph for this function:
|
private |
Definition at line 76 of file class.ilOrgUnitOperationContextDBRepository.php.
References $id, appendPath(), ilOrgUnitOperationContext\getContext(), and ilOrgUnitOperationContext\getParentContextId().
Referenced by store().
Here is the call graph for this function:
Here is the caller graph for this function:| ilOrgUnitOperationContextDBRepository::store | ( | ilOrgUnitOperationContext | $operation_context | ) |
Store context to db.
Implements OrgUnitOperationContextRepository.
Definition at line 61 of file class.ilOrgUnitOperationContextDBRepository.php.
References appendPath(), ilOrgUnitOperationContext\getContext(), ilOrgUnitOperationContext\getId(), insert(), update(), and ilOrgUnitOperationContext\withPathNames().
Referenced by get().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 98 of file class.ilOrgUnitOperationContextDBRepository.php.
References ilOrgUnitOperationContext\getContext(), ilOrgUnitOperationContext\getId(), and ilOrgUnitOperationContext\getParentContextId().
Referenced by store().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 23 of file class.ilOrgUnitOperationContextDBRepository.php.
Referenced by __construct().
| const ilOrgUnitOperationContextDBRepository::TABLE_NAME = 'il_orgu_op_contexts' |
Definition at line 22 of file class.ilOrgUnitOperationContextDBRepository.php.