mirror of
https://git.code.sf.net/p/seeddms/code
synced 2024-11-26 15:32:13 +00:00
more documentation on which global variables can be used
This commit is contained in:
parent
9a2d3ef349
commit
d11b2fa784
|
@ -36,6 +36,14 @@ class SeedDMS_ExtExample extends SeedDMS_ExtBase {
|
|||
* Initialization
|
||||
*
|
||||
* Use this method to do some initialization like setting up the hooks
|
||||
* You have access to the following global variables:
|
||||
* $GLOBALS['dms'] : object representing dms
|
||||
* $GLOBALS['user'] : currently logged in user
|
||||
* $GLOBALS['session'] : current session
|
||||
* $GLOBALS['settings'] : current global configuration
|
||||
* $GLOBALS['settings']['_extensions']['example'] : configuration of this extension
|
||||
* $GLOBALS['LANG'] : the language array with translations for all languages
|
||||
* $GLOBALS['SEEDDMS_HOOKS'] : all hooks added so far
|
||||
*/
|
||||
function init() { /* {{{ */
|
||||
$GLOBALS['SEEDDMS_HOOKS']['addDocument'][] = new SeedDMS_ExtExample_AddDocument;
|
||||
|
|
Loading…
Reference in New Issue
Block a user