HookObserverInterface.php 641 B

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