Class Slider

Class Slider

Represents the default settings of a slider. Has got the slide settings as collection for every slide of a slider.

Slider implements SliderInterface
Package: Slider\Entities
Category: System
Located at Services/Core/Slider/Entities/Slider.inc.php

Methods summary

public __construct( void )
public setId( IdType $id ) : SliderInterface

Set the ID for the slider.

public getId( void ) : integer

Return the ID of the slider.

public setName( StringType $name ) : SliderInterface

Set the name for the slider.

public getName( void ) : string

Return the Name of the slider.

public setSpeed( DecimalType $speed ) : SliderInterface

Set the speed for the slider.

public getSpeed( void ) : float

Return the speed of the slider.

public showOnStartPage( void ) : boolean

Return true when the slider is displayed on the start page, false otherwise.

public setShowOnStartPage( BoolType $status ) : SliderInterface

Show or hides a slider on the start page.

public setSlideCollection( SlideCollection $slideCollection ) : SliderInterface

Set the slide collection for the slider.

public getSlideCollection( void ) : SlideCollection

Return the slide collection of the slider.

public addSlide( SlideInterface $slide ) : SliderInterface

Adds a slide to the slide collection

Properties summary

protected $id : integer

Slider ID

0
protected $name : string

Slider Name

''
protected $speed : float

Animation speed of the slider

3
protected $startPage : boolean

Is it shown on start page?

false
protected $slideCollection : SlideCollection

Collection of slides