| 
    ILIAS
    release_10 Revision v10.1-43-ga1241a92c2f
    
   | 
  
 Inheritance diagram for OrgUnitUserAssignmentRepository:
 Collaboration diagram for OrgUnitUserAssignmentRepository:Public Member Functions | |
| 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... | |
Definition at line 21 of file OrgUnitUserAssignmentRepository.php.
| OrgUnitUserAssignmentRepository::delete | ( | ilOrgUnitUserAssignment | $assignment | ) | 
Delete a single assignment Returns false if no assignment was found.
Implemented in ilOrgUnitUserAssignmentDBRepository.
| OrgUnitUserAssignmentRepository::deleteByUser | ( | int | $user_id | ) | 
Delete all assignments for a user_id Returns false if no assignments were found.
Implemented in ilOrgUnitUserAssignmentDBRepository.
| OrgUnitUserAssignmentRepository::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.
Implemented in ilOrgUnitUserAssignmentDBRepository.
| OrgUnitUserAssignmentRepository::get | ( | int | $user_id, | 
| int | $position_id, | ||
| int | $orgu_id | ||
| ) | 
Get existing user assignment or create a new one.
Implemented in ilOrgUnitUserAssignmentDBRepository.
| OrgUnitUserAssignmentRepository::getByOrgUnit | ( | int | $orgu_id | ) | 
Get all assignments for an org-unit.
Implemented in ilOrgUnitUserAssignmentDBRepository.
| OrgUnitUserAssignmentRepository::getByPosition | ( | int | $position_id | ) | 
Get all assignments for a position.
Implemented in ilOrgUnitUserAssignmentDBRepository.
| OrgUnitUserAssignmentRepository::getByUserAndPosition | ( | int | $user_id, | 
| int | $position_id | ||
| ) | 
Get assignments for a user in a dedicated position.
Implemented in ilOrgUnitUserAssignmentDBRepository.
| OrgUnitUserAssignmentRepository::getByUsers | ( | array | $user_ids | ) | 
Get assignments for one or more users.
| int[] | $user_ids | 
Implemented in ilOrgUnitUserAssignmentDBRepository.
| OrgUnitUserAssignmentRepository::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
Implemented in ilOrgUnitUserAssignmentDBRepository.
| OrgUnitUserAssignmentRepository::getOrgUnitsByUser | ( | int | $user_id | ) | 
Get all org-units a user is assigned to.
Implemented in ilOrgUnitUserAssignmentDBRepository.
| OrgUnitUserAssignmentRepository::getOrgUnitsByUserAndPosition | ( | int | $user_id, | 
| int | $position_id, | ||
| bool | $recursive = false  | 
        ||
| ) | 
Get all org-units where a user has a dedicated position.
Implemented in ilOrgUnitUserAssignmentDBRepository.
| OrgUnitUserAssignmentRepository::getPositionsByUser | ( | int | $user_id | ) | 
Get all positions a user is assigned to.
Implemented in ilOrgUnitUserAssignmentDBRepository.
| OrgUnitUserAssignmentRepository::getSuperiorsByUsers | ( | array | $user_ids | ) | 
Get all superiors of one or more users $user_id => [ $superior_ids ].
| int[] | $user_ids | 
Implemented in ilOrgUnitUserAssignmentDBRepository.
| OrgUnitUserAssignmentRepository::getUsersByOrgUnits | ( | array | $orgu_ids | ) | 
Get all users for a given set of org-units.
| int[] | $orgu_ids | 
Implemented in ilOrgUnitUserAssignmentDBRepository.
| OrgUnitUserAssignmentRepository::getUsersByOrgUnitsAndPosition | ( | array | $orgu_ids, | 
| int | $position_id | ||
| ) | 
Get all users in a specific position for a given set of org-units.
| int[] | $orgu_ids | 
Implemented in ilOrgUnitUserAssignmentDBRepository.
| OrgUnitUserAssignmentRepository::getUsersByPosition | ( | int | $position_id | ) | 
Get all users with a certain position.
Implemented in ilOrgUnitUserAssignmentDBRepository.
| OrgUnitUserAssignmentRepository::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
Implemented in ilOrgUnitUserAssignmentDBRepository.
| OrgUnitUserAssignmentRepository::store | ( | ilOrgUnitUserAssignment | $assignment | ) | 
Store assignment to db.
Implemented in ilOrgUnitUserAssignmentDBRepository.