document.class.php 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271
  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 Document extends \CourseEntity
  10. {
  11. /**
  12. * @return \Entity\Repository\DocumentRepository
  13. */
  14. public static function repository(){
  15. return \Entity\Repository\DocumentRepository::instance();
  16. }
  17. /**
  18. * @return \Entity\Document
  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 $id
  29. */
  30. protected $id;
  31. /**
  32. * @var string $path
  33. */
  34. protected $path;
  35. /**
  36. * @var text $comment
  37. */
  38. protected $comment;
  39. /**
  40. * @var string $title
  41. */
  42. protected $title;
  43. /**
  44. * @var string $filetype
  45. */
  46. protected $filetype;
  47. /**
  48. * @var integer $size
  49. */
  50. protected $size;
  51. /**
  52. * @var boolean $readonly
  53. */
  54. protected $readonly;
  55. /**
  56. * @var integer $session_id
  57. */
  58. protected $session_id;
  59. /**
  60. * Set c_id
  61. *
  62. * @param integer $value
  63. * @return Document
  64. */
  65. public function set_c_id($value)
  66. {
  67. $this->c_id = $value;
  68. return $this;
  69. }
  70. /**
  71. * Get c_id
  72. *
  73. * @return integer
  74. */
  75. public function get_c_id()
  76. {
  77. return $this->c_id;
  78. }
  79. /**
  80. * Set id
  81. *
  82. * @param integer $value
  83. * @return Document
  84. */
  85. public function set_id($value)
  86. {
  87. $this->id = $value;
  88. return $this;
  89. }
  90. /**
  91. * Get id
  92. *
  93. * @return integer
  94. */
  95. public function get_id()
  96. {
  97. return $this->id;
  98. }
  99. /**
  100. * Set path
  101. *
  102. * @param string $value
  103. * @return Document
  104. */
  105. public function set_path($value)
  106. {
  107. $this->path = $value;
  108. return $this;
  109. }
  110. /**
  111. * Get path
  112. *
  113. * @return string
  114. */
  115. public function get_path()
  116. {
  117. return $this->path;
  118. }
  119. /**
  120. * Set comment
  121. *
  122. * @param text $value
  123. * @return Document
  124. */
  125. public function set_comment($value)
  126. {
  127. $this->comment = $value;
  128. return $this;
  129. }
  130. /**
  131. * Get comment
  132. *
  133. * @return text
  134. */
  135. public function get_comment()
  136. {
  137. return $this->comment;
  138. }
  139. /**
  140. * Set title
  141. *
  142. * @param string $value
  143. * @return Document
  144. */
  145. public function set_title($value)
  146. {
  147. $this->title = $value;
  148. return $this;
  149. }
  150. /**
  151. * Get title
  152. *
  153. * @return string
  154. */
  155. public function get_title()
  156. {
  157. return $this->title;
  158. }
  159. /**
  160. * Set filetype
  161. *
  162. * @param string $value
  163. * @return Document
  164. */
  165. public function set_filetype($value)
  166. {
  167. $this->filetype = $value;
  168. return $this;
  169. }
  170. /**
  171. * Get filetype
  172. *
  173. * @return string
  174. */
  175. public function get_filetype()
  176. {
  177. return $this->filetype;
  178. }
  179. /**
  180. * Set size
  181. *
  182. * @param integer $value
  183. * @return Document
  184. */
  185. public function set_size($value)
  186. {
  187. $this->size = $value;
  188. return $this;
  189. }
  190. /**
  191. * Get size
  192. *
  193. * @return integer
  194. */
  195. public function get_size()
  196. {
  197. return $this->size;
  198. }
  199. /**
  200. * Set readonly
  201. *
  202. * @param boolean $value
  203. * @return Document
  204. */
  205. public function set_readonly($value)
  206. {
  207. $this->readonly = $value;
  208. return $this;
  209. }
  210. /**
  211. * Get readonly
  212. *
  213. * @return boolean
  214. */
  215. public function get_readonly()
  216. {
  217. return $this->readonly;
  218. }
  219. /**
  220. * Set session_id
  221. *
  222. * @param integer $value
  223. * @return Document
  224. */
  225. public function set_session_id($value)
  226. {
  227. $this->session_id = $value;
  228. return $this;
  229. }
  230. /**
  231. * Get session_id
  232. *
  233. * @return integer
  234. */
  235. public function get_session_id()
  236. {
  237. return $this->session_id;
  238. }
  239. }