tests
This commit is contained in:
parent
faa57e4551
commit
8a7ba488cd
@ -16,5 +16,4 @@ print_r($row2);
|
||||
echo '<hr>';
|
||||
|
||||
|
||||
n::show(11221)->show();
|
||||
|
||||
n::show(11221);
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user