ILIAS  trunk Revision v11.0_alpha-1715-g7fc467680fb
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
OrgUnitOperationRepository Interface Reference
+ Inheritance diagram for OrgUnitOperationRepository:
+ Collaboration diagram for OrgUnitOperationRepository:

Public Member Functions

 get (string $operation_string, string $description, array $contexts, int $list_order)
 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...
 

Detailed Description

Definition at line 21 of file OrgUnitOperationRepository.php.

Member Function Documentation

◆ delete()

OrgUnitOperationRepository::delete ( ilOrgUnitOperation  $operation)

Delete an operation Returns false if the operation was not found.

Implemented in ilOrgUnitOperationDBRepository.

◆ find()

OrgUnitOperationRepository::find ( string  $operation_string,
string  $context 
)

Find an existing operation for a specified context Returns null if no operation is found.

Implemented in ilOrgUnitOperationDBRepository.

◆ get()

OrgUnitOperationRepository::get ( string  $operation_string,
string  $description,
array  $contexts,
int  $list_order 
)

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.

Parameters
array$contextsstring[]
Returns
array ilOrgUnitOperation[]

Implemented in ilOrgUnitOperationDBRepository.

◆ getById()

OrgUnitOperationRepository::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

Deprecated:
Please refer to operations by operation_string and context

Implemented in ilOrgUnitOperationDBRepository.

◆ getByName()

OrgUnitOperationRepository::getByName ( string  $operation_string)

Get operation(s) by name.

Returns
array ilOrgUnitOperation[]

Implemented in ilOrgUnitOperationDBRepository.

◆ getOperationsByContextId()

OrgUnitOperationRepository::getOperationsByContextId ( int  $context_id)

Get operations by context id.

This is only kept for backwards compatibility, but might be removed at a later date

Deprecated:
Please refer to contexts by context name (see getOperationsByContextName)
Returns
array ilOrgUnitOperation[]

Implemented in ilOrgUnitOperationDBRepository.

◆ getOperationsByContextName()

OrgUnitOperationRepository::getOperationsByContextName ( string  $context)

Get operations by context name.

Returns
array ilOrgUnitOperation[]

Implemented in ilOrgUnitOperationDBRepository.

◆ store()

OrgUnitOperationRepository::store ( ilOrgUnitOperation  $operation)

Store operation to db.

Implemented in ilOrgUnitOperationDBRepository.


The documentation for this interface was generated from the following file: