PHP Класс Theme, Doptor

Показать файл Открыть проект Примеры использования класса

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

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

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

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

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

Метод Описание
all_targets ( ) : array Get all the targets available for a theme
create ( array $attributes = [] ) : void When creating a theme, run the attributes through a validator first.
getPresenter ( ) Initiate the presenter class
settings ( ) Relation with the categories table A post can have many categories
themeLists ( $target = null )
update ( array $attributes = [], array $options = [] ) : void When updating a theme, run the attributes through a validator first.

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

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

Get all the targets available for a theme
public static all_targets ( ) : array
Результат array

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 ( )

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

Relation with the categories table A post can have many categories
public settings ( )

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

public static themeLists ( $target = null )

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

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

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

$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