Attendance.class.php 628 B

123456789101112131415161718192021222324252627282930313233
  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. var $params = array();
  10. var $attendance_calendar = array();
  11. /**
  12. * Create a new Thematic
  13. *
  14. * @param array parameters
  15. */
  16. public function __construct($params) {
  17. parent::Resource($params['id'], RESOURCE_ATTENDANCE);
  18. $this->params = $params;
  19. }
  20. public function show() {
  21. parent::show();
  22. echo $this->params['name'];
  23. }
  24. public function add_attendance_calendar($data) {
  25. $this->attendance_calendar[] = $data;
  26. }
  27. }