\FML\StylesheetStylesheet

Class representing a ManiaLink Stylesheet

Summary

Methods
Properties
Constants
create()
getStyles()
addStyle()
removeAllStyles()
getStyles3d()
addStyle3d()
removeAllStyles3d()
removeStyles()
getMood()
setMood()
createMood()
render()
No public properties found
No constants found
No protected methods found
$styles
$styles3d
$mood
N/A
No private methods found
No private properties found
N/A

Properties

$styles

$styles : array<mixed,\FML\Stylesheet\Style>

Type

array<mixed,\FML\Stylesheet\Style> — Styles

$styles3d

$styles3d : array<mixed,\FML\Stylesheet\Style3d>

Type

array<mixed,\FML\Stylesheet\Style3d> — 3d Styles

Methods

create()

create() : static

Create a new Stylesheet

Returns

static

getStyles()

getStyles() : array<mixed,\FML\Stylesheet\Style>

Get the Styles

Returns

array<mixed,\FML\Stylesheet\Style>

addStyle()

addStyle(\FML\Stylesheet\Style  $style) : static

Add a new Style

Parameters

\FML\Stylesheet\Style $style

The Style to be added

Returns

static

removeAllStyles()

removeAllStyles() : static

Remove all Styles

Returns

static

getStyles3d()

getStyles3d() : array<mixed,\FML\Stylesheet\Style3d>

Get the Styles3d

Returns

array<mixed,\FML\Stylesheet\Style3d>

addStyle3d()

addStyle3d(\FML\Stylesheet\Style3d  $style3d) : static

Add a new Style3d

Parameters

\FML\Stylesheet\Style3d $style3d

The Style3d to be added

Returns

static

removeAllStyles3d()

removeAllStyles3d() : static

Remove all Style3ds

Returns

static

removeStyles()

removeStyles() : static

Remove all Style3ds

Returns

static

getMood()

getMood(boolean  $createIfEmpty = true) : \FML\Stylesheet\Mood

Get the Mood

Parameters

boolean $createIfEmpty

(optional) If the Mood should be created if it doesn't exist yet

Returns

\FML\Stylesheet\Mood

setMood()

setMood(\FML\Stylesheet\Mood  $mood = null) : static

Set the Mood

Parameters

\FML\Stylesheet\Mood $mood

Mood

Returns

static

createMood()

createMood() : \FML\Stylesheet\Mood

Create a new Mood if necessary

Returns

\FML\Stylesheet\Mood

render()

render(\DOMDocument  $domDocument) : \DOMElement

Render the Stylesheet

Parameters

\DOMDocument $domDocument

DOMDocument for which the Stylesheet should be rendered

Returns

\DOMElement