Attendance.class.php 667 B

12345678910111213141516171819202122232425262728293031323334353637
  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 CourseCopyAttendance 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::Resource($params['id'], RESOURCE_ATTENDANCE);
  20. $this->params = $params;
  21. }
  22. public function show()
  23. {
  24. parent::show();
  25. echo $this->params['name'];
  26. }
  27. public function add_attendance_calendar($data)
  28. {
  29. $this->attendance_calendar[] = $data;
  30. }
  31. }