blog_comment.class.php 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298
  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 BlogComment extends \CourseEntity
  10. {
  11. /**
  12. * @return \Entity\Repository\BlogCommentRepository
  13. */
  14. public static function repository(){
  15. return \Entity\Repository\BlogCommentRepository::instance();
  16. }
  17. /**
  18. * @return \Entity\BlogComment
  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 $comment_id
  29. */
  30. protected $comment_id;
  31. /**
  32. * @var string $title
  33. */
  34. protected $title;
  35. /**
  36. * @var text $comment
  37. */
  38. protected $comment;
  39. /**
  40. * @var integer $author_id
  41. */
  42. protected $author_id;
  43. /**
  44. * @var datetime $date_creation
  45. */
  46. protected $date_creation;
  47. /**
  48. * @var integer $blog_id
  49. */
  50. protected $blog_id;
  51. /**
  52. * @var integer $post_id
  53. */
  54. protected $post_id;
  55. /**
  56. * @var integer $task_id
  57. */
  58. protected $task_id;
  59. /**
  60. * @var integer $parent_comment_id
  61. */
  62. protected $parent_comment_id;
  63. /**
  64. * Set c_id
  65. *
  66. * @param integer $value
  67. * @return BlogComment
  68. */
  69. public function set_c_id($value)
  70. {
  71. $this->c_id = $value;
  72. return $this;
  73. }
  74. /**
  75. * Get c_id
  76. *
  77. * @return integer
  78. */
  79. public function get_c_id()
  80. {
  81. return $this->c_id;
  82. }
  83. /**
  84. * Set comment_id
  85. *
  86. * @param integer $value
  87. * @return BlogComment
  88. */
  89. public function set_comment_id($value)
  90. {
  91. $this->comment_id = $value;
  92. return $this;
  93. }
  94. /**
  95. * Get comment_id
  96. *
  97. * @return integer
  98. */
  99. public function get_comment_id()
  100. {
  101. return $this->comment_id;
  102. }
  103. /**
  104. * Set title
  105. *
  106. * @param string $value
  107. * @return BlogComment
  108. */
  109. public function set_title($value)
  110. {
  111. $this->title = $value;
  112. return $this;
  113. }
  114. /**
  115. * Get title
  116. *
  117. * @return string
  118. */
  119. public function get_title()
  120. {
  121. return $this->title;
  122. }
  123. /**
  124. * Set comment
  125. *
  126. * @param text $value
  127. * @return BlogComment
  128. */
  129. public function set_comment($value)
  130. {
  131. $this->comment = $value;
  132. return $this;
  133. }
  134. /**
  135. * Get comment
  136. *
  137. * @return text
  138. */
  139. public function get_comment()
  140. {
  141. return $this->comment;
  142. }
  143. /**
  144. * Set author_id
  145. *
  146. * @param integer $value
  147. * @return BlogComment
  148. */
  149. public function set_author_id($value)
  150. {
  151. $this->author_id = $value;
  152. return $this;
  153. }
  154. /**
  155. * Get author_id
  156. *
  157. * @return integer
  158. */
  159. public function get_author_id()
  160. {
  161. return $this->author_id;
  162. }
  163. /**
  164. * Set date_creation
  165. *
  166. * @param datetime $value
  167. * @return BlogComment
  168. */
  169. public function set_date_creation($value)
  170. {
  171. $this->date_creation = $value;
  172. return $this;
  173. }
  174. /**
  175. * Get date_creation
  176. *
  177. * @return datetime
  178. */
  179. public function get_date_creation()
  180. {
  181. return $this->date_creation;
  182. }
  183. /**
  184. * Set blog_id
  185. *
  186. * @param integer $value
  187. * @return BlogComment
  188. */
  189. public function set_blog_id($value)
  190. {
  191. $this->blog_id = $value;
  192. return $this;
  193. }
  194. /**
  195. * Get blog_id
  196. *
  197. * @return integer
  198. */
  199. public function get_blog_id()
  200. {
  201. return $this->blog_id;
  202. }
  203. /**
  204. * Set post_id
  205. *
  206. * @param integer $value
  207. * @return BlogComment
  208. */
  209. public function set_post_id($value)
  210. {
  211. $this->post_id = $value;
  212. return $this;
  213. }
  214. /**
  215. * Get post_id
  216. *
  217. * @return integer
  218. */
  219. public function get_post_id()
  220. {
  221. return $this->post_id;
  222. }
  223. /**
  224. * Set task_id
  225. *
  226. * @param integer $value
  227. * @return BlogComment
  228. */
  229. public function set_task_id($value)
  230. {
  231. $this->task_id = $value;
  232. return $this;
  233. }
  234. /**
  235. * Get task_id
  236. *
  237. * @return integer
  238. */
  239. public function get_task_id()
  240. {
  241. return $this->task_id;
  242. }
  243. /**
  244. * Set parent_comment_id
  245. *
  246. * @param integer $value
  247. * @return BlogComment
  248. */
  249. public function set_parent_comment_id($value)
  250. {
  251. $this->parent_comment_id = $value;
  252. return $this;
  253. }
  254. /**
  255. * Get parent_comment_id
  256. *
  257. * @return integer
  258. */
  259. public function get_parent_comment_id()
  260. {
  261. return $this->parent_comment_id;
  262. }
  263. }