Legend of the Green Dragon

Sanitize
in package
Uses StaticTrait

This class is for sanitize a string For example: sanitize a number or a date.

Table of Contents

$instance  : mixed
Instance object.
__callStatic()  : mixed
Add support for magic static method calls.
_i()  : mixed
_instance()  : mixed
colorNameSanitize()  : string
fullSanitize()  : string
htmlSanitize()  : string
instance()  : mixed
Set/get a instance of object.
moduleNameSanitize()  : string
nameSanitize()  : string
noLotgdCodes()  : string
preventLotgdCodes()  : string
unColorize()  : 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

colorNameSanitize()

public static colorNameSanitize(mixed $spaceallowed, string $string, mixed $admin) : string
Parameters
$spaceallowed : mixed
$string : string
$admin : mixed
Return values
string

fullSanitize()

public static fullSanitize(string $string) : string
Parameters
$string : string
Return values
string

htmlSanitize()

public static htmlSanitize(string $string) : string
Parameters
$string : string
Return values
string

instance()

Set/get a instance of object.

public static instance(mixed $instance) : mixed
Parameters
$instance : mixed
Return values
mixed

moduleNameSanitize()

public static moduleNameSanitize(string $string) : string
Parameters
$string : string
Return values
string

nameSanitize()

public static nameSanitize(mixed $spaceAllowed, string $name) : string
Parameters
$spaceAllowed : mixed
$name : string
Return values
string

noLotgdCodes()

public static noLotgdCodes(string $string) : string
Parameters
$string : string
Return values
string

preventLotgdCodes()

public static preventLotgdCodes(string $string) : string
Parameters
$string : string
Return values
string

unColorize()

public static unColorize(string $string) : string
Parameters
$string : string
Return values
string

Search results