forum_forum.class.php 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622
  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 ForumForum extends \CourseEntity
  10. {
  11. /**
  12. * @return \Entity\Repository\ForumForumRepository
  13. */
  14. public static function repository(){
  15. return \Entity\Repository\ForumForumRepository::instance();
  16. }
  17. /**
  18. * @return \Entity\ForumForum
  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 $forum_id
  29. */
  30. protected $forum_id;
  31. /**
  32. * @var string $forum_title
  33. */
  34. protected $forum_title;
  35. /**
  36. * @var text $forum_comment
  37. */
  38. protected $forum_comment;
  39. /**
  40. * @var integer $forum_threads
  41. */
  42. protected $forum_threads;
  43. /**
  44. * @var integer $forum_posts
  45. */
  46. protected $forum_posts;
  47. /**
  48. * @var integer $forum_last_post
  49. */
  50. protected $forum_last_post;
  51. /**
  52. * @var integer $forum_category
  53. */
  54. protected $forum_category;
  55. /**
  56. * @var integer $allow_anonymous
  57. */
  58. protected $allow_anonymous;
  59. /**
  60. * @var integer $allow_edit
  61. */
  62. protected $allow_edit;
  63. /**
  64. * @var string $approval_direct_post
  65. */
  66. protected $approval_direct_post;
  67. /**
  68. * @var integer $allow_attachments
  69. */
  70. protected $allow_attachments;
  71. /**
  72. * @var integer $allow_new_threads
  73. */
  74. protected $allow_new_threads;
  75. /**
  76. * @var string $default_view
  77. */
  78. protected $default_view;
  79. /**
  80. * @var string $forum_of_group
  81. */
  82. protected $forum_of_group;
  83. /**
  84. * @var string $forum_group_public_private
  85. */
  86. protected $forum_group_public_private;
  87. /**
  88. * @var integer $forum_order
  89. */
  90. protected $forum_order;
  91. /**
  92. * @var integer $locked
  93. */
  94. protected $locked;
  95. /**
  96. * @var integer $session_id
  97. */
  98. protected $session_id;
  99. /**
  100. * @var string $forum_image
  101. */
  102. protected $forum_image;
  103. /**
  104. * @var datetime $start_time
  105. */
  106. protected $start_time;
  107. /**
  108. * @var datetime $end_time
  109. */
  110. protected $end_time;
  111. /**
  112. * Set c_id
  113. *
  114. * @param integer $value
  115. * @return ForumForum
  116. */
  117. public function set_c_id($value)
  118. {
  119. $this->c_id = $value;
  120. return $this;
  121. }
  122. /**
  123. * Get c_id
  124. *
  125. * @return integer
  126. */
  127. public function get_c_id()
  128. {
  129. return $this->c_id;
  130. }
  131. /**
  132. * Set forum_id
  133. *
  134. * @param integer $value
  135. * @return ForumForum
  136. */
  137. public function set_forum_id($value)
  138. {
  139. $this->forum_id = $value;
  140. return $this;
  141. }
  142. /**
  143. * Get forum_id
  144. *
  145. * @return integer
  146. */
  147. public function get_forum_id()
  148. {
  149. return $this->forum_id;
  150. }
  151. /**
  152. * Set forum_title
  153. *
  154. * @param string $value
  155. * @return ForumForum
  156. */
  157. public function set_forum_title($value)
  158. {
  159. $this->forum_title = $value;
  160. return $this;
  161. }
  162. /**
  163. * Get forum_title
  164. *
  165. * @return string
  166. */
  167. public function get_forum_title()
  168. {
  169. return $this->forum_title;
  170. }
  171. /**
  172. * Set forum_comment
  173. *
  174. * @param text $value
  175. * @return ForumForum
  176. */
  177. public function set_forum_comment($value)
  178. {
  179. $this->forum_comment = $value;
  180. return $this;
  181. }
  182. /**
  183. * Get forum_comment
  184. *
  185. * @return text
  186. */
  187. public function get_forum_comment()
  188. {
  189. return $this->forum_comment;
  190. }
  191. /**
  192. * Set forum_threads
  193. *
  194. * @param integer $value
  195. * @return ForumForum
  196. */
  197. public function set_forum_threads($value)
  198. {
  199. $this->forum_threads = $value;
  200. return $this;
  201. }
  202. /**
  203. * Get forum_threads
  204. *
  205. * @return integer
  206. */
  207. public function get_forum_threads()
  208. {
  209. return $this->forum_threads;
  210. }
  211. /**
  212. * Set forum_posts
  213. *
  214. * @param integer $value
  215. * @return ForumForum
  216. */
  217. public function set_forum_posts($value)
  218. {
  219. $this->forum_posts = $value;
  220. return $this;
  221. }
  222. /**
  223. * Get forum_posts
  224. *
  225. * @return integer
  226. */
  227. public function get_forum_posts()
  228. {
  229. return $this->forum_posts;
  230. }
  231. /**
  232. * Set forum_last_post
  233. *
  234. * @param integer $value
  235. * @return ForumForum
  236. */
  237. public function set_forum_last_post($value)
  238. {
  239. $this->forum_last_post = $value;
  240. return $this;
  241. }
  242. /**
  243. * Get forum_last_post
  244. *
  245. * @return integer
  246. */
  247. public function get_forum_last_post()
  248. {
  249. return $this->forum_last_post;
  250. }
  251. /**
  252. * Set forum_category
  253. *
  254. * @param integer $value
  255. * @return ForumForum
  256. */
  257. public function set_forum_category($value)
  258. {
  259. $this->forum_category = $value;
  260. return $this;
  261. }
  262. /**
  263. * Get forum_category
  264. *
  265. * @return integer
  266. */
  267. public function get_forum_category()
  268. {
  269. return $this->forum_category;
  270. }
  271. /**
  272. * Set allow_anonymous
  273. *
  274. * @param integer $value
  275. * @return ForumForum
  276. */
  277. public function set_allow_anonymous($value)
  278. {
  279. $this->allow_anonymous = $value;
  280. return $this;
  281. }
  282. /**
  283. * Get allow_anonymous
  284. *
  285. * @return integer
  286. */
  287. public function get_allow_anonymous()
  288. {
  289. return $this->allow_anonymous;
  290. }
  291. /**
  292. * Set allow_edit
  293. *
  294. * @param integer $value
  295. * @return ForumForum
  296. */
  297. public function set_allow_edit($value)
  298. {
  299. $this->allow_edit = $value;
  300. return $this;
  301. }
  302. /**
  303. * Get allow_edit
  304. *
  305. * @return integer
  306. */
  307. public function get_allow_edit()
  308. {
  309. return $this->allow_edit;
  310. }
  311. /**
  312. * Set approval_direct_post
  313. *
  314. * @param string $value
  315. * @return ForumForum
  316. */
  317. public function set_approval_direct_post($value)
  318. {
  319. $this->approval_direct_post = $value;
  320. return $this;
  321. }
  322. /**
  323. * Get approval_direct_post
  324. *
  325. * @return string
  326. */
  327. public function get_approval_direct_post()
  328. {
  329. return $this->approval_direct_post;
  330. }
  331. /**
  332. * Set allow_attachments
  333. *
  334. * @param integer $value
  335. * @return ForumForum
  336. */
  337. public function set_allow_attachments($value)
  338. {
  339. $this->allow_attachments = $value;
  340. return $this;
  341. }
  342. /**
  343. * Get allow_attachments
  344. *
  345. * @return integer
  346. */
  347. public function get_allow_attachments()
  348. {
  349. return $this->allow_attachments;
  350. }
  351. /**
  352. * Set allow_new_threads
  353. *
  354. * @param integer $value
  355. * @return ForumForum
  356. */
  357. public function set_allow_new_threads($value)
  358. {
  359. $this->allow_new_threads = $value;
  360. return $this;
  361. }
  362. /**
  363. * Get allow_new_threads
  364. *
  365. * @return integer
  366. */
  367. public function get_allow_new_threads()
  368. {
  369. return $this->allow_new_threads;
  370. }
  371. /**
  372. * Set default_view
  373. *
  374. * @param string $value
  375. * @return ForumForum
  376. */
  377. public function set_default_view($value)
  378. {
  379. $this->default_view = $value;
  380. return $this;
  381. }
  382. /**
  383. * Get default_view
  384. *
  385. * @return string
  386. */
  387. public function get_default_view()
  388. {
  389. return $this->default_view;
  390. }
  391. /**
  392. * Set forum_of_group
  393. *
  394. * @param string $value
  395. * @return ForumForum
  396. */
  397. public function set_forum_of_group($value)
  398. {
  399. $this->forum_of_group = $value;
  400. return $this;
  401. }
  402. /**
  403. * Get forum_of_group
  404. *
  405. * @return string
  406. */
  407. public function get_forum_of_group()
  408. {
  409. return $this->forum_of_group;
  410. }
  411. /**
  412. * Set forum_group_public_private
  413. *
  414. * @param string $value
  415. * @return ForumForum
  416. */
  417. public function set_forum_group_public_private($value)
  418. {
  419. $this->forum_group_public_private = $value;
  420. return $this;
  421. }
  422. /**
  423. * Get forum_group_public_private
  424. *
  425. * @return string
  426. */
  427. public function get_forum_group_public_private()
  428. {
  429. return $this->forum_group_public_private;
  430. }
  431. /**
  432. * Set forum_order
  433. *
  434. * @param integer $value
  435. * @return ForumForum
  436. */
  437. public function set_forum_order($value)
  438. {
  439. $this->forum_order = $value;
  440. return $this;
  441. }
  442. /**
  443. * Get forum_order
  444. *
  445. * @return integer
  446. */
  447. public function get_forum_order()
  448. {
  449. return $this->forum_order;
  450. }
  451. /**
  452. * Set locked
  453. *
  454. * @param integer $value
  455. * @return ForumForum
  456. */
  457. public function set_locked($value)
  458. {
  459. $this->locked = $value;
  460. return $this;
  461. }
  462. /**
  463. * Get locked
  464. *
  465. * @return integer
  466. */
  467. public function get_locked()
  468. {
  469. return $this->locked;
  470. }
  471. /**
  472. * Set session_id
  473. *
  474. * @param integer $value
  475. * @return ForumForum
  476. */
  477. public function set_session_id($value)
  478. {
  479. $this->session_id = $value;
  480. return $this;
  481. }
  482. /**
  483. * Get session_id
  484. *
  485. * @return integer
  486. */
  487. public function get_session_id()
  488. {
  489. return $this->session_id;
  490. }
  491. /**
  492. * Set forum_image
  493. *
  494. * @param string $value
  495. * @return ForumForum
  496. */
  497. public function set_forum_image($value)
  498. {
  499. $this->forum_image = $value;
  500. return $this;
  501. }
  502. /**
  503. * Get forum_image
  504. *
  505. * @return string
  506. */
  507. public function get_forum_image()
  508. {
  509. return $this->forum_image;
  510. }
  511. /**
  512. * Set start_time
  513. *
  514. * @param datetime $value
  515. * @return ForumForum
  516. */
  517. public function set_start_time($value)
  518. {
  519. $this->start_time = $value;
  520. return $this;
  521. }
  522. /**
  523. * Get start_time
  524. *
  525. * @return datetime
  526. */
  527. public function get_start_time()
  528. {
  529. return $this->start_time;
  530. }
  531. /**
  532. * Set end_time
  533. *
  534. * @param datetime $value
  535. * @return ForumForum
  536. */
  537. public function set_end_time($value)
  538. {
  539. $this->end_time = $value;
  540. return $this;
  541. }
  542. /**
  543. * Get end_time
  544. *
  545. * @return datetime
  546. */
  547. public function get_end_time()
  548. {
  549. return $this->end_time;
  550. }
  551. }