\ManiaControl\ServerConfig

Model Class holding the Server Config

Summary

Methods
Properties
Constants
__construct()
validate()
$id
$host
$port
$user
$pass
No constants found
No protected methods found
No protected properties found
N/A
extractConfigData()
No private properties found
N/A

Properties

$id

$id : 

Type

$host

$host : 

Type

$port

$port : 

Type

$user

$user : 

Type

$pass

$pass : 

Type

Methods

__construct()

__construct(mixed  $id = null, mixed  $host = null, mixed  $port = null, mixed  $user = null, mixed  $pass = null) 

Create a new server config instance

Parameters

mixed $id
mixed $host
mixed $port
mixed $user
mixed $pass

validate()

validate(string  $message = null) : boolean

Validate the Config Data

Parameters

string $message

Returns

boolean

extractConfigData()

extractConfigData(mixed  $configParam) : string

Extract the actual Data from the given Config Param

Parameters

mixed $configParam

Returns

string