Thematic.class.php 848 B

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