PHP Класс MediaEntry, Doptor

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

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

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

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

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

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

Метод Описание
create ( array $attributes = [] ) : void When creating a post, run the attributes through a validator first.
getImageAttribute ( ) : string Get the image with its directory location
getPresenter ( ) Initiate the presenter class
getThumbnailAttribute ( ) : string Get the thumbnail with its directory location
setImageAttribute ( $file ) Upload the image while creating/updating records
update ( array $attributes = [], array $options = [] ) : void When updating a post, run the attributes through a validator first.

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

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

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

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

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

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

Initiate the presenter class
public getPresenter ( )

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

Get the thumbnail with its directory location
public getThumbnailAttribute ( ) : string
Результат string

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

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

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

When updating a post, 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
public $images_path

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

public static $rules

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

protected $table

$thumbs_path публичное свойство

public $thumbs_path