Methods |
public
|
__construct(string|null $dirname = null)
Instantiate a XoopsModule object for the helper to use.
The module is determined as follows:
- if null is passed, use…
Instantiate a XoopsModule object for the helper to use.
The module is determined as follows:
- if null is passed, use the current module
- if a string is passed, use as dirname to load
Parameters
|
#
|
abstract
public
|
init(): void
init() is called once/if __construct has a module object.
$this->module will have a module object that any further…
init() is called once/if __construct has a module object.
$this->module will have a module object that any further
initialization can use.
Implemented by
|
#
|
public
|
dirname(): string|null
Return the dirname for this helper
Return the dirname for this helper
Returns
|
#
|
public
|
setDebug(bool $bool = true): void
Set debug option on or off
Set debug option on or off
Parameters
$bool |
true to turn on debug logging, false for off
|
|
#
|
public
|
addLog(mixed $log): void
Add a message to the module log
Add a message to the module log
Parameters
$log |
log item, can be message or variable
|
|
#
|
protected
|
serializeForHelperLog(mixed $value): string
Serialize an arbitrary value to string. Intended for data being addLog()ed
Serialize an arbitrary value to string. Intended for data being addLog()ed
|
#
|