Tool
in package
Uses
StaticTrait
Table of Contents
- $instance : mixed
- Instance object.
- __callStatic() : mixed
- Add support for magic static method calls.
- _i() : mixed
- _instance() : mixed
- addNews() : void
- changePlayerCtitle() : string
- changePlayerName() : string
- changePlayerTitle() : string
- checkBan() : void
- expForNextLevel() : int
- getMount() : array<string|int, mixed>
- getPartner() : string
- getPlayerBasename() : string
- getPlayerCBasename() : string
- getPlayerTitle() : string
- instance() : mixed
- Set/get a instance of object.
- saveUser() : void
- selectDeathMessage() : array<string|int, mixed>
- selectTaunt() : array<string|int, mixed>
- substitute() : string
Properties
$instance
Instance object.
protected
static mixed
$instance
Methods
__callStatic()
Add support for magic static method calls.
public
static __callStatic(mixed $method, array<string|int, mixed> $arguments) : mixed
Parameters
- $method : mixed
- $arguments : array<string|int, mixed>
Return values
mixed —the returned value from the resolved method
_i()
public
static _i() : mixed
Return values
mixed —_instance()
public
static _instance() : mixed
Return values
mixed —addNews()
public
static addNews(string $text, array<string|int, mixed> $params = [], string $textDomain = 'partial_news', bool $hideFromBio = false) : void
Parameters
- $text : string
- $params = [] : array<string|int, mixed>
- $textDomain = 'partial_news' : string
- $hideFromBio = false : bool
Return values
void —changePlayerCtitle()
public
static changePlayerCtitle(mixed $nctitle, mixed $old) : string
Parameters
- $nctitle : mixed
- $old : mixed
Return values
string —changePlayerName()
public
static changePlayerName(mixed $newname, mixed $old) : string
Parameters
- $newname : mixed
- $old : mixed
Return values
string —changePlayerTitle()
public
static changePlayerTitle(mixed $ntitle, mixed $old) : string
Parameters
- $ntitle : mixed
- $old : mixed
Return values
string —checkBan()
public
static checkBan(string|null $login = null) : void
Parameters
- $login = null : string|null
Return values
void —expForNextLevel()
public
static expForNextLevel(int $curlevel, int $curdk) : int
Parameters
- $curlevel : int
- $curdk : int
Return values
int —getMount()
public
static getMount(mixed $horse) : array<string|int, mixed>
Parameters
- $horse : mixed
Return values
array<string|int, mixed> —getPartner()
public
static getPartner(bool $player = false) : string
Parameters
- $player = false : bool
Return values
string —getPlayerBasename()
public
static getPlayerBasename(mixed $old) : string
Parameters
- $old : mixed
Return values
string —getPlayerCBasename()
public
static getPlayerCBasename(mixed $old) : string
Parameters
- $old : mixed
Return values
string —getPlayerTitle()
public
static getPlayerTitle(mixed $old) : string
Parameters
- $old : mixed
Return values
string —instance()
Set/get a instance of object.
public
static instance(mixed $instance) : mixed
Parameters
- $instance : mixed
Return values
mixed —saveUser()
public
static saveUser(bool $updateLastOn = true, bool $regenSession = false) : void
Parameters
- $updateLastOn = true : bool
- $regenSession = false : bool
Return values
void —selectDeathMessage()
public
static selectDeathMessage(string $zone = 'forest', array<string|int, mixed> $extraParams = []) : array<string|int, mixed>
Parameters
- $zone = 'forest' : string
- $extraParams = [] : array<string|int, mixed>
Return values
array<string|int, mixed> —selectTaunt()
public
static selectTaunt(array<string|int, mixed> $extraParams = []) : array<string|int, mixed>
Parameters
- $extraParams = [] : array<string|int, mixed>
Return values
array<string|int, mixed> —substitute()
public
static substitute(string|null $string, array<string|int, mixed>|null $extraSearch = null, array<string|int, mixed>|null $extraReplace = null) : string
Parameters
- $string : string|null
- $extraSearch = null : array<string|int, mixed>|null
- $extraReplace = null : array<string|int, mixed>|null