HookMyStudentsLpTrackingObserverInterface.php 1002 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. <?php
  2. /* For licensing terms, see /license.txt */
  3. /**
  4. * Interface HookMyStudentsLpTrackingObserverInterface.
  5. */
  6. interface HookMyStudentsLpTrackingObserverInterface 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 HookMyStudentsLpTrackingEventInterface $hook
  18. *
  19. * @return array
  20. */
  21. public function trackingHeader(HookMyStudentsLpTrackingEventInterface $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 HookMyStudentsLpTrackingEventInterface $hook
  32. *
  33. * @return array
  34. */
  35. public function trackingContent(HookMyStudentsLpTrackingEventInterface $hook);
  36. }