ChildController
extends ArcheBaseController
in package
Uses
StringTranslationTrait
Description of ArcheBaseController
Table of Contents
Properties
- $config : Config
- $helper : mixed
- $model : mixed
- $ontology : Ontology
- $pdo : PDO
- $repoDb : RepoDb
- $schema : Schema
- $siteLang : mixed
Methods
- __construct() : mixed
- getChildren() : array<string|int, mixed>
- Fetch the children data
- getChildTreeData() : Response
- Child tree view API
- getNextPrevItem() : Response
- changeAPILanguage() : void
- If the API needs a different response language then we have to change the session lang params to get the desired lang string translation
- checkTmpDirs() : mixed
- getCurrentLanguage() : type
- Get the site actual language
Properties
$config
protected
Config
$config
$helper
protected
mixed
$helper
$model
protected
mixed
$model
$ontology
protected
Ontology
$ontology
$pdo
protected
PDO
$pdo
$repoDb
protected
RepoDb
$repoDb
$schema
protected
Schema
$schema
$siteLang
protected
mixed
$siteLang
Methods
__construct()
public
__construct() : mixed
getChildren()
Fetch the children data
public
getChildren(int $resId, array<string|int, mixed> $context, string $orderBy, string $orderByLang) : array<string|int, mixed>
Parameters
- $resId : int
- $context : array<string|int, mixed>
- $orderBy : string
- $orderByLang : string
Return values
array<string|int, mixed>getChildTreeData()
Child tree view API
public
getChildTreeData(string $id, array<string|int, mixed> $searchProps, string $lang) : Response
Parameters
- $id : string
- $searchProps : array<string|int, mixed>
- $lang : string
Return values
ResponsegetNextPrevItem()
public
getNextPrevItem(string $rootId, string $resourceId, string $lang) : Response
Parameters
- $rootId : string
- $resourceId : string
- $lang : string
Return values
ResponsechangeAPILanguage()
If the API needs a different response language then we have to change the session lang params to get the desired lang string translation
protected
changeAPILanguage(string $lang) : void
Parameters
- $lang : string
checkTmpDirs()
private
checkTmpDirs() : mixed
getCurrentLanguage()
Get the site actual language
private
getCurrentLanguage() : type