\FAATemplates

Summary

Methods
Properties
Constants
NameToPath()
FetchRawTemplate()
RegisterTemplate()
ListEntries()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

NameToPath()

NameToPath(string  $name): \FAA\Obj\Result

Build path from name

Convert the name to template path Data templates may override the system templates.

Parameters

string $name

Name of the template to fetch

Returns

\FAA\Obj\Result —

A default system result object

FetchRawTemplate()

FetchRawTemplate(string  $name,boolean  $plain = false): \FAA\Obj\Result

Get template Load a template object or plain template object

Parameters

string $name

The template name

boolean $plain

Fetch plain or as raw object

Returns

\FAA\Obj\Result —

A default result object with template as payload

RegisterTemplate()

RegisterTemplate(  $payload): \FAA\Obj\Result

Register a new template

Parameters

$payload

Returns

\FAA\Obj\Result

ListEntries()

ListEntries(string  $language = null): \FAA\Obj\Result

List templates

Fetch a set of registered templates by iterating the both template folders Data templates may override the system templates.

Parameters

string $language

Resolve by language or plain

Returns

\FAA\Obj\Result —

A default system result object