TrackManiaControl/plugins/MCTeam/Dedimania/DedimaniaPlayer.php

36 lines
850 B
PHP
Raw Normal View History

<?php
namespace MCTeam\Dedimania;
/**
2014-05-24 20:19:41 +02:00
* ManiaControl Dedimania Plugin Player Data Structure
*
* @author ManiaControl Team <mail@maniacontrol.com>
2015-01-19 11:06:20 +01:00
* @copyright 2014-2015 ManiaControl Team
* @license http://www.gnu.org/licenses/ GNU General Public License, Version 3
*/
class DedimaniaPlayer {
/*
* Public properties
*/
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
*/
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'];
}
}
}