◆ __construct()
__construct |
( |
|
$dirname = null | ) |
|
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
-
string | null | $dirname | dirname |
◆ addLog()
Add a message to the module log
- Parameters
-
mixed | $log | log item, can be message or variable |
- Returns
- void
◆ dirname()
Return the dirname for this helper
- Returns
- string|null a dirname
◆ init()
init() is called once/if __construct has a module object. $this->module will have a module object that any further initialization can use.
- Returns
- void
Reimplemented in Cache, GenericHelper, Permission, and Session.
◆ serializeForHelperLog()
serializeForHelperLog |
( |
|
$value | ) |
|
|
protected |
Serialize an arbitrary value to string. Intended for data being addLog()ed
- Parameters
-
- Returns
- string
◆ setDebug()
Set debug option on or off
- Parameters
-
bool | $bool | true to turn on debug logging, false for off |
- Returns
- void
◆ $debug
◆ $dirname
◆ $module
The documentation for this class was generated from the following file:
- C:/xoops2511b2/htdocs/class/libraries/vendor/xoops/xmf/src/Module/Helper/AbstractHelper.php