IpRange
in package
implements
PermissionProviderInterface
IpRange permission provider for VuFind.
Tags
Interfaces, Classes, Traits and Enums
- PermissionProviderInterface
- Permission provider interface
Table of Contents
- $ipAddressUtils : IpAddressUtils
- IpAddressUtils object
- $request : Request
- Request object
- $userIpReader : UserIpReader
- User IP address reader
- __construct() : mixed
- Constructor
- getPermissions() : array<string|int, mixed>
- Return an array of roles which may be granted the permission based on the options.
Properties
$ipAddressUtils
IpAddressUtils object
protected
IpAddressUtils
$ipAddressUtils
$request
Request object
protected
Request
$request
$userIpReader
User IP address reader
protected
UserIpReader
$userIpReader
Methods
__construct()
Constructor
public
__construct(RequestInterface $request, IpAddressUtils $ipUtils, UserIpReader $userIpReader) : mixed
Parameters
- $request : RequestInterface
-
Request object
- $ipUtils : IpAddressUtils
-
IpAddressUtils object
- $userIpReader : UserIpReader
-
User IP address reader
Return values
mixed —getPermissions()
Return an array of roles which may be granted the permission based on the options.
public
getPermissions(mixed $options) : array<string|int, mixed>
Parameters
- $options : mixed
-
Options provided from configuration.