|
ILIAS
trunk Revision v12.0_alpha-377-g3641b37b9db
|
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... | |
| 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 appendPath(), getById(), ilOrgUnitOperationContext\getId(), ilOrgUnitOperationContext\getParentContextId(), ilOrgUnitOperationContext\getPathIds(), ilOrgUnitOperationContext\getPathNames(), and ilOrgUnitOperationContext\withPathNames().
Referenced by appendPath(), 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 111 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 128 of file class.ilOrgUnitOperationContextDBRepository.php.
References $context, $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 32 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 149 of file class.ilOrgUnitOperationContextDBRepository.php.
References $id, $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 176 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 170 of file class.ilOrgUnitOperationContextDBRepository.php.
References $ref_id, ilObject\_lookupType(), and find().
Here is the call graph for this function:
|
private |
Definition at line 77 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 62 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 99 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 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.