Work.class.php 679 B

123456789101112131415161718192021222324252627282930313233343536
  1. <?php
  2. /* For licensing terms, see /license.txt */
  3. /**
  4. * Work/Assignment/Student publication backup script
  5. * @package chamilo.backup
  6. */
  7. /**
  8. * Code
  9. */
  10. require_once 'Resource.class.php';
  11. /**
  12. * An event
  13. * @author Yannick Warnier <yannick.warnier@beeznest.com>
  14. * @package chamilo.backup
  15. */
  16. class Work extends Resource
  17. {
  18. public $params = array();
  19. /**
  20. * Create a new Work
  21. *
  22. * @param array parameters
  23. */
  24. public function __construct($params)
  25. {
  26. parent::Resource($params['id'], RESOURCE_WORK);
  27. $this->params = $params;
  28. }
  29. public function show()
  30. {
  31. parent::show();
  32. echo $this->params['title'];
  33. }
  34. }