Utils
in package
Various utilities.
Tags
Table of Contents
- debugLog() : void
- Log a debug message.
- errorLog() : void
- Log an error message.
- filenameGetFilename() : string
- filenameGetOptions() : string
- typeFromName() : int
- Look up the GTyoe from a type name. If the type does not exist, return 0.
Methods
debugLog()
Log a debug message.
public
static debugLog(string $name, array<string|int, mixed> $arguments) : void
Parameters
- $name : string
-
The method creating the messages.
- $arguments : array<string|int, mixed>
-
The method arguments.
Return values
void —errorLog()
Log an error message.
public
static errorLog(string $message[, Exception|null $exception = null ]) : void
Parameters
- $message : string
-
The error message.
- $exception : Exception|null = null
-
The exception, if any.
Return values
void —filenameGetFilename()
public
static filenameGetFilename(string $name) : string
Parameters
- $name : string
Return values
string —filenameGetOptions()
public
static filenameGetOptions(string $name) : string
Parameters
- $name : string
Return values
string —typeFromName()
Look up the GTyoe from a type name. If the type does not exist, return 0.
public
static typeFromName(string $name) : int
Parameters
- $name : string
-
The type name.