wiki.class.php 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757
  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 Wiki extends \CourseEntity
  10. {
  11. /**
  12. * @return \Entity\Repository\WikiRepository
  13. */
  14. public static function repository(){
  15. return \Entity\Repository\WikiRepository::instance();
  16. }
  17. /**
  18. * @return \Entity\Wiki
  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 integer $page_id
  33. */
  34. protected $page_id;
  35. /**
  36. * @var string $reflink
  37. */
  38. protected $reflink;
  39. /**
  40. * @var string $title
  41. */
  42. protected $title;
  43. /**
  44. * @var text $content
  45. */
  46. protected $content;
  47. /**
  48. * @var integer $user_id
  49. */
  50. protected $user_id;
  51. /**
  52. * @var integer $group_id
  53. */
  54. protected $group_id;
  55. /**
  56. * @var datetime $dtime
  57. */
  58. protected $dtime;
  59. /**
  60. * @var integer $addlock
  61. */
  62. protected $addlock;
  63. /**
  64. * @var integer $editlock
  65. */
  66. protected $editlock;
  67. /**
  68. * @var integer $visibility
  69. */
  70. protected $visibility;
  71. /**
  72. * @var integer $addlock_disc
  73. */
  74. protected $addlock_disc;
  75. /**
  76. * @var integer $visibility_disc
  77. */
  78. protected $visibility_disc;
  79. /**
  80. * @var integer $ratinglock_disc
  81. */
  82. protected $ratinglock_disc;
  83. /**
  84. * @var integer $assignment
  85. */
  86. protected $assignment;
  87. /**
  88. * @var text $comment
  89. */
  90. protected $comment;
  91. /**
  92. * @var text $progress
  93. */
  94. protected $progress;
  95. /**
  96. * @var integer $score
  97. */
  98. protected $score;
  99. /**
  100. * @var integer $version
  101. */
  102. protected $version;
  103. /**
  104. * @var integer $is_editing
  105. */
  106. protected $is_editing;
  107. /**
  108. * @var datetime $time_edit
  109. */
  110. protected $time_edit;
  111. /**
  112. * @var integer $hits
  113. */
  114. protected $hits;
  115. /**
  116. * @var text $linksto
  117. */
  118. protected $linksto;
  119. /**
  120. * @var text $tag
  121. */
  122. protected $tag;
  123. /**
  124. * @var string $user_ip
  125. */
  126. protected $user_ip;
  127. /**
  128. * @var integer $session_id
  129. */
  130. protected $session_id;
  131. /**
  132. * Set c_id
  133. *
  134. * @param integer $value
  135. * @return Wiki
  136. */
  137. public function set_c_id($value)
  138. {
  139. $this->c_id = $value;
  140. return $this;
  141. }
  142. /**
  143. * Get c_id
  144. *
  145. * @return integer
  146. */
  147. public function get_c_id()
  148. {
  149. return $this->c_id;
  150. }
  151. /**
  152. * Set id
  153. *
  154. * @param integer $value
  155. * @return Wiki
  156. */
  157. public function set_id($value)
  158. {
  159. $this->id = $value;
  160. return $this;
  161. }
  162. /**
  163. * Get id
  164. *
  165. * @return integer
  166. */
  167. public function get_id()
  168. {
  169. return $this->id;
  170. }
  171. /**
  172. * Set page_id
  173. *
  174. * @param integer $value
  175. * @return Wiki
  176. */
  177. public function set_page_id($value)
  178. {
  179. $this->page_id = $value;
  180. return $this;
  181. }
  182. /**
  183. * Get page_id
  184. *
  185. * @return integer
  186. */
  187. public function get_page_id()
  188. {
  189. return $this->page_id;
  190. }
  191. /**
  192. * Set reflink
  193. *
  194. * @param string $value
  195. * @return Wiki
  196. */
  197. public function set_reflink($value)
  198. {
  199. $this->reflink = $value;
  200. return $this;
  201. }
  202. /**
  203. * Get reflink
  204. *
  205. * @return string
  206. */
  207. public function get_reflink()
  208. {
  209. return $this->reflink;
  210. }
  211. /**
  212. * Set title
  213. *
  214. * @param string $value
  215. * @return Wiki
  216. */
  217. public function set_title($value)
  218. {
  219. $this->title = $value;
  220. return $this;
  221. }
  222. /**
  223. * Get title
  224. *
  225. * @return string
  226. */
  227. public function get_title()
  228. {
  229. return $this->title;
  230. }
  231. /**
  232. * Set content
  233. *
  234. * @param text $value
  235. * @return Wiki
  236. */
  237. public function set_content($value)
  238. {
  239. $this->content = $value;
  240. return $this;
  241. }
  242. /**
  243. * Get content
  244. *
  245. * @return text
  246. */
  247. public function get_content()
  248. {
  249. return $this->content;
  250. }
  251. /**
  252. * Set user_id
  253. *
  254. * @param integer $value
  255. * @return Wiki
  256. */
  257. public function set_user_id($value)
  258. {
  259. $this->user_id = $value;
  260. return $this;
  261. }
  262. /**
  263. * Get user_id
  264. *
  265. * @return integer
  266. */
  267. public function get_user_id()
  268. {
  269. return $this->user_id;
  270. }
  271. /**
  272. * Set group_id
  273. *
  274. * @param integer $value
  275. * @return Wiki
  276. */
  277. public function set_group_id($value)
  278. {
  279. $this->group_id = $value;
  280. return $this;
  281. }
  282. /**
  283. * Get group_id
  284. *
  285. * @return integer
  286. */
  287. public function get_group_id()
  288. {
  289. return $this->group_id;
  290. }
  291. /**
  292. * Set dtime
  293. *
  294. * @param datetime $value
  295. * @return Wiki
  296. */
  297. public function set_dtime($value)
  298. {
  299. $this->dtime = $value;
  300. return $this;
  301. }
  302. /**
  303. * Get dtime
  304. *
  305. * @return datetime
  306. */
  307. public function get_dtime()
  308. {
  309. return $this->dtime;
  310. }
  311. /**
  312. * Set addlock
  313. *
  314. * @param integer $value
  315. * @return Wiki
  316. */
  317. public function set_addlock($value)
  318. {
  319. $this->addlock = $value;
  320. return $this;
  321. }
  322. /**
  323. * Get addlock
  324. *
  325. * @return integer
  326. */
  327. public function get_addlock()
  328. {
  329. return $this->addlock;
  330. }
  331. /**
  332. * Set editlock
  333. *
  334. * @param integer $value
  335. * @return Wiki
  336. */
  337. public function set_editlock($value)
  338. {
  339. $this->editlock = $value;
  340. return $this;
  341. }
  342. /**
  343. * Get editlock
  344. *
  345. * @return integer
  346. */
  347. public function get_editlock()
  348. {
  349. return $this->editlock;
  350. }
  351. /**
  352. * Set visibility
  353. *
  354. * @param integer $value
  355. * @return Wiki
  356. */
  357. public function set_visibility($value)
  358. {
  359. $this->visibility = $value;
  360. return $this;
  361. }
  362. /**
  363. * Get visibility
  364. *
  365. * @return integer
  366. */
  367. public function get_visibility()
  368. {
  369. return $this->visibility;
  370. }
  371. /**
  372. * Set addlock_disc
  373. *
  374. * @param integer $value
  375. * @return Wiki
  376. */
  377. public function set_addlock_disc($value)
  378. {
  379. $this->addlock_disc = $value;
  380. return $this;
  381. }
  382. /**
  383. * Get addlock_disc
  384. *
  385. * @return integer
  386. */
  387. public function get_addlock_disc()
  388. {
  389. return $this->addlock_disc;
  390. }
  391. /**
  392. * Set visibility_disc
  393. *
  394. * @param integer $value
  395. * @return Wiki
  396. */
  397. public function set_visibility_disc($value)
  398. {
  399. $this->visibility_disc = $value;
  400. return $this;
  401. }
  402. /**
  403. * Get visibility_disc
  404. *
  405. * @return integer
  406. */
  407. public function get_visibility_disc()
  408. {
  409. return $this->visibility_disc;
  410. }
  411. /**
  412. * Set ratinglock_disc
  413. *
  414. * @param integer $value
  415. * @return Wiki
  416. */
  417. public function set_ratinglock_disc($value)
  418. {
  419. $this->ratinglock_disc = $value;
  420. return $this;
  421. }
  422. /**
  423. * Get ratinglock_disc
  424. *
  425. * @return integer
  426. */
  427. public function get_ratinglock_disc()
  428. {
  429. return $this->ratinglock_disc;
  430. }
  431. /**
  432. * Set assignment
  433. *
  434. * @param integer $value
  435. * @return Wiki
  436. */
  437. public function set_assignment($value)
  438. {
  439. $this->assignment = $value;
  440. return $this;
  441. }
  442. /**
  443. * Get assignment
  444. *
  445. * @return integer
  446. */
  447. public function get_assignment()
  448. {
  449. return $this->assignment;
  450. }
  451. /**
  452. * Set comment
  453. *
  454. * @param text $value
  455. * @return Wiki
  456. */
  457. public function set_comment($value)
  458. {
  459. $this->comment = $value;
  460. return $this;
  461. }
  462. /**
  463. * Get comment
  464. *
  465. * @return text
  466. */
  467. public function get_comment()
  468. {
  469. return $this->comment;
  470. }
  471. /**
  472. * Set progress
  473. *
  474. * @param text $value
  475. * @return Wiki
  476. */
  477. public function set_progress($value)
  478. {
  479. $this->progress = $value;
  480. return $this;
  481. }
  482. /**
  483. * Get progress
  484. *
  485. * @return text
  486. */
  487. public function get_progress()
  488. {
  489. return $this->progress;
  490. }
  491. /**
  492. * Set score
  493. *
  494. * @param integer $value
  495. * @return Wiki
  496. */
  497. public function set_score($value)
  498. {
  499. $this->score = $value;
  500. return $this;
  501. }
  502. /**
  503. * Get score
  504. *
  505. * @return integer
  506. */
  507. public function get_score()
  508. {
  509. return $this->score;
  510. }
  511. /**
  512. * Set version
  513. *
  514. * @param integer $value
  515. * @return Wiki
  516. */
  517. public function set_version($value)
  518. {
  519. $this->version = $value;
  520. return $this;
  521. }
  522. /**
  523. * Get version
  524. *
  525. * @return integer
  526. */
  527. public function get_version()
  528. {
  529. return $this->version;
  530. }
  531. /**
  532. * Set is_editing
  533. *
  534. * @param integer $value
  535. * @return Wiki
  536. */
  537. public function set_is_editing($value)
  538. {
  539. $this->is_editing = $value;
  540. return $this;
  541. }
  542. /**
  543. * Get is_editing
  544. *
  545. * @return integer
  546. */
  547. public function get_is_editing()
  548. {
  549. return $this->is_editing;
  550. }
  551. /**
  552. * Set time_edit
  553. *
  554. * @param datetime $value
  555. * @return Wiki
  556. */
  557. public function set_time_edit($value)
  558. {
  559. $this->time_edit = $value;
  560. return $this;
  561. }
  562. /**
  563. * Get time_edit
  564. *
  565. * @return datetime
  566. */
  567. public function get_time_edit()
  568. {
  569. return $this->time_edit;
  570. }
  571. /**
  572. * Set hits
  573. *
  574. * @param integer $value
  575. * @return Wiki
  576. */
  577. public function set_hits($value)
  578. {
  579. $this->hits = $value;
  580. return $this;
  581. }
  582. /**
  583. * Get hits
  584. *
  585. * @return integer
  586. */
  587. public function get_hits()
  588. {
  589. return $this->hits;
  590. }
  591. /**
  592. * Set linksto
  593. *
  594. * @param text $value
  595. * @return Wiki
  596. */
  597. public function set_linksto($value)
  598. {
  599. $this->linksto = $value;
  600. return $this;
  601. }
  602. /**
  603. * Get linksto
  604. *
  605. * @return text
  606. */
  607. public function get_linksto()
  608. {
  609. return $this->linksto;
  610. }
  611. /**
  612. * Set tag
  613. *
  614. * @param text $value
  615. * @return Wiki
  616. */
  617. public function set_tag($value)
  618. {
  619. $this->tag = $value;
  620. return $this;
  621. }
  622. /**
  623. * Get tag
  624. *
  625. * @return text
  626. */
  627. public function get_tag()
  628. {
  629. return $this->tag;
  630. }
  631. /**
  632. * Set user_ip
  633. *
  634. * @param string $value
  635. * @return Wiki
  636. */
  637. public function set_user_ip($value)
  638. {
  639. $this->user_ip = $value;
  640. return $this;
  641. }
  642. /**
  643. * Get user_ip
  644. *
  645. * @return string
  646. */
  647. public function get_user_ip()
  648. {
  649. return $this->user_ip;
  650. }
  651. /**
  652. * Set session_id
  653. *
  654. * @param integer $value
  655. * @return Wiki
  656. */
  657. public function set_session_id($value)
  658. {
  659. $this->session_id = $value;
  660. return $this;
  661. }
  662. /**
  663. * Get session_id
  664. *
  665. * @return integer
  666. */
  667. public function get_session_id()
  668. {
  669. return $this->session_id;
  670. }
  671. }