ILIAS
trunk Revision v11.0_alpha-1744-gb0451eebef4
|
Public Member Functions | |
__construct (ilDBInterface $db) | |
get (int $id, string $field) | |
create () | |
store (ilOrgUnitAuthority $authority) | |
delete (int $id) | |
deleteByPositionId (int $position_id) | |
Deletes all authorities for a position. More... | |
deleteLeftoverAuthorities (array $ids, int $position_id) | |
Deletes orphaned authorities on position save. More... | |
Data Fields | |
const | TABLE_NAME = 'il_orgu_authority' |
Protected Attributes | |
ilDBInterface | $db |
Private Member Functions | |
insert (ilOrgUnitAuthority $authority) | |
update (ilOrgUnitAuthority $authority) | |
Definition at line 21 of file class.ilOrgUnitAuthorityDBRepository.php.
ilOrgUnitAuthorityDBRepository::__construct | ( | ilDBInterface | $db | ) |
Definition at line 26 of file class.ilOrgUnitAuthorityDBRepository.php.
References $db.
ilOrgUnitAuthorityDBRepository::create | ( | ) |
Implements OrgUnitAuthorityRepository.
Definition at line 51 of file class.ilOrgUnitAuthorityDBRepository.php.
ilOrgUnitAuthorityDBRepository::delete | ( | int | $id | ) |
Implements OrgUnitAuthorityRepository.
Definition at line 101 of file class.ilOrgUnitAuthorityDBRepository.php.
ilOrgUnitAuthorityDBRepository::deleteByPositionId | ( | int | $position_id | ) |
Deletes all authorities for a position.
Implements OrgUnitAuthorityRepository.
Definition at line 112 of file class.ilOrgUnitAuthorityDBRepository.php.
ilOrgUnitAuthorityDBRepository::deleteLeftoverAuthorities | ( | array | $ids, |
int | $position_id | ||
) |
Deletes orphaned authorities on position save.
Implements OrgUnitAuthorityRepository.
Definition at line 123 of file class.ilOrgUnitAuthorityDBRepository.php.
ilOrgUnitAuthorityDBRepository::get | ( | int | $id, |
string | $field | ||
) |
Implements OrgUnitAuthorityRepository.
Definition at line 31 of file class.ilOrgUnitAuthorityDBRepository.php.
References $res, ilOrgUnitAuthority\FIELD_OVER, and ilOrgUnitAuthority\POSITION_ID.
|
private |
Definition at line 67 of file class.ilOrgUnitAuthorityDBRepository.php.
References $id, ilOrgUnitAuthority\getOver(), ilOrgUnitAuthority\getPositionId(), and ilOrgUnitAuthority\getScope().
Referenced by store().
ilOrgUnitAuthorityDBRepository::store | ( | ilOrgUnitAuthority | $authority | ) |
Implements OrgUnitAuthorityRepository.
Definition at line 56 of file class.ilOrgUnitAuthorityDBRepository.php.
References ilOrgUnitAuthority\getId(), insert(), and update().
|
private |
Definition at line 88 of file class.ilOrgUnitAuthorityDBRepository.php.
References ilOrgUnitAuthority\getId(), ilOrgUnitAuthority\getOver(), ilOrgUnitAuthority\getPositionId(), and ilOrgUnitAuthority\getScope().
Referenced by store().
|
protected |
Definition at line 24 of file class.ilOrgUnitAuthorityDBRepository.php.
Referenced by __construct().
const ilOrgUnitAuthorityDBRepository::TABLE_NAME = 'il_orgu_authority' |
Definition at line 23 of file class.ilOrgUnitAuthorityDBRepository.php.