|
ILIAS
release_9 Revision v9.13-25-g2c18ec4c24f
|
Inheritance diagram for ilOrgUnitPositionDBRepository:
Collaboration diagram for ilOrgUnitPositionDBRepository:Public Member Functions | |
| __construct (ilDBInterface $db, ilOrgUnitAuthorityDBRepository $authorityRepo, ilOrgUnitUserAssignmentDBRepository $assignmentRepo) | |
| get (int|string $value, string $field) | |
| Get one or more positions filtered by field/value. More... | |
| getSingle (int|string $value, string $field) | |
| Get a single position from a filtered query (see get()) More... | |
| getAllPositions () | |
| Returns all position objects. More... | |
| getArray (?string $key=null, ?string $field=null) | |
| Returns position data as an array, e.g. More... | |
| getPositionsForOrgUnit (int $orgu_id) | |
| Returns all core positions plus all positions with user assignments for a certain org unit (kept for compatibility, filtering by ua will be moved to orgu later) More... | |
| create () | |
| store (ilOrgUnitPosition $position) | |
| Saves position and its authorities. More... | |
| delete (int $position_id) | |
| Deletes position and authorities/user assignments attached to it. More... | |
| getAuthority (?int $id) | |
| Gets or creates an authority object, as the authority repo is encapsulated into this repo. More... | |
Data Fields | |
| const | TABLE_NAME = 'il_orgu_positions' |
Protected Attributes | |
| ilDBInterface | $db |
| ilOrgUnitAuthorityDBRepository | $authorityRepo |
| ilOrgUnitUserAssignmentDBRepository | $assignmentRepo |
Private Member Functions | |
| insert (ilOrgUnitPosition $position) | |
| update (ilOrgUnitPosition $position) | |
Private Attributes | |
| const | TABLE_NAME_UA = 'il_orgu_ua' |
Definition at line 21 of file class.ilOrgUnitPositionDBRepository.php.
| ilOrgUnitPositionDBRepository::__construct | ( | ilDBInterface | $db, |
| ilOrgUnitAuthorityDBRepository | $authorityRepo, | ||
| ilOrgUnitUserAssignmentDBRepository | $assignmentRepo | ||
| ) |
Definition at line 29 of file class.ilOrgUnitPositionDBRepository.php.
References $assignmentRepo, $authorityRepo, and $db.
| ilOrgUnitPositionDBRepository::create | ( | ) |
Implements OrgUnitPositionRepository.
Definition at line 196 of file class.ilOrgUnitPositionDBRepository.php.
| ilOrgUnitPositionDBRepository::delete | ( | int | $position_id | ) |
Deletes position and authorities/user assignments attached to it.
Implements OrgUnitPositionRepository.
Definition at line 276 of file class.ilOrgUnitPositionDBRepository.php.
| ilOrgUnitPositionDBRepository::get | ( | int|string | $value, |
| string | $field | ||
| ) |
Get one or more positions filtered by field/value.
| Exception |
Implements OrgUnitPositionRepository.
Definition at line 42 of file class.ilOrgUnitPositionDBRepository.php.
References $res, and ilOrgUnitAuthority\POSITION_ID.
| ilOrgUnitPositionDBRepository::getAllPositions | ( | ) |
Returns all position objects.
Implements OrgUnitPositionRepository.
Definition at line 88 of file class.ilOrgUnitPositionDBRepository.php.
References $res, and ilOrgUnitAuthority\POSITION_ID.
| ilOrgUnitPositionDBRepository::getArray | ( | ?string | $key = null, |
| ?string | $field = null |
||
| ) |
Returns position data as an array, e.g.
for using ids in forms
| Exception |
Implements OrgUnitPositionRepository.
Definition at line 112 of file class.ilOrgUnitPositionDBRepository.php.
References ILIAS\LTI\ToolProvider\$key, $res, and ILIAS\Repository\int().
Here is the call graph for this function:| ilOrgUnitPositionDBRepository::getAuthority | ( | ?int | $id | ) |
Gets or creates an authority object, as the authority repo is encapsulated into this repo.
Implements OrgUnitPositionRepository.
Definition at line 297 of file class.ilOrgUnitPositionDBRepository.php.
| ilOrgUnitPositionDBRepository::getPositionsForOrgUnit | ( | int | $orgu_id | ) |
Returns all core positions plus all positions with user assignments for a certain org unit (kept for compatibility, filtering by ua will be moved to orgu later)
Implements OrgUnitPositionRepository.
Definition at line 173 of file class.ilOrgUnitPositionDBRepository.php.
References $res, and ilOrgUnitAuthority\POSITION_ID.
| ilOrgUnitPositionDBRepository::getSingle | ( | int|string | $value, |
| string | $field | ||
| ) |
Get a single position from a filtered query (see get())
Implements OrgUnitPositionRepository.
Definition at line 73 of file class.ilOrgUnitPositionDBRepository.php.
|
private |
Definition at line 235 of file class.ilOrgUnitPositionDBRepository.php.
References $id, ilOrgUnitPosition\getAuthorities(), ilOrgUnitPosition\getCoreIdentifier(), ilOrgUnitPosition\getDescription(), ilOrgUnitPosition\getTitle(), and ilOrgUnitPosition\isCorePosition().
Referenced by store().
Here is the call graph for this function:
Here is the caller graph for this function:| ilOrgUnitPositionDBRepository::store | ( | ilOrgUnitPosition | $position | ) |
Saves position and its authorities.
Implements OrgUnitPositionRepository.
Definition at line 204 of file class.ilOrgUnitPositionDBRepository.php.
References ilOrgUnitPosition\getAuthorities(), ilOrgUnitPosition\getId(), insert(), update(), and ilOrgUnitPosition\withAuthorities().
Here is the call graph for this function:
|
private |
Definition at line 259 of file class.ilOrgUnitPositionDBRepository.php.
References ilOrgUnitPosition\getCoreIdentifier(), ilOrgUnitPosition\getDescription(), ilOrgUnitPosition\getId(), ilOrgUnitPosition\getTitle(), and ilOrgUnitPosition\isCorePosition().
Referenced by store().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 27 of file class.ilOrgUnitPositionDBRepository.php.
Referenced by __construct().
|
protected |
Definition at line 26 of file class.ilOrgUnitPositionDBRepository.php.
Referenced by __construct().
|
protected |
Definition at line 25 of file class.ilOrgUnitPositionDBRepository.php.
Referenced by __construct().
| const ilOrgUnitPositionDBRepository::TABLE_NAME = 'il_orgu_positions' |
Definition at line 23 of file class.ilOrgUnitPositionDBRepository.php.
|
private |
Definition at line 24 of file class.ilOrgUnitPositionDBRepository.php.