\FMLManiaLinks

Class holding several ManiaLinks at once

Summary

Methods
Properties
Constants
create()
__construct()
getChildren()
add()
addChild()
addChildren()
setChildren()
removeAllChildren()
removeChildren()
getCustomUI()
setCustomUI()
render()
__toString()
No public properties found
No constants found
No protected methods found
$children
$customUI
N/A
No private methods found
No private properties found
N/A

Properties

$children

$children : array<mixed,\FML\ManiaLink>

Type

array<mixed,\FML\ManiaLink> — ManiaLinks children

$customUI

$customUI : \FML\CustomUI

Type

\FML\CustomUI — Custom UI

Methods

create()

create(array<mixed,\FML\ManiaLink>  $children = null) : static

Create a new ManiaLinks object

Parameters

array<mixed,\FML\ManiaLink> $children

ManiaLink children

Returns

static

__construct()

__construct(array<mixed,\FML\ManiaLink>  $children = null) 

Construct a new ManiaLinks object

Parameters

array<mixed,\FML\ManiaLink> $children

ManiaLink children

getChildren()

getChildren() : array<mixed,\FML\ManiaLink>

Get all child ManiaLinks

Returns

array<mixed,\FML\ManiaLink>

add()

add(\FML\ManiaLink  $child) : static

Add a child ManiaLink

Parameters

\FML\ManiaLink $child

Child ManiaLink

Returns

static

addChild()

addChild(\FML\ManiaLink  $child) : static

Add a child ManiaLink

Parameters

\FML\ManiaLink $child

Child ManiaLink

Returns

static

addChildren()

addChildren(array<mixed,\FML\ManiaLink>  $children) : static

Add child ManiaLinks

Parameters

array<mixed,\FML\ManiaLink> $children

Child ManiaLinks

Returns

static

setChildren()

setChildren(array<mixed,\FML\ManiaLink>  $children) : static

Set ManiaLink children

Parameters

array<mixed,\FML\ManiaLink> $children

ManiaLink children

Returns

static

removeAllChildren()

removeAllChildren() : static

Remove all child ManiaLinks

Returns

static

removeChildren()

removeChildren() : static

Remove all child ManiaLinks

Returns

static

getCustomUI()

getCustomUI(boolean  $createIfEmpty = true) : \FML\CustomUI

Get the CustomUI

Parameters

boolean $createIfEmpty

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

Returns

\FML\CustomUI

setCustomUI()

setCustomUI(\FML\CustomUI  $customUI = null) : static

Set the CustomUI

Parameters

\FML\CustomUI $customUI

CustomUI object

Returns

static

render()

render(  $echo = false) : \DOMDocument

Render the ManiaLinks object

Parameters

$echo

Returns

\DOMDocument

__toString()

__toString() : string

Get string representation

Returns

string