$request
$request : null|\FAA\Obj\Request
$request : null|\FAA\Obj\Request
$endpoint : \FAA\Obj\Endpoint|null
$response : \FAA\Obj\Response|null
$git_repo : array<mixed,\FAA\Git>
Endpoint(\FAA\Obj\Endpoint $endpoint = null) : \FAA\Obj\Endpoint
Get/Set endpoint
Sets or gets the widget arguments, they contain the endpoint this widget was called at
\FAA\Obj\Endpoint | $endpoint | A system request list |
A system endpoint object
Request(\FAA\Obj\Request $request = null) : \FAA\Obj\Request
The request Sets or gets the widget request object
\FAA\Obj\Request | $request | A system request object |
A system request object
Response() : \FAA\Obj\Response
Response object Gets the widget response
A system response object
GitRepo(string $path = 'data') : \FAA\Git
Git object
Gets the widget git instance, either for config or, for data repo
string | $path | The target repo, default is data |
A system git object with data folder as start point
loadTranslationList()
load translation list
will deliver a list of translations for verification, unused translations will be offered for delete, used but dirty will be shown yellow and until now not registered will be green
to be valid, a translation key must match /^[a-z-_.]+$/ to be considered as registered a translation must occur in a fat::("")::fat block
ConfigGetRaw(string $name) : \FAA\Obj\Result
Get configuration data as object from setup handler
string | $name | The name of the config file |
handleSubViewList(array $payload)
Handle the list/object loading for sub view of contents
array | $payload | The request payload parent_type string Name of the parent type to manage inside parent string/int The id of the parent content attr string The attribute name to manage type string Type of the content to assign elements array List of elements when type is __multi content int Id when a direct content edit is performed (e.g. in child contents) |
UpdateEntity(string $type, integer $epIndex, boolean $return = false)
Update a single content
Implements the update handler for single contents identified by rest end point argument Does return the values when config option says so
string | $type | The requested content type |
integer | $epIndex | Parse this parameter as id |
boolean | $return |
loadSingleEntity(string $type, integer $epIndex, string $language = null)
load a single content implements the loader for single contents identified by rest end point argument
string | $type | The requested content type |
integer | $epIndex | Parse this parameter as id |
string | $language | Language code to fetch element in |
None found |
loadEntityFormPreset(string $type)
load form preset implements the form preset loader for a certain content type
string | $type | The requested content type |
None found |
fetchEntityListFiltered(string $type)
Fetch filtered list
Implements the server side data tables processing functions Supports freetext search, paging and ordering at the moment
string | $type | The requested content type |
None found |
fetchEntityList(string $type, boolean $raw = false)
Fetch list of entries Use the direct loader method to retrieve a list obf objects
string | $type | Fetch list of elements |
boolean | $raw | Return as raw object and not plain |
None found |
fetchObject(string|integer $id, string $type, string $right = 'view') : \FAA\Obj\Generic\BaseContent|boolean|null
Get a object from storage Load a single content from storage as instance
string|integer | $id | A object id |
string | $type | A object type |
string | $right | A access level to test against |
A base content or null when not found or false when not access
None found |
testChainOfTrust(array $args, integer $offset = 3) : boolean
Test chain Check if the upstream call is valid and the user has access to this node
array | $args | The request url |
integer | $offset | The first component to check |
Chain of trust valid?
None found |
matchTranslations( $existing, $translations, string $file)
parse translations out of file data
the method takes the data from a file parses all translation setters using regex and adds the to the reference result it will add not existing ones and on top dirty entries with no plain definition
$existing | &Array a list of already registered translations |
|
$translations | &Array the result list |
|
string | $file | Absolute path to checked file |
None found |