blog_post.class.php 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217
  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 BlogPost extends \CourseEntity
  10. {
  11. /**
  12. * @return \Entity\Repository\BlogPostRepository
  13. */
  14. public static function repository(){
  15. return \Entity\Repository\BlogPostRepository::instance();
  16. }
  17. /**
  18. * @return \Entity\BlogPost
  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 $title
  33. */
  34. protected $title;
  35. /**
  36. * @var text $full_text
  37. */
  38. protected $full_text;
  39. /**
  40. * @var datetime $date_creation
  41. */
  42. protected $date_creation;
  43. /**
  44. * @var integer $blog_id
  45. */
  46. protected $blog_id;
  47. /**
  48. * @var integer $author_id
  49. */
  50. protected $author_id;
  51. /**
  52. * Set c_id
  53. *
  54. * @param integer $value
  55. * @return BlogPost
  56. */
  57. public function set_c_id($value)
  58. {
  59. $this->c_id = $value;
  60. return $this;
  61. }
  62. /**
  63. * Get c_id
  64. *
  65. * @return integer
  66. */
  67. public function get_c_id()
  68. {
  69. return $this->c_id;
  70. }
  71. /**
  72. * Set post_id
  73. *
  74. * @param integer $value
  75. * @return BlogPost
  76. */
  77. public function set_post_id($value)
  78. {
  79. $this->post_id = $value;
  80. return $this;
  81. }
  82. /**
  83. * Get post_id
  84. *
  85. * @return integer
  86. */
  87. public function get_post_id()
  88. {
  89. return $this->post_id;
  90. }
  91. /**
  92. * Set title
  93. *
  94. * @param string $value
  95. * @return BlogPost
  96. */
  97. public function set_title($value)
  98. {
  99. $this->title = $value;
  100. return $this;
  101. }
  102. /**
  103. * Get title
  104. *
  105. * @return string
  106. */
  107. public function get_title()
  108. {
  109. return $this->title;
  110. }
  111. /**
  112. * Set full_text
  113. *
  114. * @param text $value
  115. * @return BlogPost
  116. */
  117. public function set_full_text($value)
  118. {
  119. $this->full_text = $value;
  120. return $this;
  121. }
  122. /**
  123. * Get full_text
  124. *
  125. * @return text
  126. */
  127. public function get_full_text()
  128. {
  129. return $this->full_text;
  130. }
  131. /**
  132. * Set date_creation
  133. *
  134. * @param datetime $value
  135. * @return BlogPost
  136. */
  137. public function set_date_creation($value)
  138. {
  139. $this->date_creation = $value;
  140. return $this;
  141. }
  142. /**
  143. * Get date_creation
  144. *
  145. * @return datetime
  146. */
  147. public function get_date_creation()
  148. {
  149. return $this->date_creation;
  150. }
  151. /**
  152. * Set blog_id
  153. *
  154. * @param integer $value
  155. * @return BlogPost
  156. */
  157. public function set_blog_id($value)
  158. {
  159. $this->blog_id = $value;
  160. return $this;
  161. }
  162. /**
  163. * Get blog_id
  164. *
  165. * @return integer
  166. */
  167. public function get_blog_id()
  168. {
  169. return $this->blog_id;
  170. }
  171. /**
  172. * Set author_id
  173. *
  174. * @param integer $value
  175. * @return BlogPost
  176. */
  177. public function set_author_id($value)
  178. {
  179. $this->author_id = $value;
  180. return $this;
  181. }
  182. /**
  183. * Get author_id
  184. *
  185. * @return integer
  186. */
  187. public function get_author_id()
  188. {
  189. return $this->author_id;
  190. }
  191. }