|
ILIAS
trunk Revision v12.0_alpha-377-g3641b37b9db
|
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 (mixed $additional_viewcontrol_data, mixed $filter_data, mixed $additional_parameters) | |
| getRows (Table\DataRowBuilder $row_builder, array $visible_column_ids, Range $range, Order $order, mixed $additional_viewcontrol_data, mixed $filter_data, mixed $additional_parameters) | |
Public Member Functions inherited from OrgUnitPositionRepository | |
| get (int|string $value, string $field) | |
| getSingle (int|string $value, string $field) | |
| getAllPositions () | |
| getArray (?string $key, ?string $field) | |
| getPositionsForOrgUnit (int $orgu_id) | |
| store (ilOrgUnitPosition $position) | |
| create () | |
| delete (int $position_id) | |
| getAuthority (?int $id) | |
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().
Here is the call graph for this function:| 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().
Here is the call graph for this function:Returns all position objects.
Definition at line 91 of file class.ilOrgUnitPositionDBRepository.php.
References ilOrgUnitAuthority\POSITION_ID, and ILIAS\GlobalScreen\Scope\Footer\Factory\withTitle().
Here is the call graph for this function:
|
protected |
Definition at line 117 of file class.ilOrgUnitPositionDBRepository.php.
References $res.
| 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 129 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 314 of file class.ilOrgUnitPositionDBRepository.php.
References $id.
|
private |
Definition at line 355 of file class.ilOrgUnitPositionDBRepository.php.
References ILIAS\Repository\lng(), ilOrgUnitAuthority\OVER_EVERYONE, ilOrgUnitAuthority\SCOPE_SAME_ORGU, and ilOrgUnitAuthority\SCOPE_SUBSEQUENT_ORGUS.
Here is the call 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 190 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, | ||
| mixed | $additional_viewcontrol_data, | ||
| mixed | $filter_data, | ||
| mixed | $additional_parameters | ||
| ) |
Definition at line 332 of file class.ilOrgUnitPositionDBRepository.php.
| 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.
| ilOrgUnitPositionDBRepository::getTotalRowCount | ( | mixed | $additional_viewcontrol_data, |
| mixed | $filter_data, | ||
| mixed | $additional_parameters | ||
| ) |
Definition at line 324 of file class.ilOrgUnitPositionDBRepository.php.
|
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().
Here is the call graph for this function:| 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(), and ilOrgUnitPosition\withAuthorities().
Here is the call graph for this function:
|
private |
Definition at line 276 of file class.ilOrgUnitPositionDBRepository.php.
References ilOrgUnitPosition\getCoreIdentifier(), ilOrgUnitPosition\getDescription(), ilOrgUnitPosition\getId(), ilOrgUnitPosition\getTitle(), and ilOrgUnitPosition\isCorePosition().
Here is the call graph for this function:| 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.