Procedural File: pnMod.php
Source Location: /pnMod.php
Page Details:
Zikula Application Framework
Tags:
pnModAPIFunc [line 621]
mixed pnModAPIFunc(
'modname' $modname, ['type' $type = 'user'], ['func' $func = 'main'], ['args' $args = array()])
|
|
run a module API function
Tags:
Parameters
| 'modname' |
$modname |
the name of the module |
| 'type' |
$type |
the type of function to run |
| 'func' |
$func |
the specific function to run |
| 'args' |
$args |
the arguments to pass to the function |
pnModAPILoad [line 518]
string pnModAPILoad(
'name' $modname, ['type' $type = 'user'], ['force' $force = false])
|
|
load an API module
Tags:
Parameters
| 'name' |
$modname |
the name of the module |
| 'type' |
$type |
the type of functions to load |
| 'force' |
$force |
determines to load Module even if module isn't active |
pnModAvailable [line 862]
bool pnModAvailable(
['modname' $modname = null])
|
|
see if a module is available
Tags:
Parameters
| 'modname' |
$modname |
the name of the module |
pnModCallHooks [line 1013]
mixed pnModCallHooks(
'hookobject' $hookobject, 'hookaction' $hookaction, 'hookid' $hookid, ['extrainfo' $extrainfo = array()], ['implode' $implode = true])
|
|
carry out hook operations for module
Tags:
Parameters
| 'hookobject' |
$hookobject |
the object the hook is called for - one of 'item', 'category' or 'module' |
| 'hookaction' |
$hookaction |
the action the hook is called for - one of 'new', 'create', 'modify', 'update', 'delete', 'transform', 'display', 'modifyconfig', 'updateconfig' |
| 'hookid' |
$hookid |
the id of the object the hook is called for (module-specific) |
| 'extrainfo' |
$extrainfo |
extra information for the hook, dependent on hookaction |
| 'implode' |
$implode |
implode collapses all display hooks into a single string - default to true for compatability with .7x |
pnModDBInfoLoad [line 445]
bool pnModDBInfoLoad(
'name' $modname, ['directory' $directory = ''], ['force' $force = false])
|
|
load datbase definition for a module
Tags:
Parameters
| 'name' |
$modname |
the name of the module to load database definition for |
| 'directory' |
$directory |
directory that module is in (if known) |
| 'force' |
$force |
force table information to be reloaded |
pnModDelVar [line 225]
bool pnModDelVar(
'modname' $modname, ['name' $name = ''])
|
|
pnModDelVar
Delete a module variables. If the optional name parameter is not supplied all variables for the module 'modname' are deleted
Tags:
Parameters
| 'modname' |
$modname |
the name of the module |
| 'name' |
$name |
the name of the variable (optional) |
pnModFunc [line 605]
mixed pnModFunc(
'modname' $modname, ['type' $type = 'user'], ['func' $func = 'main'], ['args' $args = array()])
|
|
run a module function
Tags:
Parameters
| 'modname' |
$modname |
the name of the module |
| 'type' |
$type |
the type of function to run |
| 'func' |
$func |
the specific function to run |
| 'args' |
$args |
the arguments to pass to the function |
pnModGetAdminMods [line 374]
array pnModGetAdminMods(
)
|
|
get list of administration modules
Tags:
pnModGetAllMods [line 417]
get list of all modules
Tags:
pnModGetBaseDir [line 1195]
string pnModGetBaseDir(
[$modname $modname = ''])
|
|
Get the base directory for a module
Example: If the webroot is located at /var/www/html and the module name is Template and is found in the modules directory then this function would return /var/www/html/modules/Template
If the Template module was located in the system directory then this function would return /var/www/html/system/Template
This allows you to say: include(pnModGetBaseDir() . '/includes/private_functions.php');
Tags:
Parameters
| $modname |
$modname |
- name of module to that you want the base directory of. |
pnModGetIDFromName [line 271]
int pnModGetIDFromName(
'module' $module)
|
|
pnModGetIDFromName - get module ID given its name
Tags:
Parameters
| 'module' |
$module |
the name of the module |
pnModGetInfo [line 325]
mixed pnModGetInfo(
'id' $modid)
|
|
get information on module
return array of module information or false if core ( id = 0 )
Tags:
Parameters
pnModGetName [line 893]
get name of current top-level module
Tags:
pnModGetTypeMods [line 387]
array pnModGetTypeMods(
['type' $type = 'user'])
|
|
get list of modules by module type
Tags:
Parameters
| 'type' |
$type |
the module type to get (either 'user' or 'admin') (optional) (default='user') |
pnModGetUserMods [line 361]
array pnModGetUserMods(
)
|
|
get list of user modules
Tags:
pnModGetVar [line 93]
if pnModGetVar(
'modname' $modname, ['name' $name = ''], ['default' $default = false])
|
|
pnModGetVar - get a module variable
if the name parameter is included then function returns the module variable value. if the name parameter is ommitted then function returns a multi dimentional array of the keys and values for the module vars.
Tags:
Parameters
| 'modname' |
$modname |
the name of the module |
| 'name' |
$name |
the name of the variable |
| 'default' |
$default |
the value to return if the requested modvar is not set |
pnModIsHooked [line 1087]
bool pnModIsHooked(
'tmodule' $tmodule, 'smodule' $smodule)
|
|
Determine if a module is hooked by another module
Tags:
Parameters
| 'tmodule' |
$tmodule |
the target module |
| 'smodule' |
$smodule |
the source module - default the current top most module |
pnModLangLoad [line 1128]
void pnModLangLoad(
modname $modname, [type $type = 'user'], [api $api = false])
|
|
pnModLangLoad loads the language files for a module
Tags:
Parameters
| modname |
$modname |
- name of the module |
| type |
$type |
- type of the language file to load e.g. user, admin |
| api |
$api |
- load api lang file or gui lang file |
pnModLoad [line 502]
string pnModLoad(
'name' $modname, ['type' $type = 'user'], ['force' $force = false])
|
|
load a module
Tags:
Parameters
| 'name' |
$modname |
the name of the module |
| 'type' |
$type |
the type of functions to load |
| 'force' |
$force |
determines to load Module even if module isn't active |
pnModRegisterHook [line 944]
bool pnModRegisterHook(
'hookobject' $hookobject, 'hookaction' $hookaction, 'hookarea' $hookarea, 'hookmodule' $hookmodule, 'hooktype' $hooktype, 'hookfunc' $hookfunc)
|
|
register a hook function
Tags:
Parameters
| 'hookobject' |
$hookobject |
the hook object |
| 'hookaction' |
$hookaction |
the hook action |
| 'hookarea' |
$hookarea |
the area of the hook (either 'GUI' or 'API') |
| 'hookmodule' |
$hookmodule |
name of the hook module |
| 'hooktype' |
$hooktype |
name of the hook type |
| 'hookfunc' |
$hookfunc |
name of the hook function |
pnModSetVar [line 152]
bool pnModSetVar(
'modname' $modname, 'name' $name, ['value' $value = ''])
|
|
pnModSetVar - set a module variable
Tags:
Parameters
| 'modname' |
$modname |
the name of the module |
| 'name' |
$name |
the name of the variable |
| 'value' |
$value |
the value of the variable |
pnModSetVars [line 205]
bool pnModSetVars(
'modname' $modname, 'vars' $vars)
|
|
pnModSetVars - set multiple module variables
Tags:
Parameters
| 'modname' |
$modname |
the name of the module |
| 'vars' |
$vars |
an associative array of varnames/varvalues. |
pnModUnregisterHook [line 977]
bool pnModUnregisterHook(
'hookobject' $hookobject, 'hookaction' $hookaction, 'hookarea' $hookarea, 'hookmodule' $hookmodule, 'hooktype' $hooktype, 'hookfunc' $hookfunc)
|
|
unregister a hook function
Tags:
Parameters
| 'hookobject' |
$hookobject |
the hook object |
| 'hookaction' |
$hookaction |
the hook action |
| 'hookarea' |
$hookarea |
the area of the hook (either 'GUI' or 'API') |
| 'hookmodule' |
$hookmodule |
name of the hook module |
| 'hooktype' |
$hooktype |
name of the hook type |
| 'hookfunc' |
$hookfunc |
name of the hook function |
pnModURL [line 724]
sting pnModURL(
'modname' $modname, ['type' $type = 'user'], ['func' $func = 'main'], ['args' $args = array()], ['ssl' $ssl = null], ['fragment' $fragment = null], ['fqurl' $fqurl = null])
|
|
generate a module function URL
if the module is non-API compliant (type 1) then a) $func is ignored. b) $type=admin will generate admin.php?module=... and $type=user will generate index.php?name=...
Tags:
Parameters
| 'modname' |
$modname |
the name of the module |
| 'type' |
$type |
the type of function to run |
| 'func' |
$func |
the specific function to run |
| 'args' |
$args |
the array of arguments to put on the URL |
| 'ssl' |
$ssl |
set to constant null,true,false $ssl = true not $ssl = 'true' null - leave the current status untouched, true - create a ssl url, false - create a non-ssl url |
| 'fragment' |
$fragment |
the framgment to target within the URL |
| 'fqurl' |
$fqurl |
Fully Qualified URL. True to get full URL, eg for Redirect, else gets root-relative path unless SSL |
pnModVarExists [line 50]
true pnModVarExists(
'modname' $modname, 'name' $name)
|
|
pnModVarExists - check to see if a module variable is set
Tags:
Parameters
| 'modname' |
$modname |
the name of the module |
| 'name' |
$name |
the name of the variable |