src/CourseBundle/Component/CourseCopy/Resources/ForumCategory.php
<?php
/* For licensing terms, see /license.txt */
namespace Chamilo\CourseBundle\Component\CourseCopy\Resources;
/**
* A forum-category.
*
* @author Bart Mollet <bart.mollet@hogent.be>
*/
class ForumCategory extends Resource
{
/**
* Create a new ForumCategory.
*/
public function __construct($obj)
{
parent::__construct($obj->cat_id, RESOURCE_FORUMCATEGORY);
$this->obj = $obj;
}
/**
* Show this resource.
*/
public function show()
{
parent::show();
echo $this->obj->title;
}
}