AccessRequestService
in package
Access Request Service
Handles access request operations including approver checks
Table of Contents
Methods
- getPendingCount() : int
- Get count of pending access requests
- getPendingForApprover() : Collection
- Get pending requests for a specific approver
- isApprover() : bool
- Check if a user is an approver for access requests
- userHasPendingRequests() : bool
- Check if user has any pending requests
Methods
getPendingCount()
Get count of pending access requests
public
static getPendingCount() : int
Return values
intgetPendingForApprover()
Get pending requests for a specific approver
public
static getPendingForApprover(int $userId) : Collection
Parameters
- $userId : int
Return values
CollectionisApprover()
Check if a user is an approver for access requests
public
static isApprover(int $userId) : bool
Parameters
- $userId : int
Return values
booluserHasPendingRequests()
Check if user has any pending requests
public
static userHasPendingRequests(int $userId) : bool
Parameters
- $userId : int