Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

...

Code Block
languagephp
titleExamples
linenumberstrue
// callback function would be "itemCreateHandler"
cGenericDb::register(cGenericDb::CREATE_SUCCESS, 'itemCreateHandler', 'cApiArticle'); 
 
// callback function would be "executeCreateHandle" in the class "cCallbackHandler"
cGenericDb::register(cGenericDb::CREATE_SUCCESS, array( 'cCallbackHandler', '::executeCreateHandle'), 'cApiArticle');
 
// unregisters all "CREATE_SUCCESS" events from specified class
cGenericDb::unregister(cGenericDb::CREATE_SUCCESS, 'cApiArticle');