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>
|
2016-05-04 09:57:31 +02:00
|
|
|
* @copyright 2014-2016 ManiaControl Team
|
2014-05-04 00:36:20 +02:00
|
|
|
* @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) {
|
2014-08-05 02:17:41 +02:00
|
|
|
$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
|
|
|
}
|
|
|
|
}
|