Attendance.class.php 688 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <?php
  2. /* For licensing terms, see /license.txt */
  3. require_once 'Resource.class.php';
  4. /**
  5. * Attendance backup script
  6. * @package chamilo.backup
  7. */
  8. class Attendance extends Resource
  9. {
  10. public $params = array();
  11. public $attendance_calendar = array();
  12. /**
  13. * Create a new Thematic
  14. *
  15. * @param array parameters
  16. */
  17. public function __construct($params)
  18. {
  19. parent::__construct($params['id'], RESOURCE_ATTENDANCE);
  20. $this->params = $params;
  21. }
  22. /**
  23. * @inheritdoc
  24. */
  25. public function show()
  26. {
  27. parent::show();
  28. echo $this->params['name'];
  29. }
  30. public function add_attendance_calendar($data)
  31. {
  32. $this->attendance_calendar[] = $data;
  33. }
  34. }