PHP Класс Modules\Doptor\Slideshow\Models\Slideshow

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

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

Свойство Тип Описание
$fillable
$guarded
$images_path Path in the public folder to upload slides
$table

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

Метод Описание
all_status ( ) : array Get all the statuses available for a post
create ( array $attributes = [] ) : void Create a new slide
getImageAttribute ( ) : string Get the slideshow image with its directory location
getPresenter ( ) Initiate the presenter class
link ( ) Get the link associated with the menu
setImageAttribute ( $file ) Upload the slideshow image while creating/updating records
update ( array $attributes = [], array $options = [] ) : void Update an existing slide

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

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

Get all the statuses available for a post
public static all_status ( ) : array
Результат array

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

Create a new slide
public static create ( array $attributes = [] ) : void
$attributes array
Результат void

getImageAttribute() публичный метод

Get the slideshow image with its directory location
public getImageAttribute ( ) : string
Результат string

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

Initiate the presenter class
public getPresenter ( )

setImageAttribute() публичный метод

Upload the slideshow image while creating/updating records
public setImageAttribute ( $file )

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

Update an existing slide
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 slides
protected $images_path

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

protected $table