|
ILIAS
release_9 Revision v9.13-25-g2c18ec4c24f
|
Inheritance diagram for ilOrgUnitUserAssignmentDBRepository:
Collaboration diagram for ilOrgUnitUserAssignmentDBRepository:Public Member Functions | |
| __construct (ilDBInterface $db, ilAppEventHandler $handler=null) | |
| get (int $user_id, int $position_id, int $orgu_id) | |
| Get existing user assignment or create a new one. More... | |
| find (int $user_id, int $position_id, int $orgu_id) | |
| Find assignment for user, position and org-unit Does not create new assigment, returns null if no assignment exists. More... | |
| store (ilOrgUnitUserAssignment $assignment) | |
| Store assignment to db. More... | |
| delete (ilOrgUnitUserAssignment $assignment) | |
| Delete a single assignment Returns false if no assignment was found. More... | |
| deleteByUser (int $user_id) | |
| Delete all assignments for a user_id Returns false if no assignments were found. More... | |
| getByUsers (array $user_ids) | |
| Get assignments for one or more users. More... | |
| getByPosition (int $position_id) | |
| Get all assignments for a position. More... | |
| getByOrgUnit (int $orgu_id) | |
| Get all assignments for an org-unit. More... | |
| getByUserAndPosition (int $user_id, int $position_id) | |
| Get assignments for a user in a dedicated position. More... | |
| getUsersByOrgUnits (array $orgu_ids) | |
| Get all users for a given set of org-units. More... | |
| getUsersByPosition (int $position_id) | |
| Get all users with a certain position. More... | |
| getUsersByOrgUnitsAndPosition (array $orgu_ids, int $position_id) | |
| Get all users in a specific position for a given set of org-units. More... | |
| getUsersByUserAndPosition (int $user_id, int $position_id, bool $recursive=false) | |
| Get all users from org-units where the user has a certain position i.e. More... | |
| getFilteredUsersByUserAndPosition (int $user_id, int $position_id, int $position_filter_id, bool $recursive=false) | |
| Get all users with position $position_filter_id from those org-units, where the user has position $position_id i.e. More... | |
| getOrgUnitsByUser (int $user_id) | |
| Get all org-units a user is assigned to. More... | |
| getOrgUnitsByUserAndPosition (int $user_id, int $position_id, bool $recursive=false) | |
| Get all org-units where a user has a dedicated position. More... | |
| getPositionsByUser (int $user_id) | |
| Get all positions a user is assigned to. More... | |
| getSuperiorsByUsers (array $user_ids) | |
| Get all superiors of one or more users $user_id => [ $superior_ids ]. More... | |
Data Fields | |
| const | TABLE_NAME = 'il_orgu_ua' |
Protected Member Functions | |
| getPositionRepo () | |
| insert (ilOrgUnitUserAssignment $assignment) | |
| update (ilOrgUnitUserAssignment $assignment) | |
| raiseEvent (string $event, ilOrgUnitUserAssignment $assignment) | |
Protected Attributes | |
| ilDBInterface | $db |
| ilAppEventHandler | $ilAppEventHandler |
| ilOrgUnitPositionDBRepository | $positionRepo |
Definition at line 21 of file class.ilOrgUnitUserAssignmentDBRepository.php.
| ilOrgUnitUserAssignmentDBRepository::__construct | ( | ilDBInterface | $db, |
| ilAppEventHandler | $handler = null |
||
| ) |
Definition at line 28 of file class.ilOrgUnitUserAssignmentDBRepository.php.
References $db, $DIC, and $handler.
| ilOrgUnitUserAssignmentDBRepository::delete | ( | ilOrgUnitUserAssignment | $assignment | ) |
Delete a single assignment Returns false if no assignment was found.
Implements OrgUnitUserAssignmentRepository.
Definition at line 142 of file class.ilOrgUnitUserAssignmentDBRepository.php.
References raiseEvent().
Here is the call graph for this function:| ilOrgUnitUserAssignmentDBRepository::deleteByUser | ( | int | $user_id | ) |
Delete all assignments for a user_id Returns false if no assignments were found.
Implements OrgUnitUserAssignmentRepository.
Definition at line 160 of file class.ilOrgUnitUserAssignmentDBRepository.php.
Referenced by ilOrgUnitUserAssignmentQueries\deleteAllAssignmentsOfUser().
Here is the caller graph for this function:| ilOrgUnitUserAssignmentDBRepository::find | ( | int | $user_id, |
| int | $position_id, | ||
| int | $orgu_id | ||
| ) |
Find assignment for user, position and org-unit Does not create new assigment, returns null if no assignment exists.
Implements OrgUnitUserAssignmentRepository.
Definition at line 75 of file class.ilOrgUnitUserAssignmentDBRepository.php.
References $res.
Referenced by ilOrgUnitUserAssignmentQueries\getAssignmentOrFail().
Here is the caller graph for this function:| ilOrgUnitUserAssignmentDBRepository::get | ( | int | $user_id, |
| int | $position_id, | ||
| int | $orgu_id | ||
| ) |
Get existing user assignment or create a new one.
Implements OrgUnitUserAssignmentRepository.
Definition at line 50 of file class.ilOrgUnitUserAssignmentDBRepository.php.
Here is the call graph for this function:| ilOrgUnitUserAssignmentDBRepository::getByOrgUnit | ( | int | $orgu_id | ) |
Get all assignments for an org-unit.
Implements OrgUnitUserAssignmentRepository.
Definition at line 209 of file class.ilOrgUnitUserAssignmentDBRepository.php.
References $res.
| ilOrgUnitUserAssignmentDBRepository::getByPosition | ( | int | $position_id | ) |
Get all assignments for a position.
Implements OrgUnitUserAssignmentRepository.
Definition at line 193 of file class.ilOrgUnitUserAssignmentDBRepository.php.
References $res.
Referenced by ilOrgUnitUserAssignmentQueries\getUserAssignmentsOfPosition().
Here is the caller graph for this function:| ilOrgUnitUserAssignmentDBRepository::getByUserAndPosition | ( | int | $user_id, |
| int | $position_id | ||
| ) |
Get assignments for a user in a dedicated position.
Implements OrgUnitUserAssignmentRepository.
Definition at line 226 of file class.ilOrgUnitUserAssignmentDBRepository.php.
References $res.
Referenced by ilOrgUnitUserAssignmentQueries\getAssignmentsOfUserIdAndPosition().
Here is the caller graph for this function:| ilOrgUnitUserAssignmentDBRepository::getByUsers | ( | array | $user_ids | ) |
Get assignments for one or more users.
| int[] | $user_ids |
Implements OrgUnitUserAssignmentRepository.
Definition at line 177 of file class.ilOrgUnitUserAssignmentDBRepository.php.
References $res.
Referenced by ilOrgUnitUserAssignmentQueries\getAssignmentsOfUserId(), and ilOrgUnitUserAssignmentQueries\getAssignmentsOfUserIds().
Here is the caller graph for this function:| ilOrgUnitUserAssignmentDBRepository::getFilteredUsersByUserAndPosition | ( | int | $user_id, |
| int | $position_id, | ||
| int | $position_filter_id, | ||
| bool | $recursive = false |
||
| ) |
Get all users with position $position_filter_id from those org-units, where the user has position $position_id i.e.
all employees of all org-units where the user is a superior
Implements OrgUnitUserAssignmentRepository.
Definition at line 298 of file class.ilOrgUnitUserAssignmentDBRepository.php.
References $res, getOrgUnitsByUserAndPosition(), and ILIAS\Repository\int().
Referenced by ilOrgUnitUserAssignmentQueries\getUserIdsOfUsersOrgUnitsInPosition().
Here is the call graph for this function:
Here is the caller graph for this function:| ilOrgUnitUserAssignmentDBRepository::getOrgUnitsByUser | ( | int | $user_id | ) |
Get all org-units a user is assigned to.
Implements OrgUnitUserAssignmentRepository.
Definition at line 314 of file class.ilOrgUnitUserAssignmentDBRepository.php.
References $res, and ILIAS\Repository\int().
Referenced by ilOrgUnitUserAssignmentQueries\getOrgUnitIdsofUser().
Here is the call graph for this function:
Here is the caller graph for this function:| ilOrgUnitUserAssignmentDBRepository::getOrgUnitsByUserAndPosition | ( | int | $user_id, |
| int | $position_id, | ||
| bool | $recursive = false |
||
| ) |
Get all org-units where a user has a dedicated position.
Implements OrgUnitUserAssignmentRepository.
Definition at line 327 of file class.ilOrgUnitUserAssignmentDBRepository.php.
References $res, ilObjOrgUnitTree\_getInstance(), and ILIAS\Repository\int().
Referenced by getFilteredUsersByUserAndPosition(), ilOrgUnitUserAssignmentQueries\getOrgUnitIdsOfUsersPosition(), and getUsersByUserAndPosition().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 40 of file class.ilOrgUnitUserAssignmentDBRepository.php.
References $dic, $positionRepo, and ilOrgUnitLocalDIC\dic().
Referenced by getPositionsByUser().
Here is the call graph for this function:
Here is the caller graph for this function:| ilOrgUnitUserAssignmentDBRepository::getPositionsByUser | ( | int | $user_id | ) |
Get all positions a user is assigned to.
Implements OrgUnitUserAssignmentRepository.
Definition at line 351 of file class.ilOrgUnitUserAssignmentDBRepository.php.
References $res, and getPositionRepo().
Referenced by ilOrgUnitUserAssignmentQueries\getPositionsOfUserId().
Here is the call graph for this function:
Here is the caller graph for this function:| ilOrgUnitUserAssignmentDBRepository::getSuperiorsByUsers | ( | array | $user_ids | ) |
Get all superiors of one or more users $user_id => [ $superior_ids ].
| int[] | $user_ids |
Implements OrgUnitUserAssignmentRepository.
Definition at line 365 of file class.ilOrgUnitUserAssignmentDBRepository.php.
References $res, ilOrgUnitPosition\CORE_POSITION_EMPLOYEE, and ilOrgUnitPosition\CORE_POSITION_SUPERIOR.
| ilOrgUnitUserAssignmentDBRepository::getUsersByOrgUnits | ( | array | $orgu_ids | ) |
Get all users for a given set of org-units.
| int[] | $orgu_ids |
Implements OrgUnitUserAssignmentRepository.
Definition at line 243 of file class.ilOrgUnitUserAssignmentDBRepository.php.
References $res, and ILIAS\Repository\int().
Referenced by ilOrgUnitUserAssignmentQueries\getUserIdsOfOrgUnit(), and ilOrgUnitUserAssignmentQueries\getUserIdsOfOrgUnits().
Here is the call graph for this function:
Here is the caller graph for this function:| ilOrgUnitUserAssignmentDBRepository::getUsersByOrgUnitsAndPosition | ( | array | $orgu_ids, |
| int | $position_id | ||
| ) |
Get all users in a specific position for a given set of org-units.
| int[] | $orgu_ids |
Implements OrgUnitUserAssignmentRepository.
Definition at line 269 of file class.ilOrgUnitUserAssignmentDBRepository.php.
References $res, and ILIAS\Repository\int().
Referenced by ilOrgUnitUserAssignmentQueries\getUserIdsOfOrgUnitsInPosition().
Here is the call graph for this function:
Here is the caller graph for this function:| ilOrgUnitUserAssignmentDBRepository::getUsersByPosition | ( | int | $position_id | ) |
Get all users with a certain position.
Implements OrgUnitUserAssignmentRepository.
Definition at line 256 of file class.ilOrgUnitUserAssignmentDBRepository.php.
References $res, and ILIAS\Repository\int().
Referenced by ilOrgUnitUserAssignmentQueries\getUserIdsOfPosition().
Here is the call graph for this function:
Here is the caller graph for this function:| ilOrgUnitUserAssignmentDBRepository::getUsersByUserAndPosition | ( | int | $user_id, |
| int | $position_id, | ||
| bool | $recursive = false |
||
| ) |
Get all users from org-units where the user has a certain position i.e.
all users from all org-units where the user is an employee
Implements OrgUnitUserAssignmentRepository.
Definition at line 283 of file class.ilOrgUnitUserAssignmentDBRepository.php.
References $res, getOrgUnitsByUserAndPosition(), and ILIAS\Repository\int().
Referenced by ilOrgUnitUserAssignmentQueries\getUserIdsOfOrgUnitsOfUsersPosition().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 108 of file class.ilOrgUnitUserAssignmentDBRepository.php.
References $id, ilOrgUnitUserAssignment\getOrguId(), ilOrgUnitUserAssignment\getPositionId(), and ilOrgUnitUserAssignment\getUserId().
Referenced by store().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 391 of file class.ilOrgUnitUserAssignmentDBRepository.php.
References ilOrgUnitUserAssignment\getOrguId(), ilOrgUnitUserAssignment\getPositionId(), ilOrgUnitUserAssignment\getUserId(), and ilAppEventHandler\raise().
Referenced by delete(), and store().
Here is the call graph for this function:
Here is the caller graph for this function:| ilOrgUnitUserAssignmentDBRepository::store | ( | ilOrgUnitUserAssignment | $assignment | ) |
Store assignment to db.
Implements OrgUnitUserAssignmentRepository.
Definition at line 95 of file class.ilOrgUnitUserAssignmentDBRepository.php.
References ilOrgUnitUserAssignment\getId(), insert(), raiseEvent(), and update().
Referenced by get().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 129 of file class.ilOrgUnitUserAssignmentDBRepository.php.
References ilOrgUnitUserAssignment\getId(), ilOrgUnitUserAssignment\getOrguId(), ilOrgUnitUserAssignment\getPositionId(), and ilOrgUnitUserAssignment\getUserId().
Referenced by store().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 24 of file class.ilOrgUnitUserAssignmentDBRepository.php.
Referenced by __construct().
|
protected |
Definition at line 25 of file class.ilOrgUnitUserAssignmentDBRepository.php.
|
protected |
Definition at line 26 of file class.ilOrgUnitUserAssignmentDBRepository.php.
Referenced by getPositionRepo().
| const ilOrgUnitUserAssignmentDBRepository::TABLE_NAME = 'il_orgu_ua' |
Definition at line 23 of file class.ilOrgUnitUserAssignmentDBRepository.php.