MetaFox

StaticPage extends Model
in package
implements Entity Uses HasEntity, HasFactory, HasTranslatableAttributes

Class StaticPage.

Table of Contents

Interfaces

Entity
Interface Entity.

Constants

ENTITY_TYPE  = 'static_page'

Properties

$content  : StaticPageContent|null
$contents  : Collection
$id  : int
$masterContent  : StaticPageContent|null
$slug  : string
$title  : string
$title_var  : string
$fillable  : array<string|int, string>
$table  : mixed
$translatableAttributes  : mixed
$with  : array<string|int, string>

Methods

content()  : HasOne
contents()  : HasMany
entityId()  : int
entityType()  : string
factory()  : StaticPageFactory
getDescriptionAttribute()  : mixed
getTitleAttribute()  : string
getTitleVarAttribute()  : string
masterContent()  : HasOne
moduleName()  : string
toLink()  : string|null
toUrl()  : string|null
newFactory()  : StaticPageFactory

Constants

ENTITY_TYPE

public mixed ENTITY_TYPE = 'static_page'

Properties

$fillable

protected array<string|int, string> $fillable = ['user_id', 'user_type', 'owner_id', 'owner_type', 'module_id', 'is_active', 'is_phrase', 'parse_php', 'has_bookmark', 'is_phrase', 'full_size', 'title', 'slug', 'disallow_access', 'total_view', 'total_comment', 'total_share', 'total_tag', 'total_attachment', 'created_at', 'updated_at']

$translatableAttributes

protected mixed $translatableAttributes = ['title']

$with

protected array<string|int, string> $with = ['contents', 'content', 'masterContent']

Methods

content()

public content() : HasOne
Return values
HasOne

contents()

public contents() : HasMany
Return values
HasMany

entityId()

public entityId() : int
Return values
int

entityType()

public entityType() : string
Return values
string

factory()

public static factory(mixed $parameters) : StaticPageFactory
Parameters
$parameters : mixed
Return values
StaticPageFactory

getDescriptionAttribute()

public getDescriptionAttribute() : mixed

getTitleAttribute()

public getTitleAttribute(mixed $value) : string
Parameters
$value : mixed
Return values
string

getTitleVarAttribute()

public getTitleVarAttribute() : string
Return values
string

masterContent()

public masterContent() : HasOne
Return values
HasOne

moduleName()

public moduleName() : string
Return values
string
public toLink() : string|null
Return values
string|null

toUrl()

public toUrl() : string|null
Return values
string|null

newFactory()

protected static newFactory() : StaticPageFactory
Return values
StaticPageFactory

        
On this page

Search results