$path
$path :array
The absolute path split from request
$handler :null|\FAA\Interfaces\ServerPlugin
Custom handler
A handler serving the request and returning a defined response object. May be set in plugin context
CurrentDomain(): \FAA\Obj\Domain
Get the current domain object.
A domain object
RegisterCustomHandler(\FAA\Interfaces\ServerPlugin $handler)
Register a system plugin or a child of with ServeRequest method
\FAA\Interfaces\ServerPlugin | $handler | A system plugin |
GetBody(boolean $parsed = true): string|array|\FAA\Obj\Result
get request body content this method provides reading access payload of the request
boolean | $parsed | When set to true, return as parsed json payload |
The payload as string or a system result object
GetInterfaceArgs(boolean|integer $index = false): array|string
get REST end point components this method rebuilds the original call and provides the components as array
boolean|integer | $index | When set > 1 function will return the element at offset |
The end point as array or a single component
ImageTag(\stdClass|\FAA\Obj\Generic\Asset $content,string $size,string $tpl = '',boolean $absolute = false): string
create an image tag map the given content to a image tag (or what the template defines)
\stdClass|\FAA\Obj\Generic\Asset | $content | A system object content or an asset object |
string | $size | A registered image type |
string | $tpl | The output template, replacements are {url} and {title} |
boolean | $absolute | Return including url |
A html content
FolderLink(string $folder,string $title,mixed $tpl = '',boolean $blank = false,string $lang = ''): string
create a folder link tag map the given content to a image tag (or what the template defines)
string | $folder | The path to link onto |
string | $title | A title for the link |
mixed | $tpl | The output template, replacements are {href} and {title} |
boolean | $blank | Set target to blank on demand |
string | $lang | The language to use for this link, default is the local language |
The parsed template
None found |
ContentLink(\FAA\Obj\Generic\Folder $folder,\stdClass $content,string $title = '',string $tpl = ''): string
create a content link tag map the given content to a a tag (or what the template defines)
\FAA\Obj\Generic\Folder | $folder | A system folder object |
\stdClass | $content | A plain content entry |
string | $title | A title for the link |
string | $tpl | The output template, replacements are {href} and {title} |
The parsed template
None found |
CanonicalLink(string $host = '',string $template = '<link rel="canonical" href="{ur' . 'l}" />',boolean $skip_self = true): string
create a canonical link tag search the linked list and return the first system link as canonical url
string | $host | The master domain of the system |
string | $template | The template to parse the found link into |
boolean | $skip_self | Check if the request context is the same, than return null |
The link element
None found |
readInboundStream(): string
read body load the post body into a string
the parsed body as string
None found |
loadLanguages()
load languages
load the system languages to a local structure this method is mostly used for caching purpose and mathing locales by key
None found |
detectDomain()
Detect current domain
Load the system domains to a local structure this method is mostly used for caching purpose and mathing domains by key
None found |
None found |