123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- <?php
- /* For licensing terms, see /license.txt */
- require_once 'Resource.class.php';
- /**
- * A LinkCategory
- * @author Bart Mollet <bart.mollet@hogent.be>
- * @package chamilo.backup
- */
- class LinkCategory extends Coursecopy\Resource
- {
- /**
- * The title
- */
- public $title;
- /**
- * The description
- */
- public $description;
- /**
- * The display order
- */
- public $display_order;
- /**
- * Create a new LinkCategory
- * @param int $id
- * @param string $title
- * @param string $description
- */
- public function __construct($id,$title,$description,$display_order)
- {
- parent::__construct($id,RESOURCE_LINKCATEGORY);
- $this->title = $title;
- $this->description = $description;
- $this->display_order = $display_order;
- }
- /**
- * Show this LinkCategory
- */
- public function show()
- {
- parent::show();
- echo $this->title.' '.$this->description.'<br />';
- }
- }
|