announcement.class.php 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244
  1. <?php
  2. namespace Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5. *
  6. * @license see /license.txt
  7. * @author autogenerated
  8. */
  9. class Announcement extends \CourseEntity
  10. {
  11. /**
  12. * @return \Entity\Repository\AnnouncementRepository
  13. */
  14. public static function repository(){
  15. return \Entity\Repository\AnnouncementRepository::instance();
  16. }
  17. /**
  18. * @return \Entity\Announcement
  19. */
  20. public static function create(){
  21. return new self();
  22. }
  23. /**
  24. * @var integer $c_id
  25. */
  26. protected $c_id;
  27. /**
  28. * @var integer $id
  29. */
  30. protected $id;
  31. /**
  32. * @var text $title
  33. */
  34. protected $title;
  35. /**
  36. * @var text $content
  37. */
  38. protected $content;
  39. /**
  40. * @var date $end_date
  41. */
  42. protected $end_date;
  43. /**
  44. * @var integer $display_order
  45. */
  46. protected $display_order;
  47. /**
  48. * @var boolean $email_sent
  49. */
  50. protected $email_sent;
  51. /**
  52. * @var integer $session_id
  53. */
  54. protected $session_id;
  55. /**
  56. * Set c_id
  57. *
  58. * @param integer $value
  59. * @return Announcement
  60. */
  61. public function set_c_id($value)
  62. {
  63. $this->c_id = $value;
  64. return $this;
  65. }
  66. /**
  67. * Get c_id
  68. *
  69. * @return integer
  70. */
  71. public function get_c_id()
  72. {
  73. return $this->c_id;
  74. }
  75. /**
  76. * Set id
  77. *
  78. * @param integer $value
  79. * @return Announcement
  80. */
  81. public function set_id($value)
  82. {
  83. $this->id = $value;
  84. return $this;
  85. }
  86. /**
  87. * Get id
  88. *
  89. * @return integer
  90. */
  91. public function get_id()
  92. {
  93. return $this->id;
  94. }
  95. /**
  96. * Set title
  97. *
  98. * @param text $value
  99. * @return Announcement
  100. */
  101. public function set_title($value)
  102. {
  103. $this->title = $value;
  104. return $this;
  105. }
  106. /**
  107. * Get title
  108. *
  109. * @return text
  110. */
  111. public function get_title()
  112. {
  113. return $this->title;
  114. }
  115. /**
  116. * Set content
  117. *
  118. * @param text $value
  119. * @return Announcement
  120. */
  121. public function set_content($value)
  122. {
  123. $this->content = $value;
  124. return $this;
  125. }
  126. /**
  127. * Get content
  128. *
  129. * @return text
  130. */
  131. public function get_content()
  132. {
  133. return $this->content;
  134. }
  135. /**
  136. * Set end_date
  137. *
  138. * @param date $value
  139. * @return Announcement
  140. */
  141. public function set_end_date($value)
  142. {
  143. $this->end_date = $value;
  144. return $this;
  145. }
  146. /**
  147. * Get end_date
  148. *
  149. * @return date
  150. */
  151. public function get_end_date()
  152. {
  153. return $this->end_date;
  154. }
  155. /**
  156. * Set display_order
  157. *
  158. * @param integer $value
  159. * @return Announcement
  160. */
  161. public function set_display_order($value)
  162. {
  163. $this->display_order = $value;
  164. return $this;
  165. }
  166. /**
  167. * Get display_order
  168. *
  169. * @return integer
  170. */
  171. public function get_display_order()
  172. {
  173. return $this->display_order;
  174. }
  175. /**
  176. * Set email_sent
  177. *
  178. * @param boolean $value
  179. * @return Announcement
  180. */
  181. public function set_email_sent($value)
  182. {
  183. $this->email_sent = $value;
  184. return $this;
  185. }
  186. /**
  187. * Get email_sent
  188. *
  189. * @return boolean
  190. */
  191. public function get_email_sent()
  192. {
  193. return $this->email_sent;
  194. }
  195. /**
  196. * Set session_id
  197. *
  198. * @param integer $value
  199. * @return Announcement
  200. */
  201. public function set_session_id($value)
  202. {
  203. $this->session_id = $value;
  204. return $this;
  205. }
  206. /**
  207. * Get session_id
  208. *
  209. * @return integer
  210. */
  211. public function get_session_id()
  212. {
  213. return $this->session_id;
  214. }
  215. }