You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
588 B
33 lines
588 B
<?php
|
|
|
|
class ModelPlayer
|
|
{
|
|
private $gwPlayer;
|
|
|
|
public function __construct()
|
|
{
|
|
$this->gwPlayer = new GatewayPlayer();
|
|
}
|
|
|
|
public function addPlayer($player)
|
|
{
|
|
$this->gwPlayer->addPlayer($player);
|
|
}
|
|
|
|
public function getPlayerByID($id)
|
|
{
|
|
$player = $this->gwPlayer->getPlayerByID($id);
|
|
return $player;
|
|
}
|
|
|
|
public function updatePlayer($id,$player)
|
|
{
|
|
$this->gwPlayer->updatePlayer($id,$player);
|
|
}
|
|
|
|
public function deletePlayerByID($id)
|
|
{
|
|
$this->gwPlayer->deletePlayerByID($id);
|
|
}
|
|
}
|