PHP Класс ThemeSetting, Doptor

Наследование: extends Eloquent, implements Robbo\Presenter\PresentableInterface
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
$rules

Защищенные свойства (Protected)

Свойство Тип Описание
$fillable
$guarded
$images_path Path in the public folder to upload image and its corresponding thumbnail
$table
$thumbs_path

Открытые методы

Метод Описание
create ( array $attributes = [] ) : void When creating a theme, run the attributes through a validator first.
getPresenter ( ) Initiate the presenter class
getSetting ( string $name, string $default, $theme_id ) : string Get the value of setting for the specified name
getValueAttribute ( $value )
isJson ( $string )
saveSetting ( $name, $value, $public_theme_id )
setValueAttribute ( $value )
update ( array $attributes = [], array $options = [] ) : void When updating a theme, run the attributes through a validator first.

Описание методов

create() публичный статический Метод

When creating a theme, run the attributes through a validator first.
public static create ( array $attributes = [] ) : void
$attributes array
Результат void

getPresenter() публичный Метод

Initiate the presenter class
public getPresenter ( )

getSetting() публичный статический Метод

Get the value of setting for the specified name
public static getSetting ( string $name, string $default, $theme_id ) : string
$name string
$default string
Результат string

getValueAttribute() публичный Метод

public getValueAttribute ( $value )

isJson() публичный Метод

public isJson ( $string )

saveSetting() публичный статический Метод

public static saveSetting ( $name, $value, $public_theme_id )

setValueAttribute() публичный Метод

public setValueAttribute ( $value )

update() публичный Метод

When updating a theme, run the attributes through a validator first.
public update ( array $attributes = [], array $options = [] ) : void
$attributes array
$options array
Результат void

Описание свойств

$fillable защищенное свойство

protected $fillable

$guarded защищенное свойство

protected $guarded

$images_path защищенное свойство

Path in the public folder to upload image and its corresponding thumbnail
protected $images_path

$rules публичное статическое свойство

public static $rules

$table защищенное свойство

protected $table

$thumbs_path защищенное свойство

protected $thumbs_path