tests
This commit is contained in:
parent
faa57e4551
commit
8a7ba488cd
@ -16,5 +16,4 @@ print_r($row2);
|
|||||||
echo '<hr>';
|
echo '<hr>';
|
||||||
|
|
||||||
|
|
||||||
n::show(11221)->show();
|
n::show(11221);
|
||||||
|
|
||||||
|
@ -12,10 +12,11 @@ class n
|
|||||||
private function __clone() {}
|
private function __clone() {}
|
||||||
private function __construct() {}
|
private function __construct() {}
|
||||||
|
|
||||||
|
|
||||||
public static function show($userId)
|
public static function show($userId)
|
||||||
{
|
{
|
||||||
if (!self::$_instance) {
|
if (!self::$_instance) {
|
||||||
self::$_instance = battles\nick::search($userId);
|
self::$_instance = battles\nick::search($userId)->geninf();
|
||||||
}
|
}
|
||||||
return self::$_instance;
|
return self::$_instance;
|
||||||
}
|
}
|
||||||
|
@ -31,7 +31,7 @@ class nick
|
|||||||
/**
|
/**
|
||||||
* @param int $showInvisibility
|
* @param int $showInvisibility
|
||||||
*/
|
*/
|
||||||
public function show($showInvisibility = 0)
|
public function geninf($showInvisibility = 0)
|
||||||
{
|
{
|
||||||
$n ='';
|
$n ='';
|
||||||
if ($showInvisibility) {
|
if ($showInvisibility) {
|
||||||
@ -51,6 +51,6 @@ class nick
|
|||||||
// $user['login'] = 'невидимка';
|
// $user['login'] = 'невидимка';
|
||||||
// $user['level'] = 100;
|
// $user['level'] = 100;
|
||||||
// }
|
// }
|
||||||
echo $n;
|
return $n;
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user