HookMyStudentsQuizTrackingObserverInterface.php 1014 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. <?php
  2. /* For licensing terms, see /license.txt */
  3. /**
  4. * Interface HookMyStudentsQuizTrackingObserverInterface.
  5. */
  6. interface HookMyStudentsQuizTrackingObserverInterface extends HookObserverInterface
  7. {
  8. /**
  9. * Return an associative array this value and attributes.
  10. * <code>
  11. * [
  12. * 'value' => 'Users online',
  13. * 'attrs' => ['class' => 'text-center'],
  14. * ]
  15. * </code>.
  16. *
  17. * @param HookMyStudentsQuizTrackingEventInterface $hook
  18. *
  19. * @return array
  20. */
  21. public function trackingHeader(HookMyStudentsQuizTrackingEventInterface $hook);
  22. /**
  23. * Return an associative array this value and attributes.
  24. * <code>
  25. * [
  26. * 'value' => '5 connected users ',
  27. * 'attrs' => ['class' => 'text-center text-success'],
  28. * ]
  29. * </code>.
  30. *
  31. * @param HookMyStudentsQuizTrackingEventInterface $hook
  32. *
  33. * @return array
  34. */
  35. public function trackingContent(HookMyStudentsQuizTrackingEventInterface $hook);
  36. }