glossary.class.php 3.5 KB

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