ILIAS
trunk Revision v11.0_alpha-1723-g8e69f309bab
|
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) | |
![]() | |
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 25 of file class.ilOrgUnitPositionDBRepository.php.
ilOrgUnitPositionDBRepository::__construct | ( | protected ilDBInterface | $db, |
protected ilOrgUnitAuthorityDBRepository | $authorityRepo, | ||
protected ilOrgUnitUserAssignmentDBRepository | $assignmentRepo, | ||
protected ilLanguage | $lng | ||
) |
Definition at line 30 of file class.ilOrgUnitPositionDBRepository.php.
References ILIAS\Repository\lng().
ilOrgUnitPositionDBRepository::create | ( | ) |
Implements OrgUnitPositionRepository.
Definition at line 213 of file class.ilOrgUnitPositionDBRepository.php.
ilOrgUnitPositionDBRepository::delete | ( | int | $position_id | ) |
Deletes position and authorities/user assignments attached to it.
Implements OrgUnitPositionRepository.
Definition at line 293 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 45 of file class.ilOrgUnitPositionDBRepository.php.
References $res, ilOrgUnitAuthority\POSITION_ID, and ILIAS\GlobalScreen\Scope\Footer\Factory\withTitle().
Returns all position objects.
Definition at line 91 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().
|
protected |
Definition at line 117 of file class.ilOrgUnitPositionDBRepository.php.
References $res.
Referenced by getTotalRowCount().
Returns position data as an array, e.g.
for using ids in forms
Exception |
Implements OrgUnitPositionRepository.
Definition at line 129 of file class.ilOrgUnitPositionDBRepository.php.
References $res, ILIAS\Repository\int(), and null.
ilOrgUnitPositionDBRepository::getAuthority | ( | ?int | $id | ) |
Gets or creates an authority object, as the authority repo is encapsulated into this repo.
Implements OrgUnitPositionRepository.
Definition at line 314 of file class.ilOrgUnitPositionDBRepository.php.
References null.
|
private |
Definition at line 353 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().
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 190 of file class.ilOrgUnitPositionDBRepository.php.
References $res, ilOrgUnitAuthority\POSITION_ID, and ILIAS\GlobalScreen\Scope\Footer\Factory\withTitle().
ilOrgUnitPositionDBRepository::getRows | ( | Table\DataRowBuilder | $row_builder, |
array | $visible_column_ids, | ||
Range | $range, | ||
Order | $order, | ||
?array | $filter_data, | ||
?array | $additional_parameters | ||
) |
Definition at line 331 of file class.ilOrgUnitPositionDBRepository.php.
References OrgUnitPositionRepository\getAllPositions(), and getAuthorityDescription().
ilOrgUnitPositionDBRepository::getSingle | ( | int|string | $value, |
string | $field | ||
) |
Get a single position from a filtered query (see get())
Implements OrgUnitPositionRepository.
Definition at line 76 of file class.ilOrgUnitPositionDBRepository.php.
References null.
ilOrgUnitPositionDBRepository::getTotalRowCount | ( | ?array | $filter_data, |
?array | $additional_parameters | ||
) |
Definition at line 324 of file class.ilOrgUnitPositionDBRepository.php.
References getAllPositionsCount().
|
private |
Definition at line 252 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().
ilOrgUnitPositionDBRepository::store | ( | ilOrgUnitPosition | $position | ) |
Saves position and its authorities.
Implements OrgUnitPositionRepository.
Definition at line 221 of file class.ilOrgUnitPositionDBRepository.php.
References ilOrgUnitPosition\getAuthorities(), ilOrgUnitPosition\getId(), insert(), update(), and ilOrgUnitPosition\withAuthorities().
|
private |
Definition at line 276 of file class.ilOrgUnitPositionDBRepository.php.
References ilOrgUnitPosition\getCoreIdentifier(), ilOrgUnitPosition\getDescription(), ilOrgUnitPosition\getId(), ilOrgUnitPosition\getTitle(), and ilOrgUnitPosition\isCorePosition().
Referenced by store().
const ilOrgUnitPositionDBRepository::TABLE_NAME = 'il_orgu_positions' |
Definition at line 27 of file class.ilOrgUnitPositionDBRepository.php.
|
private |
Definition at line 28 of file class.ilOrgUnitPositionDBRepository.php.