\FML\ManiaCodeJoinServer

ManiaCode Element for joining a server

Summary

Methods
Properties
Constants
create()
__construct()
getLogin()
setLogin()
getIp()
setIp()
getPort()
setPort()
render()
No public properties found
No constants found
No protected methods found
$login
$ip
$port
N/A
No private methods found
No private properties found
N/A

Properties

$login

$login : string

Type

string — Server login

$ip

$ip : string

Type

string — Server ip

$port

$port : integer

Type

integer — Server port

Methods

create()

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

Create a new JoinServer Element

Parameters

string $loginOrIp

(optional) Server login or ip

integer $port

(optional) Server port

Returns

static

__construct()

__construct(string  $loginOrIp = null, integer  $port = null) 

Construct a new JoinServer Element

Parameters

string $loginOrIp

(optional) Server login or ip

integer $port

(optional) Server port

getLogin()

getLogin() : string

Get the server login

Returns

string

setLogin()

setLogin(string  $login) : static

Set the server login

Parameters

string $login

Server login

Returns

static

getIp()

getIp() : string

Get the server ip

Returns

string

setIp()

setIp(string  $ip, integer  $port = null) : static

Set the server ip and port

Parameters

string $ip

Server ip

integer $port

(optional) Server port

Returns

static

getPort()

getPort() : integer

Get the server port

Returns

integer

setPort()

setPort(integer  $port) : static

Set the server port

Parameters

integer $port

Server port

Returns

static

render()

render(\DOMDocument  $domDocument) : \DOMElement

Render the ManiaCode Element

Parameters

\DOMDocument $domDocument

The DOMDocument for which the Element should be rendered

Returns

\DOMElement