ILIAS
trunk Revision v11.0_alpha-1749-g1a06bdef097
|
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 21 of file class.ilOrgUnitOperationDBRepository.php.
ilOrgUnitOperationDBRepository::__construct | ( | ilDBInterface | $db, |
ilOrgUnitOperationContextDBRepository | $contextRepo | ||
) |
Definition at line 28 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 105 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 121 of file class.ilOrgUnitOperationDBRepository.php.
Referenced by get().
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 34 of file class.ilOrgUnitOperationDBRepository.php.
References $context, find(), null, and store().
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 146 of file class.ilOrgUnitOperationDBRepository.php.
ilOrgUnitOperationDBRepository::getByName | ( | string | $operation_string | ) |
Get operation(s) by name.
Implements OrgUnitOperationRepository.
Definition at line 165 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 189 of file class.ilOrgUnitOperationDBRepository.php.
References $res.
ilOrgUnitOperationDBRepository::getOperationsByContextName | ( | string | $context | ) |
Get operations by context name.
Implements OrgUnitOperationRepository.
Definition at line 214 of file class.ilOrgUnitOperationDBRepository.php.
References $res.
|
private |
Definition at line 70 of file class.ilOrgUnitOperationDBRepository.php.
References $id, ilOrgUnitOperation\getContextId(), ilOrgUnitOperation\getDescription(), ilOrgUnitOperation\getListOrder(), and ilOrgUnitOperation\getOperationString().
Referenced by store().
ilOrgUnitOperationDBRepository::store | ( | ilOrgUnitOperation | $operation | ) |
Store operation to db.
Implements OrgUnitOperationRepository.
Definition at line 59 of file class.ilOrgUnitOperationDBRepository.php.
References ilOrgUnitOperation\getOperationId(), insert(), and update().
Referenced by get().
|
private |
Definition at line 91 of file class.ilOrgUnitOperationDBRepository.php.
References ilOrgUnitOperation\getContextId(), ilOrgUnitOperation\getDescription(), ilOrgUnitOperation\getListOrder(), ilOrgUnitOperation\getOperationId(), and ilOrgUnitOperation\getOperationString().
Referenced by store().
|
protected |
Definition at line 25 of file class.ilOrgUnitOperationDBRepository.php.
Referenced by __construct().
|
protected |
Definition at line 24 of file class.ilOrgUnitOperationDBRepository.php.
Referenced by __construct().
const ilOrgUnitOperationDBRepository::TABLE_NAME = 'il_orgu_operations' |
Definition at line 23 of file class.ilOrgUnitOperationDBRepository.php.