Cms\Classes\Layout

Overview

Layout template class

Extends
Implements
  • ArrayAccess
  • Illuminate\Contracts\Support\Arrayable
  • Illuminate\Contracts\Support\Jsonable
  • JsonSerializable
  • Stringable
  • Cms\Contracts\CmsObject

Public Properties

There are no public properties in the class.

Show inherited public properties

Inherited Public Properties

Protected Properties

protected string $dirName

The container name associated with the model, eg: pages.

protected array $fillable

The attributes that are mass assignable.

protected array $parsable

parsable attributes support using parsed variables.

protected array $parsableAttributes

parsableAttributes contains the translated attributes

Show inherited protected properties

Inherited Protected Properties


Public Methods

public __get()

public __get($key): void

__get with parsable attribute override.

public addParsable()

public addParsable($attributes = null): void

addParsable attributes for the model

public beforeValidate()

public beforeValidate(): void

beforeValidate applies custom validation rules

public getCodeClassParent()

public getCodeClassParent(): mixed 

Returns name of a PHP class to us a parent for the PHP class created for the object's PHP section.

public getParsableAttributeValues()

public getParsableAttributeValues(): array 

getParsableAttributes

public static initFallback()

public static initFallback(Cms\Classes\Theme $theme): Cms\Classes\Layout 

Initializes the fallback layout.

public isFallBack()

public isFallBack(): bool 

isFallBack returns true if the layout is a fallback layout

public isPriority()

public isPriority(): bool 

isPriority returns true if the layout should take priority in the load order

public setParsableAttribute()

public setParsableAttribute($key, $value): void 

Show inherited public methods

Inherited Public Methods

Protected Methods

Show inherited protected methods

Inherited Protected Methods