|
ILIAS
release_9 Revision v9.13-25-g2c18ec4c24f
|
Inheritance diagram for ilOrgUnitOperationDBRepository:
Collaboration diagram for ilOrgUnitOperationDBRepository:Public Member Functions | |
| __construct (ilDBInterface $db, ilOrgUnitOperationContextDBRepository $contextRepo) | |
| get (string $operation_string, string $description, array $contexts, int $list_order=0) | |
| Get an operation for each of the specified contexts If the operation does not exist for one or more contexts, it is created If any contexts do not exist yet, they are created as well. More... | |
| store (ilOrgUnitOperation $operation) | |
| Store operation to db. More... | |
| delete (ilOrgUnitOperation $operation) | |
| Delete an operation Returns false if the operation was not found. More... | |
| find (string $operation_string, string $context) | |
| Find an existing operation for a specified context Returns null if no operation is found. More... | |
| getById (int $operation_id) | |
| Get operation by id Returns null if no operation is found. More... | |
| getByName (string $operation_string) | |
| Get operation(s) by name. More... | |
| getOperationsByContextId (int $context_id) | |
| Get operations by context id. More... | |
| getOperationsByContextName (string $context) | |
| Get operations by context name. More... | |
Data Fields | |
| const | TABLE_NAME = 'il_orgu_operations' |
Protected Attributes | |
| ilDBInterface | $db |
| ilOrgUnitOperationContextDBRepository | $contextRepo |
Private Member Functions | |
| insert (ilOrgUnitOperation $operation) | |
| update (ilOrgUnitOperation $operation) | |
Definition at line 20 of file class.ilOrgUnitOperationDBRepository.php.
| ilOrgUnitOperationDBRepository::__construct | ( | ilDBInterface | $db, |
| ilOrgUnitOperationContextDBRepository | $contextRepo | ||
| ) |
Definition at line 27 of file class.ilOrgUnitOperationDBRepository.php.
References $contextRepo, and $db.
| ilOrgUnitOperationDBRepository::delete | ( | ilOrgUnitOperation | $operation | ) |
Delete an operation Returns false if the operation was not found.
Implements OrgUnitOperationRepository.
Definition at line 104 of file class.ilOrgUnitOperationDBRepository.php.
| ilOrgUnitOperationDBRepository::find | ( | string | $operation_string, |
| string | $context | ||
| ) |
Find an existing operation for a specified context Returns null if no operation is found.
Implements OrgUnitOperationRepository.
Definition at line 120 of file class.ilOrgUnitOperationDBRepository.php.
References $res.
Referenced by get().
Here is the caller graph for this function:| ilOrgUnitOperationDBRepository::get | ( | string | $operation_string, |
| string | $description, | ||
| array | $contexts, | ||
| int | $list_order = 0 |
||
| ) |
Get an operation for each of the specified contexts If the operation does not exist for one or more contexts, it is created If any contexts do not exist yet, they are created as well.
| array | $contexts | string[] |
Implements OrgUnitOperationRepository.
Definition at line 33 of file class.ilOrgUnitOperationDBRepository.php.
References $context, find(), and store().
Here is the call graph for this function:| ilOrgUnitOperationDBRepository::getById | ( | int | $operation_id | ) |
Get operation by id Returns null if no operation is found.
This is only kept for backwards compatibility, but might be removed at a later date
Implements OrgUnitOperationRepository.
Definition at line 145 of file class.ilOrgUnitOperationDBRepository.php.
References $res.
| ilOrgUnitOperationDBRepository::getByName | ( | string | $operation_string | ) |
Get operation(s) by name.
Implements OrgUnitOperationRepository.
Definition at line 164 of file class.ilOrgUnitOperationDBRepository.php.
References $res.
| ilOrgUnitOperationDBRepository::getOperationsByContextId | ( | int | $context_id | ) |
Get operations by context id.
This is only kept for backwards compatibility, but might be removed at a later date
Implements OrgUnitOperationRepository.
Definition at line 188 of file class.ilOrgUnitOperationDBRepository.php.
References $res.
| ilOrgUnitOperationDBRepository::getOperationsByContextName | ( | string | $context | ) |
Get operations by context name.
Implements OrgUnitOperationRepository.
Definition at line 213 of file class.ilOrgUnitOperationDBRepository.php.
References $res.
|
private |
Definition at line 69 of file class.ilOrgUnitOperationDBRepository.php.
References $id, ilOrgUnitOperation\getContextId(), ilOrgUnitOperation\getDescription(), ilOrgUnitOperation\getListOrder(), and ilOrgUnitOperation\getOperationString().
Referenced by store().
Here is the call graph for this function:
Here is the caller graph for this function:| ilOrgUnitOperationDBRepository::store | ( | ilOrgUnitOperation | $operation | ) |
Store operation to db.
Implements OrgUnitOperationRepository.
Definition at line 58 of file class.ilOrgUnitOperationDBRepository.php.
References ilOrgUnitOperation\getOperationId(), insert(), and update().
Referenced by get().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 90 of file class.ilOrgUnitOperationDBRepository.php.
References ilOrgUnitOperation\getContextId(), ilOrgUnitOperation\getDescription(), ilOrgUnitOperation\getListOrder(), ilOrgUnitOperation\getOperationId(), and ilOrgUnitOperation\getOperationString().
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.ilOrgUnitOperationDBRepository.php.
Referenced by __construct().
|
protected |
Definition at line 23 of file class.ilOrgUnitOperationDBRepository.php.
Referenced by __construct().
| const ilOrgUnitOperationDBRepository::TABLE_NAME = 'il_orgu_operations' |
Definition at line 22 of file class.ilOrgUnitOperationDBRepository.php.