notebook.class.php 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319
  1. <?php
  2. namespace Notebook;
  3. /**
  4. *
  5. * @license see /license.txt
  6. * @author autogenerated
  7. */
  8. class Notebook extends \Entity
  9. {
  10. /**
  11. * @return \Notebook\NotebookRepository
  12. */
  13. public static function repository(){
  14. return NotebookRepository::instance();
  15. }
  16. /**
  17. * @return \Notebook\Notebook
  18. */
  19. public static function create($data = null){
  20. return new self($data);
  21. }
  22. /**
  23. * @var integer $c_id
  24. */
  25. protected $c_id;
  26. /**
  27. * @var integer $notebook_id
  28. */
  29. protected $notebook_id;
  30. /**
  31. * @var integer $user_id
  32. */
  33. protected $user_id;
  34. /**
  35. * @var string $course
  36. */
  37. protected $course;
  38. /**
  39. * @var integer $session_id
  40. */
  41. protected $session_id;
  42. /**
  43. * @var string $title
  44. */
  45. protected $title;
  46. /**
  47. * @var text $description
  48. */
  49. protected $description;
  50. /**
  51. * @var datetime $creation_date
  52. */
  53. protected $creation_date;
  54. /**
  55. * @var datetime $update_date
  56. */
  57. protected $update_date;
  58. /**
  59. * @var integer $status
  60. */
  61. protected $status;
  62. /**
  63. * Set c_id
  64. *
  65. * @param integer $value
  66. * @return Notebook
  67. */
  68. public function set_c_id($value)
  69. {
  70. $this->c_id = $value;
  71. return $this;
  72. }
  73. /**
  74. * Get c_id
  75. *
  76. * @return integer
  77. */
  78. public function get_c_id()
  79. {
  80. return $this->c_id;
  81. }
  82. /**
  83. * Alias for notebook id. Better to use the same naming convention
  84. * for all classes.
  85. *
  86. * @return integer
  87. */
  88. public function get_id()
  89. {
  90. return $this->notebook_id;
  91. }
  92. /**
  93. * Set notebook_id
  94. *
  95. * @param integer $value
  96. * @return Notebook
  97. */
  98. public function set_id($value)
  99. {
  100. $this->notebook_id = $value;
  101. return $this;
  102. }
  103. /**
  104. * Set notebook_id
  105. *
  106. * @param integer $value
  107. * @return Notebook
  108. */
  109. public function set_notebook_id($value)
  110. {
  111. $this->notebook_id = $value;
  112. return $this;
  113. }
  114. /**
  115. * Get notebook_id
  116. *
  117. * @return integer
  118. */
  119. public function get_notebook_id()
  120. {
  121. return $this->notebook_id;
  122. }
  123. /**
  124. * Set user_id
  125. *
  126. * @param integer $value
  127. * @return Notebook
  128. */
  129. public function set_user_id($value)
  130. {
  131. $this->user_id = $value;
  132. return $this;
  133. }
  134. /**
  135. * Get user_id
  136. *
  137. * @return integer
  138. */
  139. public function get_user_id()
  140. {
  141. return $this->user_id;
  142. }
  143. /**
  144. * Set course
  145. *
  146. * @param string $value
  147. * @return Notebook
  148. */
  149. public function set_course($value)
  150. {
  151. $this->course = $value;
  152. return $this;
  153. }
  154. /**
  155. * Get course
  156. *
  157. * @return string
  158. */
  159. public function get_course()
  160. {
  161. return $this->course;
  162. }
  163. /**
  164. * Set session_id
  165. *
  166. * @param integer $value
  167. * @return Notebook
  168. */
  169. public function set_session_id($value)
  170. {
  171. $this->session_id = $value;
  172. return $this;
  173. }
  174. /**
  175. * Get session_id
  176. *
  177. * @return integer
  178. */
  179. public function get_session_id()
  180. {
  181. return $this->session_id;
  182. }
  183. /**
  184. * Set title
  185. *
  186. * @param string $value
  187. * @return Notebook
  188. */
  189. public function set_title($value)
  190. {
  191. $this->title = $value;
  192. return $this;
  193. }
  194. /**
  195. * Get title
  196. *
  197. * @return string
  198. */
  199. public function get_title()
  200. {
  201. return $this->title;
  202. }
  203. /**
  204. * Set description
  205. *
  206. * @param text $value
  207. * @return Notebook
  208. */
  209. public function set_description($value)
  210. {
  211. $this->description = $value;
  212. return $this;
  213. }
  214. /**
  215. * Get description
  216. *
  217. * @return text
  218. */
  219. public function get_description()
  220. {
  221. return $this->description;
  222. }
  223. /**
  224. * Set creation_date
  225. *
  226. * @param datetime $value
  227. * @return Notebook
  228. */
  229. public function set_creation_date($value)
  230. {
  231. $this->creation_date = $value;
  232. return $this;
  233. }
  234. /**
  235. * Get creation_date
  236. *
  237. * @return datetime
  238. */
  239. public function get_creation_date()
  240. {
  241. return $this->creation_date;
  242. }
  243. /**
  244. * Set update_date
  245. *
  246. * @param datetime $value
  247. * @return Notebook
  248. */
  249. public function set_update_date($value)
  250. {
  251. $this->update_date = $value;
  252. return $this;
  253. }
  254. /**
  255. * Get update_date
  256. *
  257. * @return datetime
  258. */
  259. public function get_update_date()
  260. {
  261. return $this->update_date;
  262. }
  263. /**
  264. * Set status
  265. *
  266. * @param integer $value
  267. * @return Notebook
  268. */
  269. public function set_status($value)
  270. {
  271. $this->status = $value;
  272. return $this;
  273. }
  274. /**
  275. * Get status
  276. *
  277. * @return integer
  278. */
  279. public function get_status()
  280. {
  281. return $this->status;
  282. }
  283. }