\FML\TypesContainer

Interface for Element being able to contain other Controls

Summary

Methods
Constants
getChildren()
addChild()
add()
addChildren()
removeAllChildren()
removeChildren()
getFormat()
setFormat()
No constants found
No protected methods found
N/A
No private methods found
N/A

Methods

getChildren()

getChildren() : array<mixed,\FML\Types\Renderable>

Get the children

Returns

array<mixed,\FML\Types\Renderable>

addChild()

addChild(\FML\Types\Renderable  $child) : static

Add a new child

Parameters

\FML\Types\Renderable $child

Child Control to add

Returns

static

add()

add(\FML\Types\Renderable  $child) : static

Add a new child

Parameters

\FML\Types\Renderable $child

Child Control to add

Returns

static

addChildren()

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

Add new children

Parameters

array<mixed,\FML\Types\Renderable> $children

Child Controls to add

Returns

static

removeAllChildren()

removeAllChildren() : static

Remove all children

Returns

static

removeChildren()

removeChildren() : static

Remove all children

Returns

static

getFormat()

getFormat(boolean  $createIfEmpty = true) : \FML\Elements\Format

Get the Format

Parameters

boolean $createIfEmpty

If the format should be created if it doesn't exist yet

Returns

\FML\Elements\Format

setFormat()

setFormat(\FML\Elements\Format  $format = null) : static

Set the Format

Parameters

\FML\Elements\Format $format

New Format

Returns

static