Thematic.class.php 769 B

12345678910111213141516171819202122232425262728293031323334353637383940
  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 Resource {
  9. /** All params
  10. * */
  11. var $params = array();
  12. var $thematic_advance_list = array();
  13. var $thematic_plan_list = array();
  14. /**
  15. * Create a new Thematic
  16. *
  17. * @param array parameters
  18. */
  19. public function __construct($params) {
  20. parent::Resource($params['id'], RESOURCE_THEMATIC);
  21. $this->params = $params;
  22. }
  23. public function show() {
  24. parent::show();
  25. echo $this->params['title'];
  26. }
  27. public function add_thematic_advance($data) {
  28. $this->thematic_advance_list[] = $data;
  29. }
  30. public function add_thematic_plan($data) {
  31. $this->thematic_plan_list[] = $data;
  32. }
  33. }