chamilo/chamilo-lms

View on GitHub
src/CourseBundle/Component/CourseCopy/Resources/ForumCategory.php

Summary

Maintainability
A
0 mins
Test Coverage
<?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;
    }
}