HookPluginInterface.php 685 B

1234567891011121314151617181920212223242526
  1. <?php
  2. /* For licensing terms, see /license.txt */
  3. /**
  4. * This file contains all Hook interfaces and their relation.
  5. * They are used for Hook classes
  6. * @package chamilo.library.hook
  7. */
  8. /**
  9. * Interface HookPluginInterface
  10. * This interface should be implemented by plugins to implements Hook Observer
  11. */
  12. interface HookPluginInterface
  13. {
  14. /**
  15. * This method will call the Hook management insertHook to add Hook observer from this plugin
  16. * @return int
  17. */
  18. public function installHook();
  19. /**
  20. * This method will call the Hook management deleteHook to disable Hook observer from this plugin
  21. * @return int
  22. */
  23. public function uninstallHook();
  24. }