glossary.class.php 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220
  1. <?php
  2. /* For licensing terms, see /license.txt */
  3. /**
  4. * Glossay class definition
  5. * @package chamilo.glossary
  6. */
  7. /**
  8. * Init
  9. */
  10. namespace Glossary;
  11. /**
  12. * Glossary entry. Model for database access
  13. *
  14. * @license see /license.txt
  15. * @author autogenerated
  16. */
  17. class Glossary extends \Entity
  18. {
  19. /**
  20. * @return \Glossary\GlossaryRepository
  21. */
  22. public static function repository(){
  23. return GlossaryRepository::instance();
  24. }
  25. /**
  26. * @return \Glossary\Glossary
  27. */
  28. public static function create($data = null){
  29. return new self($data);
  30. }
  31. /**
  32. * @var integer $c_id
  33. */
  34. protected $c_id;
  35. /**
  36. * @var integer $glossary_id
  37. */
  38. protected $glossary_id;
  39. /**
  40. * @var string $name
  41. */
  42. protected $name;
  43. /**
  44. * @var text $description
  45. */
  46. protected $description;
  47. /**
  48. * @var integer $display_order
  49. */
  50. protected $display_order;
  51. /**
  52. * @var integer $session_id
  53. */
  54. protected $session_id;
  55. /**
  56. * Set c_id
  57. *
  58. * @param integer $value
  59. * @return Glossary
  60. */
  61. public function set_c_id($value)
  62. {
  63. $this->c_id = $value;
  64. return $this;
  65. }
  66. /**
  67. * The course id
  68. *
  69. * @return integer
  70. */
  71. public function get_c_id()
  72. {
  73. return $this->c_id;
  74. }
  75. /**
  76. * Set glossary entry id
  77. *
  78. * @param integer $value
  79. * @return Glossary
  80. */
  81. public function set_glossary_id($value)
  82. {
  83. $this->glossary_id = $value;
  84. return $this;
  85. }
  86. /**
  87. * Get glossary_id
  88. *
  89. * @return integer
  90. */
  91. public function get_glossary_id()
  92. {
  93. return $this->glossary_id;
  94. }
  95. /**
  96. * Alias for glossary id. Better to use the same naming convention
  97. * for all classes.
  98. *
  99. * @return integer
  100. */
  101. public function get_id()
  102. {
  103. return $this->glossary_id;
  104. }
  105. /**
  106. * Set glossary_id
  107. *
  108. * @param integer $value
  109. * @return Glossary
  110. */
  111. public function set_id($value)
  112. {
  113. $this->glossary_id = $value;
  114. return $this;
  115. }
  116. /**
  117. * Set name
  118. *
  119. * @param string $value
  120. * @return Glossary
  121. */
  122. public function set_name($value)
  123. {
  124. $this->name = $value;
  125. return $this;
  126. }
  127. /**
  128. * The name/title of the glossary entry
  129. *
  130. * @return string
  131. */
  132. public function get_name()
  133. {
  134. return $this->name;
  135. }
  136. /**
  137. * Set description
  138. *
  139. * @param text $value
  140. * @return Glossary
  141. */
  142. public function set_description($value)
  143. {
  144. $this->description = $value;
  145. return $this;
  146. }
  147. /**
  148. * The description/definition of the glossary entry
  149. *
  150. * @return text
  151. */
  152. public function get_description()
  153. {
  154. return $this->description;
  155. }
  156. /**
  157. * Set display_order
  158. *
  159. * @param integer $value
  160. * @return Glossary
  161. */
  162. public function set_display_order($value)
  163. {
  164. $this->display_order = $value;
  165. return $this;
  166. }
  167. /**
  168. * The display order. Not used.
  169. *
  170. * @return integer
  171. */
  172. public function get_display_order()
  173. {
  174. return $this->display_order;
  175. }
  176. /**
  177. * Set session_id
  178. *
  179. * @param integer $value
  180. * @return Glossary
  181. */
  182. public function set_session_id($value)
  183. {
  184. $this->session_id = $value;
  185. return $this;
  186. }
  187. /**
  188. * The session id.
  189. *
  190. * @return integer
  191. */
  192. public function get_session_id()
  193. {
  194. return $this->session_id;
  195. }
  196. }