PHP Class Modules\Doptor\Slideshow\Models\Slideshow

Inheritance: extends Eloquen\Eloquent, implements Robbo\Presenter\PresentableInterface
Show file Open project: doptor/doptor Class Usage Examples

Protected Properties

Property Type Description
$fillable
$guarded
$images_path Path in the public folder to upload slides
$table

Public Methods

Method Description
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

Method Details

all_status() public static method

Get all the statuses available for a post
public static all_status ( ) : array
return array

create() public static method

Create a new slide
public static create ( array $attributes = [] ) : void
$attributes array
return void

getImageAttribute() public method

Get the slideshow image with its directory location
public getImageAttribute ( ) : string
return string

getPresenter() public method

Initiate the presenter class
public getPresenter ( )

setImageAttribute() public method

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

update() public method

Update an existing slide
public update ( array $attributes = [], array $options = [] ) : void
$attributes array
$options array
return void

Property Details

$fillable protected property

protected $fillable

$guarded protected property

protected $guarded

$images_path protected property

Path in the public folder to upload slides
protected $images_path

$table protected property

protected $table