2014-05-04 00:36:20 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace MCTeam\Dedimania;
|
|
|
|
|
|
|
|
/**
|
2014-05-24 20:19:41 +02:00
|
|
|
* ManiaControl Dedimania Plugin Player Data Structure
|
2014-05-04 00:36:20 +02:00
|
|
|
*
|
|
|
|
* @author ManiaControl Team <mail@maniacontrol.com>
|
|
|
|
* @copyright 2014 ManiaControl Team
|
|
|
|
* @license http://www.gnu.org/licenses/ GNU General Public License, Version 3
|
|
|
|
*/
|
|
|
|
class DedimaniaPlayer {
|
|
|
|
/*
|
2014-08-02 22:31:46 +02:00
|
|
|
* Public properties
|
2014-05-04 00:36:20 +02:00
|
|
|
*/
|
|
|
|
public $login = '';
|
|
|
|
public $maxRank = -1;
|
|
|
|
public $banned = false;
|
|
|
|
public $optionsEnabled = false;
|
|
|
|
public $options = '';
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Construct a new Dedimania Player Model
|
2014-05-24 20:19:41 +02:00
|
|
|
*
|
|
|
|
* @param mixed $player
|
2014-05-04 00:36:20 +02:00
|
|
|
*/
|
|
|
|
public function __construct($player) {
|
|
|
|
$this->login = $player['Login'];
|
|
|
|
$this->maxRank = $player['MaxRank'];
|
2014-05-24 20:19:41 +02:00
|
|
|
if (isset($player['Banned'])) {
|
|
|
|
$this->banned = $player['Banned'];
|
|
|
|
$this->optionsEnabled = $player['OptionsEnabled'];
|
|
|
|
$this->options = $player['Options'];
|
|
|
|
}
|
2014-05-04 00:36:20 +02:00
|
|
|
}
|
|
|
|
}
|