123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220 |
- <?php
- /* For licensing terms, see /license.txt */
- /**
- * Glossay class definition
- * @package chamilo.glossary
- */
- /**
- * Init
- */
- namespace Glossary;
- /**
- * Glossary entry. Model for database access
- *
- * @license see /license.txt
- * @author autogenerated
- */
- class Glossary extends \Entity
- {
- /**
- * @return \Glossary\GlossaryRepository
- */
- public static function repository(){
- return GlossaryRepository::instance();
- }
- /**
- * @return \Glossary\Glossary
- */
- public static function create($data = null){
- return new self($data);
- }
- /**
- * @var integer $c_id
- */
- protected $c_id;
- /**
- * @var integer $glossary_id
- */
- protected $glossary_id;
- /**
- * @var string $name
- */
- protected $name;
- /**
- * @var text $description
- */
- protected $description;
- /**
- * @var integer $display_order
- */
- protected $display_order;
- /**
- * @var integer $session_id
- */
- protected $session_id;
- /**
- * Set c_id
- *
- * @param integer $value
- * @return Glossary
- */
- public function set_c_id($value)
- {
- $this->c_id = $value;
- return $this;
- }
- /**
- * The course id
- *
- * @return integer
- */
- public function get_c_id()
- {
- return $this->c_id;
- }
- /**
- * Set glossary entry id
- *
- * @param integer $value
- * @return Glossary
- */
- public function set_glossary_id($value)
- {
- $this->glossary_id = $value;
- return $this;
- }
- /**
- * Get glossary_id
- *
- * @return integer
- */
- public function get_glossary_id()
- {
- return $this->glossary_id;
- }
-
- /**
- * Alias for glossary id. Better to use the same naming convention
- * for all classes.
- *
- * @return integer
- */
- public function get_id()
- {
- return $this->glossary_id;
- }
- /**
- * Set glossary_id
- *
- * @param integer $value
- * @return Glossary
- */
- public function set_id($value)
- {
- $this->glossary_id = $value;
- return $this;
- }
-
- /**
- * Set name
- *
- * @param string $value
- * @return Glossary
- */
- public function set_name($value)
- {
- $this->name = $value;
- return $this;
- }
- /**
- * The name/title of the glossary entry
- *
- * @return string
- */
- public function get_name()
- {
- return $this->name;
- }
- /**
- * Set description
- *
- * @param text $value
- * @return Glossary
- */
- public function set_description($value)
- {
- $this->description = $value;
- return $this;
- }
- /**
- * The description/definition of the glossary entry
- *
- * @return text
- */
- public function get_description()
- {
- return $this->description;
- }
- /**
- * Set display_order
- *
- * @param integer $value
- * @return Glossary
- */
- public function set_display_order($value)
- {
- $this->display_order = $value;
- return $this;
- }
- /**
- * The display order. Not used.
- *
- * @return integer
- */
- public function get_display_order()
- {
- return $this->display_order;
- }
- /**
- * Set session_id
- *
- * @param integer $value
- * @return Glossary
- */
- public function set_session_id($value)
- {
- $this->session_id = $value;
- return $this;
- }
- /**
- * The session id.
- *
- * @return integer
- */
- public function get_session_id()
- {
- return $this->session_id;
- }
- }
|