Work.class.php 618 B

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