FrontendPageTrait
Frontend pages Trait
Table of Contents
Methods
- getCurrentLocale() : string
- {@inheritdoc}
- getObject() : BaseModel|null
- gets object to show
- getRouteGroup() : string|null
- gets route group
- getTemplateData() : array<string|int, mixed>
- {@inheritdoc}
- getTranslations() : array<string|int, mixed>
- {@inheritdoc}
- alterTemplateName() : string
- eventually alters template name
- check2FA() : bool
- checkCredentials() : bool
- checks user credentials
- setObject() : self
- sets object to show
Methods
getCurrentLocale()
{@inheritdoc}
public
getCurrentLocale() : string
Tags
Return values
stringgetObject()
gets object to show
public
getObject() : BaseModel|null
Return values
BaseModel|nullgetRouteGroup()
gets route group
public
static getRouteGroup() : string|null
Return values
string|nullgetTemplateData()
{@inheritdoc}
public
getTemplateData() : array<string|int, mixed>
Return values
array<string|int, mixed>getTranslations()
{@inheritdoc}
public
getTranslations() : array<string|int, mixed>
Tags
Return values
array<string|int, mixed>alterTemplateName()
eventually alters template name
protected
alterTemplateName(string $templateName) : string
Parameters
- $templateName : string
Tags
Return values
stringcheck2FA()
protected
check2FA() : bool
Return values
boolcheckCredentials()
checks user credentials
protected
checkCredentials() : bool
Tags
Return values
boolsetObject()
sets object to show
protected
setObject(BaseModel $object) : self
Parameters
- $object : BaseModel