Фикс анкеты персонажа.

This commit is contained in:
lopar
2018-03-01 21:14:51 +02:00
parent 7d7a83a8a0
commit 61b0ca565b
3 changed files with 45 additions and 22 deletions

28
classes/u.php Normal file
View File

@@ -0,0 +1,28 @@
<?php
/**
* Copyright (c) 2018.
* Author: Igor Barkov <lopar.4ever@gmail.com>
* Project name: Battles-Game
*/
class u
{
private $id;
/**
* u constructor.
* @param $playerId
*/
public function __construct($playerId)
{
$this->id = $playerId;
}
/**
* @return mixed
*/
public function i()
{
return db::c()->query('SELECT * FROM `users` WHERE `id` = ?i',$this->id)->fetch_assoc();
}
}