FileAccess Orion

ServerPlugin extends Plugin
in

Define a system plugin Extended version of plugin with additional predefined server request method

Tags
category

Interface function

author

Tobias Teichner webmaster@teichner.biz

since

File available since v0.126

Table of Contents

RegisterHooks()  : array<string|int, mixed>
Register system hooks
RequestOnUrlParsed()  : void
Must parse the url in a hook
ServeRequest()  : void
Serve request
SetupTemplate()  : Result
Get and set the plugin setup template form

Methods

RegisterHooks()

Register system hooks

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

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

Return values
array<string|int, mixed>

A list of hooks to register

ServeRequest()

Serve request

public ServeRequest(Request $request, Response $response) : void

Serve the request and patch the result on the given response

Parameters
$request : Request
$response : Response
Return values
void

SetupTemplate()

Get and set the plugin setup template form

public SetupTemplate([array<string|int, mixed>|null $data = null ]) : Result
Parameters
$data : array<string|int, mixed>|null = null
Return values
Result

Search results