|
ILIAS
trunk Revision v12.0_alpha-377-g3641b37b9db
|
Class ilOrgUnitUserAssignmentQueries. More...
Inheritance diagram for ilOrgUnitUserAssignmentQueries:
Collaboration diagram for ilOrgUnitUserAssignmentQueries:Public Member Functions | |
| getPositionsOfUserId (int $user_id) | |
| getAssignmentOrFail (int $user_id, int $position_id, int $orgu_id) | |
| getAssignmentsOfUserId (int $user_id) | |
| getAssignmentsOfUserIds (array $user_ids) | |
| getAssignmentsOfUserIdAndPosition (int $user_id, int $position_id) | |
| getUserIdsOfOrgUnit (int $orgu_id) | |
| getUserIdsOfOrgUnits (array $orgu_ids) | |
| getUserIdsOfOrgUnitsOfUsersPosition (int $position_id, int $user_id, bool $recursive=false) | |
| getUserIdsOfOrgUnitsInPosition (array $orgu_ids, int $position_id) | |
| getUserIdsOfUsersOrgUnitsInPosition (int $user_id, int $users_position_id, int $position_id, bool $recursive=false) | |
| getOrgUnitIdsofUser (int $user_id) | |
| getOrgUnitIdsOfUsersPosition (int $position_id, int $user_id, bool $recursive=false) | |
| getUserIdsOfPosition (int $position_id) | |
| getUserAssignmentsOfPosition (int $position_id) | |
| deleteAllAssignmentsOfUser (int $user_id) | |
Public Member Functions inherited from ilOrgUnitUserAssignmentDBRepository | |
| __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... | |
| 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) | |
| 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... | |
Static Public Member Functions | |
| static | getInstance () |
Static Protected Attributes | |
| static ilOrgUnitUserAssignmentQueries | $instance |
Additional Inherited Members | |
Data Fields inherited from ilOrgUnitUserAssignmentDBRepository | |
| const | TABLE_NAME = 'il_orgu_ua' |
Protected Member Functions inherited from ilOrgUnitUserAssignmentDBRepository | |
| getPositionRepo () | |
| insert (ilOrgUnitUserAssignment $assignment) | |
| update (ilOrgUnitUserAssignment $assignment) | |
| raiseEvent (string $event, ilOrgUnitUserAssignment $assignment) | |
| getUserDataByOrgUnitsAndPosition (array $orgu_ids, int $position_id, bool $count_only=false, ?Range $range=null, ?Order $order=null) | |
Protected Attributes inherited from ilOrgUnitUserAssignmentDBRepository | |
| ilDBInterface | $db |
| ilAppEventHandler | $ilAppEventHandler |
| ilOrgUnitPositionDBRepository | $positionRepo |
Class ilOrgUnitUserAssignmentQueries.
Definition at line 26 of file class.ilOrgUnitUserAssignmentQueries.php.
| ilOrgUnitUserAssignmentQueries::deleteAllAssignmentsOfUser | ( | int | $user_id | ) |
Definition at line 160 of file class.ilOrgUnitUserAssignmentQueries.php.
References ilOrgUnitUserAssignmentDBRepository\deleteByUser().
Here is the call graph for this function:| ilOrgUnitUserAssignmentQueries::getAssignmentOrFail | ( | int | $user_id, |
| int | $position_id, | ||
| int | $orgu_id | ||
| ) |
| ilException |
Definition at line 52 of file class.ilOrgUnitUserAssignmentQueries.php.
References ilOrgUnitUserAssignmentDBRepository\find().
Here is the call graph for this function:| ilOrgUnitUserAssignmentQueries::getAssignmentsOfUserId | ( | int | $user_id | ) |
Definition at line 64 of file class.ilOrgUnitUserAssignmentQueries.php.
References ilOrgUnitUserAssignmentDBRepository\getByUsers().
Here is the call graph for this function:| ilOrgUnitUserAssignmentQueries::getAssignmentsOfUserIdAndPosition | ( | int | $user_id, |
| int | $position_id | ||
| ) |
Definition at line 80 of file class.ilOrgUnitUserAssignmentQueries.php.
References ilOrgUnitUserAssignmentDBRepository\getByUserAndPosition().
Here is the call graph for this function:| ilOrgUnitUserAssignmentQueries::getAssignmentsOfUserIds | ( | array | $user_ids | ) |
Definition at line 72 of file class.ilOrgUnitUserAssignmentQueries.php.
References ilOrgUnitUserAssignmentDBRepository\getByUsers().
Here is the call graph for this function:
|
static |
Definition at line 30 of file class.ilOrgUnitUserAssignmentQueries.php.
References $DIC, and $instance.
Referenced by ilObjEmployeeTalkAccess\__construct(), ILIAS\MyStaff\ilMyStaffAccess\getIdsForUserAndOperation(), ILIAS\MyStaff\ilMyStaffAccess\getUsersForUserPerPosition(), and ilRepositorySearchGUI\listUsers().
Here is the caller graph for this function:| ilOrgUnitUserAssignmentQueries::getOrgUnitIdsofUser | ( | int | $user_id | ) |
Definition at line 128 of file class.ilOrgUnitUserAssignmentQueries.php.
References ilOrgUnitUserAssignmentDBRepository\getOrgUnitsByUser().
Here is the call graph for this function:| ilOrgUnitUserAssignmentQueries::getOrgUnitIdsOfUsersPosition | ( | int | $position_id, |
| int | $user_id, | ||
| bool | $recursive = false |
||
| ) |
Definition at line 136 of file class.ilOrgUnitUserAssignmentQueries.php.
References ilOrgUnitUserAssignmentDBRepository\getOrgUnitsByUserAndPosition().
Here is the call graph for this function:| ilOrgUnitUserAssignmentQueries::getPositionsOfUserId | ( | int | $user_id | ) |
Definition at line 43 of file class.ilOrgUnitUserAssignmentQueries.php.
References ilOrgUnitUserAssignmentDBRepository\getPositionsByUser().
Here is the call graph for this function:| ilOrgUnitUserAssignmentQueries::getUserAssignmentsOfPosition | ( | int | $position_id | ) |
Definition at line 152 of file class.ilOrgUnitUserAssignmentQueries.php.
References ilOrgUnitUserAssignmentDBRepository\getByPosition().
Here is the call graph for this function:| ilOrgUnitUserAssignmentQueries::getUserIdsOfOrgUnit | ( | int | $orgu_id | ) |
Definition at line 88 of file class.ilOrgUnitUserAssignmentQueries.php.
References ilOrgUnitUserAssignmentDBRepository\getUsersByOrgUnits().
Here is the call graph for this function:| ilOrgUnitUserAssignmentQueries::getUserIdsOfOrgUnits | ( | array | $orgu_ids | ) |
Definition at line 96 of file class.ilOrgUnitUserAssignmentQueries.php.
References ilOrgUnitUserAssignmentDBRepository\getUsersByOrgUnits().
Here is the call graph for this function:| ilOrgUnitUserAssignmentQueries::getUserIdsOfOrgUnitsInPosition | ( | array | $orgu_ids, |
| int | $position_id | ||
| ) |
Definition at line 112 of file class.ilOrgUnitUserAssignmentQueries.php.
References ilOrgUnitUserAssignmentDBRepository\getUsersByOrgUnitsAndPosition().
Here is the call graph for this function:| ilOrgUnitUserAssignmentQueries::getUserIdsOfOrgUnitsOfUsersPosition | ( | int | $position_id, |
| int | $user_id, | ||
| bool | $recursive = false |
||
| ) |
Definition at line 104 of file class.ilOrgUnitUserAssignmentQueries.php.
References ilOrgUnitUserAssignmentDBRepository\getUsersByUserAndPosition().
Here is the call graph for this function:| ilOrgUnitUserAssignmentQueries::getUserIdsOfPosition | ( | int | $position_id | ) |
Definition at line 144 of file class.ilOrgUnitUserAssignmentQueries.php.
References ilOrgUnitUserAssignmentDBRepository\getUsersByPosition().
Here is the call graph for this function:| ilOrgUnitUserAssignmentQueries::getUserIdsOfUsersOrgUnitsInPosition | ( | int | $user_id, |
| int | $users_position_id, | ||
| int | $position_id, | ||
| bool | $recursive = false |
||
| ) |
Definition at line 120 of file class.ilOrgUnitUserAssignmentQueries.php.
References ilOrgUnitUserAssignmentDBRepository\getFilteredUsersByUserAndPosition().
Here is the call graph for this function:
|
staticprotected |
Definition at line 28 of file class.ilOrgUnitUserAssignmentQueries.php.
Referenced by getInstance().