HookPluginInterface.php 706 B

1234567891011121314151617181920212223242526272829
  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. *
  7. * @package chamilo.library.hook
  8. */
  9. /**
  10. * Interface HookPluginInterface
  11. * This interface should be implemented by plugins to implements Hook Observer.
  12. */
  13. interface HookPluginInterface
  14. {
  15. /**
  16. * This method will call the Hook management insertHook to add Hook observer from this plugin.
  17. *
  18. * @return int
  19. */
  20. public function installHook();
  21. /**
  22. * This method will call the Hook management deleteHook to disable Hook observer from this plugin.
  23. *
  24. * @return int
  25. */
  26. public function uninstallHook();
  27. }