phpDocumentor

Slider
in package
implements SliderInterface

Class Slider

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

Tags
category

System

subpackage

Entities

Interfaces, Classes and Traits

SliderInterface
Interface SliderInterface

Table of Contents

$id  : int
Slider ID
$name  : string
Slider Name
$slideCollection  : SlideCollection
Collection of slides
$speed  : float
Animation speed of the slider
$startPage  : bool
Is it shown on start page?
__construct()  : mixed
addSlide()  : SliderInterface
Adds a slide to the slide collection
getId()  : int
Return the ID of the slider.
getName()  : string
Return the Name of the slider.
getSlideCollection()  : SlideCollection
Return the slide collection of the slider.
getSpeed()  : float
Return the speed of the slider.
setId()  : SliderInterface
Set the ID for the slider.
setName()  : SliderInterface
Set the name for the slider.
setShowOnStartPage()  : SliderInterface
Show or hides a slider on the start page.
setSlideCollection()  : SliderInterface
Set the slide collection for the slider.
setSpeed()  : SliderInterface
Set the speed for the slider.
showOnStartPage()  : bool
Return true when the slider is displayed on the start page, false otherwise.

Properties

$speed

Animation speed of the slider

protected float $speed = 3

$startPage

Is it shown on start page?

protected bool $startPage = alse

Methods

__construct()

public __construct() : mixed
Return values
mixed

getId()

Return the ID of the slider.

public getId() : int
Return values
int

Slider ID.

getName()

Return the Name of the slider.

public getName() : string
Return values
string

Name.

getSpeed()

Return the speed of the slider.

public getSpeed() : float
Return values
float

Speed.

setShowOnStartPage()

Show or hides a slider on the start page.

public setShowOnStartPage(BoolType $status) : SliderInterface
Parameters
$status : BoolType

True when it should be displayed, false otherwise.

Return values
SliderInterface

Same instance for chained method calls.

showOnStartPage()

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

public showOnStartPage() : bool
Return values
bool

Search results