Documentation

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
throws
BasicException
throws
DependencyException
throws
NotFoundException
Return values
string

getRouteGroup()

gets route group

public static getRouteGroup() : string|null
Return values
string|null

getTemplateData()

{@inheritdoc}

public getTemplateData() : array<string|int, mixed>
Return values
array<string|int, mixed>

getTranslations()

{@inheritdoc}

public getTranslations() : array<string|int, mixed>
Tags
throws
BasicException
Return values
array<string|int, mixed>

alterTemplateName()

eventually alters template name

protected alterTemplateName(string $templateName) : string
Parameters
$templateName : string
Tags
throws
BasicException
throws
DependencyException
throws
NotFoundException
throws
PhpfastcacheSimpleCacheException
Return values
string

checkCredentials()

checks user credentials

protected checkCredentials() : bool
Tags
throws
BasicException
Return values
bool

        
On this page

Search results