\App\Base\Abstracts\ModelsFrontendModelWithChildren

A model that will be shown on frontend with children

Summary

Methods
Properties
Constants
getChildren()
getRewrite()
getFrontendUrl()
postPersist()
preRemove()
getTranslations()
getPageTitle()
getRewritePrefix()
getWebsite()
getOwner()
No public properties found
No constants found
No protected methods found
$children
$rewriteObj
N/A
No private methods found
No private properties found
N/A

Properties

$children

$children :array

Type

array—children

Methods

getChildren()

getChildren(string|null  $locale = null,boolean  $reset = false): array

gets children

Parameters

string|null $locale
boolean $reset

Returns

array

getRewrite()

getRewrite(): \App\Site\Models\Rewrite

gets object rewrite model

Throws

\Exception

Returns

\App\Site\Models\Rewrite

getFrontendUrl()

getFrontendUrl(): string

gets frontend url for object

Throws

\Exception

Returns

string

postPersist()

postPersist(): self

post persist hook

Throws

\Exception

Returns

self

preRemove()

preRemove(): self

pre remove hook

Throws

\Exception

Returns

self

getTranslations()

getTranslations(): array

returns object translations urls

Throws

\Exception

Returns

array

getPageTitle()

getPageTitle(): string

return page title

Returns

string

getRewritePrefix()

getRewritePrefix(): string

gets rewrite prefix

Returns

string