TrackManiaControl/application/plugins/MCTeam/Dedimania/DedimaniaPlayer.php

36 lines
859 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>
* @copyright 2014 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) {
$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'];
}
}
}