◆ getConfig()
getConfig |
( |
|
$name = null , |
|
|
|
$default = null |
|
) |
| |
get a module config item
- Parameters
-
string | $name | name of config item, or blank for all items |
mixed | $default | default value to return if config $name is not set |
- Returns
- mixed string config item, array of config items, or null if config not found
◆ getHandler()
Get an Object Handler
- Parameters
-
string | $name | name of handler to load |
- Returns
- bool|XoopsObjectHandler|XoopsPersistableObjectHandler
◆ getModule()
get the module object
- Returns
- \XoopsModule
◆ init()
Initialize parent::__construct calls this after verifying module object.
- Returns
- void
Reimplemented from AbstractHelper.
◆ initConfig()
get module configs
- Returns
- void
◆ initHandler()
get a handler instance and store in $this->_handlers
- Parameters
-
string | $name | name of handler to load |
- Returns
- void
◆ initObject()
get a module object
- Returns
- void
◆ isCurrentModule()
Is this the currently active module?
- Returns
- bool
◆ isUserAdmin()
Does user have admin rights to this module?
- Returns
- bool true is user has admin right, else false
◆ loadLanguage()
load a language file for this module
- Parameters
-
string | $name | basename of language file (i.e. 'admin') |
- Returns
- bool
◆ path()
Return absolute filesystem path for a module relative path
- Parameters
-
string | $path | module relative file system path |
- Returns
- string
◆ redirect()
redirect |
( |
|
$url, |
|
|
|
$time = 3 , |
|
|
|
$message = '' |
|
) |
| |
Redirect the user to a page within this module
- Parameters
-
string | $url | module relative url (i.e. index.php) |
int | $time | time in seconds to show redirect message |
string | $message | redirect message |
- Returns
- void
◆ uploadPath()
Return absolute filesystem path for a module relative upload file
Uploads may be stored in special directories for many reasons, such as permissions, security, replication and directory balancing Rather than build their own URL's, modules should use this method which will know how to reference the upload now and in the future.
- Parameters
-
string | $path | module relative upload file path |
- Returns
- string
◆ uploadUrl()
Return absolute URL for a module relative upload file
Uploads may be stored in special directories for many reasons, such as permissions, security, replication and directory balancing Rather than build their own URL's, modules should use this method which will know how to reference the upload now and in the future.
- Parameters
-
string | $url | module relative upload URL |
- Returns
- string
◆ url()
Return absolute URL for a module relative URL
- Parameters
-
string | $url | module relative URL |
- Returns
- string
◆ $configs
◆ $handlers
◆ $object
The documentation for this class was generated from the following file:
- C:/xoops2511b2/htdocs/class/libraries/vendor/xoops/xmf/src/Module/Helper/GenericHelper.php