forum_post.class.php 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352
  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 ForumPost extends \CourseEntity
  10. {
  11. /**
  12. * @return \Entity\Repository\ForumPostRepository
  13. */
  14. public static function repository(){
  15. return \Entity\Repository\ForumPostRepository::instance();
  16. }
  17. /**
  18. * @return \Entity\ForumPost
  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 $post_id
  29. */
  30. protected $post_id;
  31. /**
  32. * @var string $post_title
  33. */
  34. protected $post_title;
  35. /**
  36. * @var text $post_text
  37. */
  38. protected $post_text;
  39. /**
  40. * @var integer $thread_id
  41. */
  42. protected $thread_id;
  43. /**
  44. * @var integer $forum_id
  45. */
  46. protected $forum_id;
  47. /**
  48. * @var integer $poster_id
  49. */
  50. protected $poster_id;
  51. /**
  52. * @var string $poster_name
  53. */
  54. protected $poster_name;
  55. /**
  56. * @var datetime $post_date
  57. */
  58. protected $post_date;
  59. /**
  60. * @var boolean $post_notification
  61. */
  62. protected $post_notification;
  63. /**
  64. * @var integer $post_parent_id
  65. */
  66. protected $post_parent_id;
  67. /**
  68. * @var boolean $visible
  69. */
  70. protected $visible;
  71. /**
  72. * Set c_id
  73. *
  74. * @param integer $value
  75. * @return ForumPost
  76. */
  77. public function set_c_id($value)
  78. {
  79. $this->c_id = $value;
  80. return $this;
  81. }
  82. /**
  83. * Get c_id
  84. *
  85. * @return integer
  86. */
  87. public function get_c_id()
  88. {
  89. return $this->c_id;
  90. }
  91. /**
  92. * Set post_id
  93. *
  94. * @param integer $value
  95. * @return ForumPost
  96. */
  97. public function set_post_id($value)
  98. {
  99. $this->post_id = $value;
  100. return $this;
  101. }
  102. /**
  103. * Get post_id
  104. *
  105. * @return integer
  106. */
  107. public function get_post_id()
  108. {
  109. return $this->post_id;
  110. }
  111. /**
  112. * Set post_title
  113. *
  114. * @param string $value
  115. * @return ForumPost
  116. */
  117. public function set_post_title($value)
  118. {
  119. $this->post_title = $value;
  120. return $this;
  121. }
  122. /**
  123. * Get post_title
  124. *
  125. * @return string
  126. */
  127. public function get_post_title()
  128. {
  129. return $this->post_title;
  130. }
  131. /**
  132. * Set post_text
  133. *
  134. * @param text $value
  135. * @return ForumPost
  136. */
  137. public function set_post_text($value)
  138. {
  139. $this->post_text = $value;
  140. return $this;
  141. }
  142. /**
  143. * Get post_text
  144. *
  145. * @return text
  146. */
  147. public function get_post_text()
  148. {
  149. return $this->post_text;
  150. }
  151. /**
  152. * Set thread_id
  153. *
  154. * @param integer $value
  155. * @return ForumPost
  156. */
  157. public function set_thread_id($value)
  158. {
  159. $this->thread_id = $value;
  160. return $this;
  161. }
  162. /**
  163. * Get thread_id
  164. *
  165. * @return integer
  166. */
  167. public function get_thread_id()
  168. {
  169. return $this->thread_id;
  170. }
  171. /**
  172. * Set forum_id
  173. *
  174. * @param integer $value
  175. * @return ForumPost
  176. */
  177. public function set_forum_id($value)
  178. {
  179. $this->forum_id = $value;
  180. return $this;
  181. }
  182. /**
  183. * Get forum_id
  184. *
  185. * @return integer
  186. */
  187. public function get_forum_id()
  188. {
  189. return $this->forum_id;
  190. }
  191. /**
  192. * Set poster_id
  193. *
  194. * @param integer $value
  195. * @return ForumPost
  196. */
  197. public function set_poster_id($value)
  198. {
  199. $this->poster_id = $value;
  200. return $this;
  201. }
  202. /**
  203. * Get poster_id
  204. *
  205. * @return integer
  206. */
  207. public function get_poster_id()
  208. {
  209. return $this->poster_id;
  210. }
  211. /**
  212. * Set poster_name
  213. *
  214. * @param string $value
  215. * @return ForumPost
  216. */
  217. public function set_poster_name($value)
  218. {
  219. $this->poster_name = $value;
  220. return $this;
  221. }
  222. /**
  223. * Get poster_name
  224. *
  225. * @return string
  226. */
  227. public function get_poster_name()
  228. {
  229. return $this->poster_name;
  230. }
  231. /**
  232. * Set post_date
  233. *
  234. * @param datetime $value
  235. * @return ForumPost
  236. */
  237. public function set_post_date($value)
  238. {
  239. $this->post_date = $value;
  240. return $this;
  241. }
  242. /**
  243. * Get post_date
  244. *
  245. * @return datetime
  246. */
  247. public function get_post_date()
  248. {
  249. return $this->post_date;
  250. }
  251. /**
  252. * Set post_notification
  253. *
  254. * @param boolean $value
  255. * @return ForumPost
  256. */
  257. public function set_post_notification($value)
  258. {
  259. $this->post_notification = $value;
  260. return $this;
  261. }
  262. /**
  263. * Get post_notification
  264. *
  265. * @return boolean
  266. */
  267. public function get_post_notification()
  268. {
  269. return $this->post_notification;
  270. }
  271. /**
  272. * Set post_parent_id
  273. *
  274. * @param integer $value
  275. * @return ForumPost
  276. */
  277. public function set_post_parent_id($value)
  278. {
  279. $this->post_parent_id = $value;
  280. return $this;
  281. }
  282. /**
  283. * Get post_parent_id
  284. *
  285. * @return integer
  286. */
  287. public function get_post_parent_id()
  288. {
  289. return $this->post_parent_id;
  290. }
  291. /**
  292. * Set visible
  293. *
  294. * @param boolean $value
  295. * @return ForumPost
  296. */
  297. public function set_visible($value)
  298. {
  299. $this->visible = $value;
  300. return $this;
  301. }
  302. /**
  303. * Get visible
  304. *
  305. * @return boolean
  306. */
  307. public function get_visible()
  308. {
  309. return $this->visible;
  310. }
  311. }