HookObserverInterface.php 665 B

12345678910111213141516171819202122232425262728293031
  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. interface HookObserverInterface
  10. {
  11. /**
  12. * Return the singleton instance of Hook observer.
  13. *
  14. * @return static
  15. */
  16. public static function create();
  17. /**
  18. * Return the path from the class, needed to store location or autoload later.
  19. *
  20. * @return string
  21. */
  22. public function getPath();
  23. /**
  24. * Return the plugin name where is the Hook Observer.
  25. *
  26. * @return string
  27. */
  28. public function getPluginName();
  29. }