Utils
in package
Various utilities.
Tags
Table of Contents
Methods
- 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.
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.
filenameGetFilename()
public
static filenameGetFilename(string $name) : string
Parameters
- $name : string
Return values
stringfilenameGetOptions()
public
static filenameGetOptions(string $name) : string
Parameters
- $name : string
Return values
stringtypeFromName()
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.