more documentation on which global variables can be used

This commit is contained in:
Uwe Steinmann 2013-05-03 13:24:27 +02:00
parent 9a2d3ef349
commit d11b2fa784

View File

@ -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;