|
ILIAS
release_10 Revision v10.1-43-ga1241a92c2f
|
Inheritance diagram for ilOrgUnitPositionDBRepository:
Collaboration diagram for ilOrgUnitPositionDBRepository:Public Member Functions | |
| __construct (protected ilDBInterface $db, protected ilOrgUnitAuthorityDBRepository $authorityRepo, protected ilOrgUnitUserAssignmentDBRepository $assignmentRepo, protected ilLanguage $lng) | |
| 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 (Range $range=null, Order $order=null) | |
| 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... | |
| getTotalRowCount (?array $filter_data, ?array $additional_parameters) | |
| getRows (Table\DataRowBuilder $row_builder, array $visible_column_ids, Range $range, Order $order, ?array $filter_data, ?array $additional_parameters) | |
Public Member Functions inherited from OrgUnitPositionRepository | |
| getAllPositions () | |
Data Fields | |
| const | TABLE_NAME = 'il_orgu_positions' |
Protected Member Functions | |
| getAllPositionsCount () | |
Private Member Functions | |
| insert (ilOrgUnitPosition $position) | |
| update (ilOrgUnitPosition $position) | |
| getAuthorityDescription (array $authorities) | |
Private Attributes | |
| const | TABLE_NAME_UA = 'il_orgu_ua' |
Definition at line 26 of file class.ilOrgUnitPositionDBRepository.php.
| ilOrgUnitPositionDBRepository::__construct | ( | protected ilDBInterface | $db, |
| protected ilOrgUnitAuthorityDBRepository | $authorityRepo, | ||
| protected ilOrgUnitUserAssignmentDBRepository | $assignmentRepo, | ||
| protected ilLanguage | $lng | ||
| ) |
Definition at line 31 of file class.ilOrgUnitPositionDBRepository.php.
References ILIAS\Repository\lng().
Here is the call graph for this function:| ilOrgUnitPositionDBRepository::create | ( | ) |
Implements OrgUnitPositionRepository.
Definition at line 214 of file class.ilOrgUnitPositionDBRepository.php.
| ilOrgUnitPositionDBRepository::delete | ( | int | $position_id | ) |
Deletes position and authorities/user assignments attached to it.
Implements OrgUnitPositionRepository.
Definition at line 294 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 46 of file class.ilOrgUnitPositionDBRepository.php.
References $res, ilOrgUnitAuthority\POSITION_ID, and ILIAS\GlobalScreen\Scope\Footer\Factory\withTitle().
Here is the call graph for this function:Returns all position objects.
Definition at line 92 of file class.ilOrgUnitPositionDBRepository.php.
References ILIAS\UI\Implementation\Component\Table\$range, $res, ilOrgUnitAuthority\POSITION_ID, ILIAS\Data\Range\unpack(), and ILIAS\GlobalScreen\Scope\Footer\Factory\withTitle().
Here is the call graph for this function:
|
protected |
Definition at line 118 of file class.ilOrgUnitPositionDBRepository.php.
References $res.
Referenced by getTotalRowCount().
Here is the caller graph for this function:| 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 130 of file class.ilOrgUnitPositionDBRepository.php.
References $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 315 of file class.ilOrgUnitPositionDBRepository.php.
|
private |
Definition at line 354 of file class.ilOrgUnitPositionDBRepository.php.
References ILIAS\GlobalScreen\Scope\Footer\Factory\getTitle(), ILIAS\Repository\lng(), ilOrgUnitAuthority\OVER_EVERYONE, ilOrgUnitAuthority\SCOPE_SAME_ORGU, and ilOrgUnitAuthority\SCOPE_SUBSEQUENT_ORGUS.
Referenced by getRows().
Here is the call graph for this function:
Here is the caller graph for this function:| 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 191 of file class.ilOrgUnitPositionDBRepository.php.
References $res, ilOrgUnitAuthority\POSITION_ID, and ILIAS\GlobalScreen\Scope\Footer\Factory\withTitle().
Here is the call graph for this function:| ilOrgUnitPositionDBRepository::getRows | ( | Table\DataRowBuilder | $row_builder, |
| array | $visible_column_ids, | ||
| Range | $range, | ||
| Order | $order, | ||
| ?array | $filter_data, | ||
| ?array | $additional_parameters | ||
| ) |
Definition at line 332 of file class.ilOrgUnitPositionDBRepository.php.
References OrgUnitPositionRepository\getAllPositions(), and getAuthorityDescription().
Here is the call graph for this function:| ilOrgUnitPositionDBRepository::getSingle | ( | int|string | $value, |
| string | $field | ||
| ) |
Get a single position from a filtered query (see get())
Implements OrgUnitPositionRepository.
Definition at line 77 of file class.ilOrgUnitPositionDBRepository.php.
| ilOrgUnitPositionDBRepository::getTotalRowCount | ( | ?array | $filter_data, |
| ?array | $additional_parameters | ||
| ) |
Definition at line 325 of file class.ilOrgUnitPositionDBRepository.php.
References getAllPositionsCount().
Here is the call graph for this function:
|
private |
Definition at line 253 of file class.ilOrgUnitPositionDBRepository.php.
References $id, ilOrgUnitPosition\getAuthorities(), ilOrgUnitPosition\getCoreIdentifier(), ilOrgUnitPosition\getDescription(), ilOrgUnitPosition\getTitle(), ilOrgUnitPosition\isCorePosition(), and ILIAS\GlobalScreen\Scope\Footer\Factory\withTitle().
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 222 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 277 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:| const ilOrgUnitPositionDBRepository::TABLE_NAME = 'il_orgu_positions' |
Definition at line 28 of file class.ilOrgUnitPositionDBRepository.php.
|
private |
Definition at line 29 of file class.ilOrgUnitPositionDBRepository.php.