Heratio Framework API Reference

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
int

getPendingForApprover()

Get pending requests for a specific approver

public static getPendingForApprover(int $userId) : Collection
Parameters
$userId : int
Return values
Collection

isApprover()

Check if a user is an approver for access requests

public static isApprover(int $userId) : bool
Parameters
$userId : int
Return values
bool

userHasPendingRequests()

Check if user has any pending requests

public static userHasPendingRequests(int $userId) : bool
Parameters
$userId : int
Return values
bool

        
On this page

Search results