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
$content
public
StaticPageContent|null
$content
$contents
public
Collection
$contents
$id
public
int
$id
$masterContent
public
StaticPageContent|null
$masterContent
$slug
public
string
$slug
$title
public
string
$title
$title_var
public
string
$title_var
$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']
$table
protected
mixed
$table
= 'static_pages'
$translatableAttributes
protected
mixed
$translatableAttributes
= ['title']
$with
protected
array<string|int, string>
$with
= ['contents', 'content', 'masterContent']
Methods
content()
public
content() : HasOne
Return values
HasOnecontents()
public
contents() : HasMany
Return values
HasManyentityId()
public
entityId() : int
Return values
intentityType()
public
entityType() : string
Return values
stringfactory()
public
static factory(mixed $parameters) : StaticPageFactory
Parameters
- $parameters : mixed
Return values
StaticPageFactorygetDescriptionAttribute()
public
getDescriptionAttribute() : mixed
getTitleAttribute()
public
getTitleAttribute(mixed $value) : string
Parameters
- $value : mixed
Return values
stringgetTitleVarAttribute()
public
getTitleVarAttribute() : string
Return values
stringmasterContent()
public
masterContent() : HasOne
Return values
HasOnemoduleName()
public
moduleName() : string
Return values
stringtoLink()
public
toLink() : string|null
Return values
string|nulltoUrl()
public
toUrl() : string|null
Return values
string|nullnewFactory()
protected
static newFactory() : StaticPageFactory