\Hubleto\Erp\Controllers\ApiController
| Parent class | \Hubleto\Erp\Controller |
Properties
☍ returnType
public int $returnType
☍ permittedForAllUsers
public bool $permittedForAllUsers
☍ disableLogUsage
public bool $disableLogUsage
Methods
ƒ response
public response(): array
ƒ renderJson
public renderJson(): array
Inherited methods
ƒ __construct
public __construct(): mixed
ƒ activeUserHasPermission
public activeUserHasPermission(): bool
ƒ validateInputs
Executed after the init() phase.
public validateInputs(): bool
Validates inputs used for the TWIG template.
return bool True if inputs are valid, otherwise false.
ƒ init
Executed at the end of the constructor.
public init(): void
Throws
Should throw an exception on error.
ƒ prepareView
Used to set parametere for the view renderer.
public prepareView(): void
ƒ setView
public setView(string $view): void
Parameters
| Parameter | Type | Description |
|---|---|---|
$view |
string |
ƒ getBreadcrumbs
public getBreadcrumbs(): array
