added initial class for hooks

This commit is contained in:
Uwe Steinmann 2013-04-30 23:03:27 +02:00
parent 08c0961a16
commit 424c518ff7

View File

@ -37,10 +37,26 @@ class SeedDMS_ExtExample extends SeedDMS_ExtBase {
* Initialization
*/
function init() { /* {{{ */
$GLOBALS['SEEDDMS_HOOKS']['addDocument'][] = new SeedDMS_ExtExample_AddDocument;
} /* }}} */
function main() { /* {{{ */
} /* }}} */
}
class SeedDMS_ExtExample_AddDocument {
/**
* Hook before adding a new document
*/
function preAddDocument($params) { /* {{{ */
} /* }}} */
/**
* Hook after successfully adding a new document
*/
function postAddDocument($document) { /* {{{ */
} /* }}} */
}
?>