XOOPS
2.6.0
|
Public Member Functions | |
addLog ($log) | |
getConfig ($name) | |
getHandler ($name) | |
getModule () | |
isCurrentModule () | |
isUserAdmin () | |
loadLanguage ($name) | |
path ($path= '') | |
redirect ($url, $time=3, $message= '') | |
setDebug ($bool=true) | |
url ($url= '') | |
Static Public Member Functions | |
static | getInstance ($dirname= 'notsetyet') |
Protected Attributes | |
$configs | |
$debug | |
$dirname | |
$object | |
Private Member Functions | |
__construct ($dirname) | |
_initConfig () | |
_initHandler ($name) | |
_initObject () | |
Private Attributes | |
$_handlers | |
Definition at line 31 of file GenericHelper.php.
|
private |
class constuctor
string | $dirname | a module directory name |
Definition at line 63 of file GenericHelper.php.
References Xmf\Module\Helper\GenericHelper\$dirname.
|
private |
get module configs
Definition at line 185 of file GenericHelper.php.
References $config_handler, Xmf\Module\Helper\GenericHelper\$dirname, $xoopsModule, $xoopsModuleConfig, Xmf\Module\Helper\GenericHelper\addLog(), and Xmf\Module\Helper\GenericHelper\getModule().
Referenced by Xmf\Module\Helper\GenericHelper\getConfig().
|
private |
get a handler instance and store in $this->_handlers
string | $name | name of handler to load |
Definition at line 210 of file GenericHelper.php.
References $name, Xmf\Module\Helper\GenericHelper\addLog(), XoopsBaseConfig\get(), and Xoops\Core\Database\Factory\getConnection().
Referenced by Xmf\Module\Helper\GenericHelper\getHandler().
|
private |
get a module object
Definition at line 165 of file GenericHelper.php.
References Xmf\Module\Helper\GenericHelper\$dirname, $module_handler, $xoopsModule, Xmf\Module\Helper\GenericHelper\addLog(), and xoops_getHandler().
Referenced by Xmf\Module\Helper\GenericHelper\getModule().
Xmf\Module\Helper\GenericHelper::addLog | ( | $log | ) |
Add a message to the module log
string | $log | log message |
Definition at line 269 of file GenericHelper.php.
References Xmf\Module\Helper\GenericHelper\$dirname, $name, and Xoops\getInstance().
Referenced by Xmf\Module\Helper\GenericHelper\_initConfig(), Xmf\Module\Helper\GenericHelper\_initHandler(), Xmf\Module\Helper\GenericHelper\_initObject(), Xmf\Module\Helper\GenericHelper\getConfig(), Xmf\Module\Helper\GenericHelper\getHandler(), Xmf\Module\Helper\GenericHelper\getModule(), and Xmf\Module\Helper\GenericHelper\loadLanguage().
Xmf\Module\Helper\GenericHelper::getConfig | ( | $name | ) |
get a module config item
string | $name | name of config item, or blank for all items |
Definition at line 112 of file GenericHelper.php.
References Xmf\Module\Helper\GenericHelper\$configs, $name, Xmf\Module\Helper\GenericHelper\_initConfig(), and Xmf\Module\Helper\GenericHelper\addLog().
Xmf\Module\Helper\GenericHelper::getHandler | ( | $name | ) |
Get an Object Handler
string | $name | name of handler to load |
Definition at line 142 of file GenericHelper.php.
References $name, Xmf\Module\Helper\GenericHelper\_initHandler(), and Xmf\Module\Helper\GenericHelper\addLog().
|
static |
Return instance of module Xmf for dirname
string | $dirname | module directory name |
Definition at line 75 of file GenericHelper.php.
References Xmf\Module\Helper\GenericHelper\$dirname.
Referenced by Xmf\Module\Helper\getHelper().
Xmf\Module\Helper\GenericHelper::getModule | ( | ) |
get the module object
Definition at line 92 of file GenericHelper.php.
References Xmf\Module\Helper\GenericHelper\$object, Xmf\Module\Helper\GenericHelper\_initObject(), and Xmf\Module\Helper\GenericHelper\addLog().
Referenced by Xmf\Module\Helper\GenericHelper\_initConfig(), and Xmf\Module\Helper\GenericHelper\isUserAdmin().
Xmf\Module\Helper\GenericHelper::isCurrentModule | ( | ) |
Is this the currently active module?
Definition at line 287 of file GenericHelper.php.
References $GLOBALS.
Xmf\Module\Helper\GenericHelper::isUserAdmin | ( | ) |
Does user have admin rights to this module?
Definition at line 301 of file GenericHelper.php.
References $GLOBALS, and Xmf\Module\Helper\GenericHelper\getModule().
Xmf\Module\Helper\GenericHelper::loadLanguage | ( | $name | ) |
load a language file for this module
string | $name | basename of language file (i.e. 'admin') |
Definition at line 239 of file GenericHelper.php.
References $name, Xmf\Module\Helper\GenericHelper\addLog(), and Xmf\Language\load().
Xmf\Module\Helper\GenericHelper::path | ( | $path = '' | ) |
Return absolute filesystem path for a module relative path
string | $path | module relative file system path |
Definition at line 325 of file GenericHelper.php.
References $path.
Xmf\Module\Helper\GenericHelper::redirect | ( | $url, | |
$time = 3 , |
|||
$message = '' |
|||
) |
Redirect the user to a page within this module
string | $url | module relative url (i.e. index.php) |
int | $time | time in seconds to show redirect message |
string | $message | redirect message |
Definition at line 339 of file GenericHelper.php.
References $url, exit, redirect_header(), and Xmf\Module\Helper\GenericHelper\url().
Xmf\Module\Helper\GenericHelper::setDebug | ( | $bool = true | ) |
Set debug option on or off
bool | $bool | true to turn on debug logging, false for off |
Definition at line 257 of file GenericHelper.php.
Xmf\Module\Helper\GenericHelper::url | ( | $url = '' | ) |
Return absolute URL for a module relative URL
string | $url | module relative URL |
Definition at line 313 of file GenericHelper.php.
References $url.
Referenced by Xmf\Module\Helper\GenericHelper\redirect().
|
private |
Definition at line 46 of file GenericHelper.php.
|
protected |
Definition at line 51 of file GenericHelper.php.
Referenced by Xmf\Module\Helper\GenericHelper\getConfig().
|
protected |
Definition at line 56 of file GenericHelper.php.
|
protected |
|
protected |
Definition at line 41 of file GenericHelper.php.
Referenced by Xmf\Module\Helper\GenericHelper\getModule().