| 
    ILIAS
    release_10 Revision v10.1-43-ga1241a92c2f
    
   | 
  
 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... | |
| getTotalRowCount (?array $filter_data, ?array $additional_parameters) | |
| getRows (Table\DataRowBuilder $row_builder, array $visible_column_ids, Range $range, Order $order, ?array $filter_data, ?array $additional_parameters) | |
Data Fields | |
| const | TABLE_NAME = 'il_orgu_ua' | 
Protected Member Functions | |
| 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 | |
| ilDBInterface | $db | 
| ilAppEventHandler | $ilAppEventHandler | 
| ilOrgUnitPositionDBRepository | $positionRepo | 
Definition at line 26 of file class.ilOrgUnitUserAssignmentDBRepository.php.
| ilOrgUnitUserAssignmentDBRepository::__construct | ( | ilDBInterface | $db, | 
| ilAppEventHandler | $handler = null  | 
        ||
| ) | 
Definition at line 33 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 147 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 165 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 80 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 55 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 214 of file class.ilOrgUnitUserAssignmentDBRepository.php.
References $res.
| ilOrgUnitUserAssignmentDBRepository::getByPosition | ( | int | $position_id | ) | 
Get all assignments for a position.
Implements OrgUnitUserAssignmentRepository.
Definition at line 198 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 231 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 182 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 303 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 319 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 332 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 45 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 356 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::getRows | ( | Table\DataRowBuilder | $row_builder, | 
| array | $visible_column_ids, | ||
| Range | $range, | ||
| Order | $order, | ||
| ?array | $filter_data, | ||
| ?array | $additional_parameters | ||
| ) | 
Definition at line 450 of file class.ilOrgUnitUserAssignmentDBRepository.php.
References ilObjUserTracking\_enabledLearningProgress(), ilObjUserTracking\_enabledUserRelatedData(), and getUserDataByOrgUnitsAndPosition().
 Here is the call 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 370 of file class.ilOrgUnitUserAssignmentDBRepository.php.
References $res, ilOrgUnitPosition\CORE_POSITION_EMPLOYEE, and ilOrgUnitPosition\CORE_POSITION_SUPERIOR.
| ilOrgUnitUserAssignmentDBRepository::getTotalRowCount | ( | ?array | $filter_data, | 
| ?array | $additional_parameters | ||
| ) | 
Definition at line 441 of file class.ilOrgUnitUserAssignmentDBRepository.php.
References getUserDataByOrgUnitsAndPosition().
 Here is the call graph for this function:
      
  | 
  protected | 
Definition at line 405 of file class.ilOrgUnitUserAssignmentDBRepository.php.
References ILIAS\UI\Implementation\Component\Table\$range, $res, and ILIAS\Data\Range\unpack().
Referenced by getRows(), and getTotalRowCount().
 Here is the call graph for this function:
 Here is the caller graph for this function:| ilOrgUnitUserAssignmentDBRepository::getUsersByOrgUnits | ( | array | $orgu_ids | ) | 
Get all users for a given set of org-units.
| int[] | $orgu_ids | 
Implements OrgUnitUserAssignmentRepository.
Definition at line 248 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 274 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 261 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 288 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 113 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 396 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 100 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 134 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 29 of file class.ilOrgUnitUserAssignmentDBRepository.php.
Referenced by __construct().
      
  | 
  protected | 
Definition at line 30 of file class.ilOrgUnitUserAssignmentDBRepository.php.
      
  | 
  protected | 
Definition at line 31 of file class.ilOrgUnitUserAssignmentDBRepository.php.
Referenced by getPositionRepo().
| const ilOrgUnitUserAssignmentDBRepository::TABLE_NAME = 'il_orgu_ua' | 
Definition at line 28 of file class.ilOrgUnitUserAssignmentDBRepository.php.