FileAccess Orion

Handler extends SecuredServerPlugin
in package

Implement captcha handler

This class provides interfaces for captcha handling

Tags
category

Plugin

author

Tobias Teichner webmaster@teichner.biz

since

File available since v0.137

Table of Contents

$config  : stdClass|null
Buffer for configuration
$defaultPermissions  : array<string|int, mixed>
The default permission set
$dir  : string
The implementation directory
$name  : string
Name of the plugin
__construct()  : mixed
Handler constructor.
GetAccessList()  : array<string|int, mixed>
GetCaptcha()  : void
Get the captcha and map in on the response object
Name()  : string
OnCleanupGarbage()  : mixed
OnRegisterWidgetIncludes()  : void
RegisterHooks()  : array<string|int, mixed>
register system hooks Register a set of handler functions to be called in certain positions.
RequestOnUrlParsed()  : mixed
ServeRequest()  : mixed
Serve request Serve the request and return appropriate result.
settings()  : Result|object
Get/Set the settings
SetupTemplate()  : mixed
handleConfig()  : void
Handle the context requests
hasAccess()  : bool
Check if endpoint is accessible for this user group
isInContext()  : bool
Is in certain context?
setupAttributes()  : void
Set up the permission attribute table
handleConfigPreset()  : mixed
Handle the context requests

Properties

$defaultPermissions

The default permission set

protected array<string|int, mixed> $defaultPermissions = [['endpoint' => 'config', 'root' => true, 'admin' => true]]

Methods

__construct()

Handler constructor.

public __construct() : mixed
Return values
mixed

GetAccessList()

public GetAccessList(User $user) : array<string|int, mixed>
Parameters
$user : User
Return values
array<string|int, mixed>

GetCaptcha()

Get the captcha and map in on the response object

public GetCaptcha(Response $response[, bool $with_code = false ]) : void
Parameters
$response : Response
$with_code : bool = false
Return values
void

OnRegisterWidgetIncludes()

public OnRegisterWidgetIncludes( $param) : void
Parameters
$param :

HookArgument

Return values
void

RegisterHooks()

register system hooks Register a set of handler functions to be called in certain positions.

public RegisterHooks() : array<string|int, mixed>
Return values
array<string|int, mixed>

A list of hooks to register

ServeRequest()

Serve request Serve the request and return appropriate result.

public ServeRequest(Request $request, Response $response) : mixed
Parameters
$request : Request

The http request object

$response : Response
Return values
mixed

settings()

Get/Set the settings

public settings([null|object $new = null ]) : Result|object

This method is cached per instance

Parameters
$new : null|object = null

New set of settings to store

Return values
Result|object

SetupTemplate()

public SetupTemplate([mixed $data = null ]) : mixed
Parameters
$data : mixed = null
Tags
inheritDoc
Return values
mixed

hasAccess()

Check if endpoint is accessible for this user group

protected hasAccess(string|array<string|int, string> $right[, Response|null $response = null ][, User|null $user = null ]) : bool
Parameters
$right : string|array<string|int, string>
$response : Response|null = null
$user : User|null = null
Return values
bool

isInContext()

Is in certain context?

protected isInContext(HookArgument $param, string $type, string $widget) : bool
Parameters
$param : HookArgument

The hook argument

$type : string

The type can be scss, css and js to search in widgets or _ to search in global includes

$widget : string

The widget to search for

Return values
bool

setupAttributes()

Set up the permission attribute table

protected setupAttributes( &$attributes,  $l) : void
Parameters
$attributes :

array List of attributes

$l :

string The language

Return values
void

handleConfigPreset()

Handle the context requests

private handleConfigPreset(Request $request, Response $response) : mixed
Parameters
$request : Request
$response : Response
Return values
mixed

Search results