chamilo/chamilo-lms

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

Summary

Maintainability
A
0 mins
Test Coverage
<?php

/* For licensing terms, see /license.txt */

namespace Chamilo\CourseBundle\Component\CourseCopy\Resources;

/**
 * Add resource glossary.
 *
 * @author Isaac flores
 */
class Glossary extends Resource
{
    public $glossary_id;
    public $name;
    public $description;
    public $display_order;

    /**
     * Create a new Glossary.
     *
     * @param int    $id
     * @param string $name
     * @param string $description
     * @param int    $display_order
     */
    public function __construct($id, $name, $description, $display_order)
    {
        parent::__construct($id, RESOURCE_GLOSSARY);
        $this->glossary_id = $id;
        $this->name = $name;
        $this->description = $description;
        $this->display_order = $display_order;
    }

    /**
     * Show this glossary.
     */
    public function show()
    {
        parent::show();
        echo $this->name;
    }
}