mirror of
https://git.code.sf.net/p/seeddms/code
synced 2024-11-26 15:32:13 +00:00
added initial class for hooks
This commit is contained in:
parent
08c0961a16
commit
424c518ff7
|
@ -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) { /* {{{ */
|
||||
} /* }}} */
|
||||
}
|
||||
|
||||
?>
|
||||
|
|
Loading…
Reference in New Issue
Block a user