Constants

TABLE_PLAYERDATAMETADATA

TABLE_PLAYERDATAMETADATA

TABLE_PLAYERDATA

TABLE_PLAYERDATA

TYPE_STRING

TYPE_STRING

TYPE_INT

TYPE_INT

TYPE_REAL

TYPE_REAL

TYPE_BOOL

TYPE_BOOL

TYPE_ARRAY

TYPE_ARRAY

ARRAY_DELIMITER

ARRAY_DELIMITER

Properties

$metaData

$metaData : 

Type

$storedData

$storedData : 

Type

Methods

getUsageInformation()

getUsageInformation() 

Gets Information about the Class, and a List of the Public Method

__construct()

__construct(\ManiaControl\ManiaControl  $maniaControl) 

Construct a new player manager instance

Parameters

\ManiaControl\ManiaControl $maniaControl

destroyPlayerData()

destroyPlayerData(\ManiaControl\Players\Player  $player) 

Destroys the stored PlayerData (Method get called by PlayerManager, so don't call it anywhere else)

Parameters

\ManiaControl\Players\Player $player

defineMetaData()

defineMetaData(mixed  $object, string  $dataName, mixed  $default, string  $dataDescription = '') : boolean

Defines the Player-Data MetaData

Parameters

mixed $object
string $dataName
mixed $default
string $dataDescription

(optional)

Returns

boolean

getPlayerData()

getPlayerData(mixed  $object, string  $dataName, \ManiaControl\Players\Player  $player, integer  $serverIndex = -1) : mixed

Gets the Player Data

Parameters

mixed $object
string $dataName
\ManiaControl\Players\Player $player
integer $serverIndex

Returns

mixed

setPlayerData()

setPlayerData(mixed  $object, string  $dataName, \ManiaControl\Players\Player  $player, mixed  $value, integer  $serverIndex = -1) : boolean

Set a PlayerData to a specific defined statMetaData

Parameters

mixed $object
string $dataName
\ManiaControl\Players\Player $player
mixed $value
integer $serverIndex

(empty if it's global)

Returns

boolean

initTables()

initTables() : boolean

Initialize necessary database tables

Returns

boolean

storeMetaData()

storeMetaData() 

Store Meta Data from the Database in the Ram

getType()

getType(mixed  $param) : string

Get Type of a Parameter

Parameters

mixed $param

Returns

string

getMetaDataId()

getMetaDataId(string  $className, string  $statName) : integer

Return the Id of the MetaData

Parameters

string $className
string $statName

Returns

integer

castSetting()

castSetting(string  $type, mixed  $value) : mixed

Cast a Setting to the given Type

Parameters

string $type
mixed $value

Returns

mixed