src/CourseBundle/Component/CourseCopy/Resources/LinkCategory.php
<?php
/* For licensing terms, see /license.txt */
namespace Chamilo\CourseBundle\Component\CourseCopy\Resources;
/**
* A LinkCategory.
*
* @author Bart Mollet <bart.mollet@hogent.be>
*/
class LinkCategory extends 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 />';
}
}