Notable.php 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <?php
  2. /**
  3. * Calendar interface for events.
  4. *
  5. * @package Elgg.Core
  6. * @subpackage DataModel.Notable
  7. *
  8. * @deprecated 1.9
  9. */
  10. interface Notable {
  11. /**
  12. * Calendar functionality.
  13. * This function sets the time of an object on a calendar listing.
  14. *
  15. * @param int $hour If ommitted, now is assumed.
  16. * @param int $minute If ommitted, now is assumed.
  17. * @param int $second If ommitted, now is assumed.
  18. * @param int $day If ommitted, now is assumed.
  19. * @param int $month If ommitted, now is assumed.
  20. * @param int $year If ommitted, now is assumed.
  21. * @param int $duration Duration of event, remainder of the day is assumed.
  22. *
  23. * @return bool
  24. */
  25. public function setCalendarTimeAndDuration($hour = null, $minute = null, $second = null,
  26. $day = null, $month = null, $year = null, $duration = null);
  27. /**
  28. * Return the start timestamp.
  29. *
  30. * @return int
  31. */
  32. public function getCalendarStartTime();
  33. /**
  34. * Return the end timestamp.
  35. *
  36. * @return int
  37. */
  38. public function getCalendarEndTime();
  39. }