mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-09 04:56:06 +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
|
* Initialization
|
||||||
*
|
*
|
||||||
* Use this method to do some initialization like setting up the hooks
|
* 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() { /* {{{ */
|
function init() { /* {{{ */
|
||||||
$GLOBALS['SEEDDMS_HOOKS']['addDocument'][] = new SeedDMS_ExtExample_AddDocument;
|
$GLOBALS['SEEDDMS_HOOKS']['addDocument'][] = new SeedDMS_ExtExample_AddDocument;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user