Properties

$disableConfirmation

$disableConfirmation : boolean

Type

boolean — Disable the confirmation

$elements

$elements : array<mixed,\FML\ManiaCode\Element>

Type

array<mixed,\FML\ManiaCode\Element> — ManiaCode Elements

Methods

create()

create() : static

Create a new ManiaCode

Returns

static

getDisableConfirmation()

getDisableConfirmation() : boolean

Get if the confirmation is disabled

Returns

boolean

setDisableConfirmation()

setDisableConfirmation(boolean  $disableConfirmation) : static

Disable the showing of the confirmation at the end of the ManiaCode

Parameters

boolean $disableConfirmation

If the confirmation should be disabled

Returns

static

addShowMessage()

addShowMessage(string  $message) : static

Show a message

Parameters

string $message

Message text

Returns

static

addInstallMacroblock()

addInstallMacroblock(string  $name, string  $file, string  $url) : static

Install a Macroblock

Parameters

string $name

Macroblock name

string $file

Macroblock file

string $url

Macroblock url

Returns

static

addInstallMap()

addInstallMap(string  $name, string  $url) : static

Install a map

Parameters

string $name

Map name

string $url

Map url

Returns

static

addPlayMap()

addPlayMap(string  $name, string  $url) : static

Play a map

Parameters

string $name

Map name

string $url

Map url

Returns

static

addInstallReplay()

addInstallReplay(string  $name, string  $url) : static

Install a replay

Parameters

string $name

Replay name

string $url

Replay url

Returns

static

addViewReplay()

addViewReplay(string  $name, string  $url) : static

View a replay

Parameters

string $name

Replay name

string $url

Replay url

Returns

static

addPlayReplay()

addPlayReplay(string  $name, string  $url) : static

Play a replay

Parameters

string $name

Replay name

string $url

Replay url

Returns

static

addInstallSkin()

addInstallSkin(string  $name, string  $file, string  $url) : static

Install a skin

Parameters

string $name

Skin name

string $file

Skin file

string $url

Skin url

Returns

static

addGetSkin()

addGetSkin(string  $name, string  $file, string  $url) : static

Get a skin

Parameters

string $name

Skin name

string $file

Skin file

string $url

Skin url

Returns

static

addAddBuddy()

addAddBuddy(string  $login) : static

Add a buddy

Parameters

string $login

Buddy login

Returns

static

addGoto()

addGoto(string  $link) : static

Go to a link

Parameters

string $link

Goto link

Returns

static

addJoinServer()

addJoinServer(string  $loginOrIp = null, integer  $port = null) : static

Join a server

Parameters

string $loginOrIp

(optional) Server login or ip

integer $port

(optional) Server port

Returns

static

addAddFavorite()

addAddFavorite(string  $loginOrIp = null, integer  $port = null) : static

Add a server as favorite

Parameters

string $loginOrIp

(optional) Server login or ip

integer $port

(optional) Server port

Returns

static

addInstallScript()

addInstallScript(string  $name, string  $file, string  $url) : static

Install a script

Parameters

string $name

Script name

string $file

Script file

string $url

Script url

Returns

static

addInstallPack()

addInstallPack(string  $name, string  $file, string  $url) : static

Install a title pack

Parameters

string $name

Pack name

string $file

Pack file

string $url

Pack url

Returns

static

getElements()

getElements() : array<mixed,\FML\ManiaCode\Element>

Get all Elements

Returns

array<mixed,\FML\ManiaCode\Element>

addElement()

addElement(\FML\ManiaCode\Element  $element) : static

Add a ManiaCode Element

Parameters

\FML\ManiaCode\Element $element

Element to add

Returns

static

addElements()

addElements(array<mixed,\FML\ManiaCode\Element>  $elements) : static

Add ManiaCode Elements

Parameters

array<mixed,\FML\ManiaCode\Element> $elements

Elements to add

Returns

static

removeAllElements()

removeAllElements() : static

Remove all ManiaCode Elements

Returns

static

removeElements()

removeElements() : static

Remove all ManiaCode Elements

Returns

static

render()

render(boolean  $echo = false) : \DOMDocument

Render the ManiaCode

Parameters

boolean $echo

(optional) If the XML text should be echoed and the Content-Type header should be set

Returns

\DOMDocument

__toString()

__toString() : string

Get the string representation

Returns

string