PHP Class MediaEntry, Doptor

Inheritance: extends Eloquent, implements Robbo\Presenter\PresentableInterface
Afficher le fichier Open project: doptor/doptor

Méthodes publiques

Свойство Type Description
$images_path Path in the public folder to upload image and its corresponding thumbnail
$rules
$thumbs_path

Protected Properties

Свойство Type Description
$guarded
$table

Méthodes publiques

Méthode Description
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.

Method Details

create() public static méthode

When creating a post, run the attributes through a validator first.
public static create ( array $attributes = [] ) : void
$attributes array
Résultat void

getImageAttribute() public méthode

Get the image with its directory location
public getImageAttribute ( ) : string
Résultat string

getPresenter() public méthode

Initiate the presenter class
public getPresenter ( )

getThumbnailAttribute() public méthode

Get the thumbnail with its directory location
public getThumbnailAttribute ( ) : string
Résultat string

setImageAttribute() public méthode

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

update() public méthode

When updating a post, run the attributes through a validator first.
public update ( array $attributes = [], array $options = [] ) : void
$attributes array
$options array
Résultat void

Property Details

$guarded protected_oe property

protected $guarded

$images_path public_oe property

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

$rules public_oe static_oe property

public static $rules

$table protected_oe property

protected $table

$thumbs_path public_oe property

public $thumbs_path