This commit is contained in:
lopar 2018-03-03 20:21:58 +02:00
parent faa57e4551
commit 8a7ba488cd
3 changed files with 5 additions and 5 deletions

View File

@ -16,5 +16,4 @@ print_r($row2);
echo '<hr>';
n::show(11221)->show();
n::show(11221);

View File

@ -12,10 +12,11 @@ class n
private function __clone() {}
private function __construct() {}
public static function show($userId)
{
if (!self::$_instance) {
self::$_instance = battles\nick::search($userId);
self::$_instance = battles\nick::search($userId)->geninf();
}
return self::$_instance;
}

View File

@ -31,7 +31,7 @@ class nick
/**
* @param int $showInvisibility
*/
public function show($showInvisibility = 0)
public function geninf($showInvisibility = 0)
{
$n ='';
if ($showInvisibility) {
@ -51,6 +51,6 @@ class nick
// $user['login'] = 'невидимка';
// $user['level'] = 100;
// }
echo $n;
return $n;
}
}