ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
ilOrgUnitPositionAccessHandler Interface Reference

Interface ilOrgUnitPositionAccessHandler. More...

+ Inheritance diagram for ilOrgUnitPositionAccessHandler:
+ Collaboration diagram for ilOrgUnitPositionAccessHandler:

Public Member Functions

 filterUserIdsForCurrentUsersPositionsAndPermission (array $user_ids, $permission)
 
 filterUserIdsForUsersPositionsAndPermission (array $user_ids, $for_user_id, $permission)
 
 isCurrentUserBasedOnPositionsAllowedTo ($permission, array $on_user_ids)
 
 isUserBasedOnPositionsAllowedTo ($which_user_id, $permission, array $on_user_ids)
 
 checkPositionAccess ($pos_perm, $ref_id)
 
 hasCurrentUserAnyPositionAccess ($ref_id)
 
 filterUserIdsByPositionOfCurrentUser ($pos_perm, $ref_id, array $user_ids)
 
 filterUserIdsByPositionOfUser ($user_id, $pos_perm, $ref_id, array $user_ids)
 

Detailed Description

Interface ilOrgUnitPositionAccessHandler.

Provides access checks due to a users OrgUnit-Positions

Author
Fabian Schmid fs@st.nosp@m.uder.nosp@m.-raim.nosp@m.ann..nosp@m.ch

Definition at line 10 of file class.ilOrgUnitPositionAccessHandler.php.

Member Function Documentation

◆ checkPositionAccess()

ilOrgUnitPositionAccessHandler::checkPositionAccess (   $pos_perm,
  $ref_id 
)
Parameters
string$pos_perm
int$ref_idReference-ID of the desired Object in the tree
See also
getAvailablePositionRelatedPermissions for available permissions
Returns
bool

Implemented in ilAccess, and ilOrgUnitPositionAccess.

◆ filterUserIdsByPositionOfCurrentUser()

ilOrgUnitPositionAccessHandler::filterUserIdsByPositionOfCurrentUser (   $pos_perm,
  $ref_id,
array  $user_ids 
)
Parameters
string$pos_perm
int$ref_id
int[]$user_ids
See also
getAvailablePositionRelatedPermissions for available permissions
Returns
int[]

Implemented in ilAccess, and ilOrgUnitPositionAccess.

◆ filterUserIdsByPositionOfUser()

ilOrgUnitPositionAccessHandler::filterUserIdsByPositionOfUser (   $user_id,
  $pos_perm,
  $ref_id,
array  $user_ids 
)
Parameters
int$user_id
string$pos_perm
int$ref_id
int[]$user_ids
See also
getAvailablePositionRelatedPermissions for available permissions
Returns
int[]

Implemented in ilAccess, and ilOrgUnitPositionAccess.

◆ filterUserIdsForCurrentUsersPositionsAndPermission()

ilOrgUnitPositionAccessHandler::filterUserIdsForCurrentUsersPositionsAndPermission ( array  $user_ids,
  $permission 
)
Parameters
int[]$user_ids List of ILIAS-User-IDs which shall be filtered
string$permission
See also
getAvailablePositionRelatedPermissions for available permissions
Exceptions

Implemented in ilAccess, and ilOrgUnitPositionAccess.

◆ filterUserIdsForUsersPositionsAndPermission()

ilOrgUnitPositionAccessHandler::filterUserIdsForUsersPositionsAndPermission ( array  $user_ids,
  $for_user_id,
  $permission 
)
Parameters
int[]$user_ids List of ILIAS-User-IDs which shall be filtered
int$for_user_id
string$permission
See also
getAvailablePositionRelatedPermissions for available permissions
Exceptions

Implemented in ilAccess, and ilOrgUnitPositionAccess.

◆ hasCurrentUserAnyPositionAccess()

ilOrgUnitPositionAccessHandler::hasCurrentUserAnyPositionAccess (   $ref_id)
Parameters
int$ref_id
Returns
bool

Implemented in ilAccess, and ilOrgUnitPositionAccess.

◆ isCurrentUserBasedOnPositionsAllowedTo()

ilOrgUnitPositionAccessHandler::isCurrentUserBasedOnPositionsAllowedTo (   $permission,
array  $on_user_ids 
)
Parameters
string$permission
int[]$on_user_ids List of ILIAS-User-IDs
See also
getAvailablePositionRelatedPermissions for available permissions
Returns
bool

Implemented in ilAccess, and ilOrgUnitPositionAccess.

◆ isUserBasedOnPositionsAllowedTo()

ilOrgUnitPositionAccessHandler::isUserBasedOnPositionsAllowedTo (   $which_user_id,
  $permission,
array  $on_user_ids 
)
Parameters
int$which_user_idPermission check for this ILIAS-User-ID
string$permission
int[]$on_user_ids List of ILIAS-User-IDs
See also
getAvailablePositionRelatedPermissions for available permissions
Returns
bool

Implemented in ilAccess, and ilOrgUnitPositionAccess.


The documentation for this interface was generated from the following file: