EntityCWiki.php 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829
  1. <?php
  2. use Doctrine\ORM\Mapping as ORM;
  3. /**
  4. * EntityCWiki
  5. *
  6. * @Table(name="c_wiki")
  7. * @Entity
  8. */
  9. class EntityCWiki
  10. {
  11. /**
  12. * @var integer
  13. *
  14. * @Column(name="c_id", type="integer", precision=0, scale=0, nullable=false, unique=false)
  15. * @Id
  16. * @GeneratedValue(strategy="NONE")
  17. */
  18. private $cId;
  19. /**
  20. * @var integer
  21. *
  22. * @Column(name="id", type="integer", precision=0, scale=0, nullable=false, unique=false)
  23. * @Id
  24. * @GeneratedValue(strategy="NONE")
  25. */
  26. private $id;
  27. /**
  28. * @var integer
  29. *
  30. * @Column(name="page_id", type="integer", precision=0, scale=0, nullable=false, unique=false)
  31. */
  32. private $pageId;
  33. /**
  34. * @var string
  35. *
  36. * @Column(name="reflink", type="string", length=255, precision=0, scale=0, nullable=false, unique=false)
  37. */
  38. private $reflink;
  39. /**
  40. * @var string
  41. *
  42. * @Column(name="title", type="string", length=255, precision=0, scale=0, nullable=false, unique=false)
  43. */
  44. private $title;
  45. /**
  46. * @var string
  47. *
  48. * @Column(name="content", type="text", precision=0, scale=0, nullable=false, unique=false)
  49. */
  50. private $content;
  51. /**
  52. * @var integer
  53. *
  54. * @Column(name="user_id", type="integer", precision=0, scale=0, nullable=false, unique=false)
  55. */
  56. private $userId;
  57. /**
  58. * @var integer
  59. *
  60. * @Column(name="group_id", type="integer", precision=0, scale=0, nullable=true, unique=false)
  61. */
  62. private $groupId;
  63. /**
  64. * @var \DateTime
  65. *
  66. * @Column(name="dtime", type="datetime", precision=0, scale=0, nullable=false, unique=false)
  67. */
  68. private $dtime;
  69. /**
  70. * @var integer
  71. *
  72. * @Column(name="addlock", type="integer", precision=0, scale=0, nullable=false, unique=false)
  73. */
  74. private $addlock;
  75. /**
  76. * @var integer
  77. *
  78. * @Column(name="editlock", type="integer", precision=0, scale=0, nullable=false, unique=false)
  79. */
  80. private $editlock;
  81. /**
  82. * @var integer
  83. *
  84. * @Column(name="visibility", type="integer", precision=0, scale=0, nullable=false, unique=false)
  85. */
  86. private $visibility;
  87. /**
  88. * @var integer
  89. *
  90. * @Column(name="addlock_disc", type="integer", precision=0, scale=0, nullable=false, unique=false)
  91. */
  92. private $addlockDisc;
  93. /**
  94. * @var integer
  95. *
  96. * @Column(name="visibility_disc", type="integer", precision=0, scale=0, nullable=false, unique=false)
  97. */
  98. private $visibilityDisc;
  99. /**
  100. * @var integer
  101. *
  102. * @Column(name="ratinglock_disc", type="integer", precision=0, scale=0, nullable=false, unique=false)
  103. */
  104. private $ratinglockDisc;
  105. /**
  106. * @var integer
  107. *
  108. * @Column(name="assignment", type="integer", precision=0, scale=0, nullable=false, unique=false)
  109. */
  110. private $assignment;
  111. /**
  112. * @var string
  113. *
  114. * @Column(name="comment", type="text", precision=0, scale=0, nullable=false, unique=false)
  115. */
  116. private $comment;
  117. /**
  118. * @var string
  119. *
  120. * @Column(name="progress", type="text", precision=0, scale=0, nullable=false, unique=false)
  121. */
  122. private $progress;
  123. /**
  124. * @var integer
  125. *
  126. * @Column(name="score", type="integer", precision=0, scale=0, nullable=true, unique=false)
  127. */
  128. private $score;
  129. /**
  130. * @var integer
  131. *
  132. * @Column(name="version", type="integer", precision=0, scale=0, nullable=true, unique=false)
  133. */
  134. private $version;
  135. /**
  136. * @var integer
  137. *
  138. * @Column(name="is_editing", type="integer", precision=0, scale=0, nullable=false, unique=false)
  139. */
  140. private $isEditing;
  141. /**
  142. * @var \DateTime
  143. *
  144. * @Column(name="time_edit", type="datetime", precision=0, scale=0, nullable=false, unique=false)
  145. */
  146. private $timeEdit;
  147. /**
  148. * @var integer
  149. *
  150. * @Column(name="hits", type="integer", precision=0, scale=0, nullable=true, unique=false)
  151. */
  152. private $hits;
  153. /**
  154. * @var string
  155. *
  156. * @Column(name="linksto", type="text", precision=0, scale=0, nullable=false, unique=false)
  157. */
  158. private $linksto;
  159. /**
  160. * @var string
  161. *
  162. * @Column(name="tag", type="text", precision=0, scale=0, nullable=false, unique=false)
  163. */
  164. private $tag;
  165. /**
  166. * @var string
  167. *
  168. * @Column(name="user_ip", type="string", length=39, precision=0, scale=0, nullable=false, unique=false)
  169. */
  170. private $userIp;
  171. /**
  172. * @var integer
  173. *
  174. * @Column(name="session_id", type="integer", precision=0, scale=0, nullable=true, unique=false)
  175. */
  176. private $sessionId;
  177. /**
  178. * Set cId
  179. *
  180. * @param integer $cId
  181. * @return EntityCWiki
  182. */
  183. public function setCId($cId)
  184. {
  185. $this->cId = $cId;
  186. return $this;
  187. }
  188. /**
  189. * Get cId
  190. *
  191. * @return integer
  192. */
  193. public function getCId()
  194. {
  195. return $this->cId;
  196. }
  197. /**
  198. * Set id
  199. *
  200. * @param integer $id
  201. * @return EntityCWiki
  202. */
  203. public function setId($id)
  204. {
  205. $this->id = $id;
  206. return $this;
  207. }
  208. /**
  209. * Get id
  210. *
  211. * @return integer
  212. */
  213. public function getId()
  214. {
  215. return $this->id;
  216. }
  217. /**
  218. * Set pageId
  219. *
  220. * @param integer $pageId
  221. * @return EntityCWiki
  222. */
  223. public function setPageId($pageId)
  224. {
  225. $this->pageId = $pageId;
  226. return $this;
  227. }
  228. /**
  229. * Get pageId
  230. *
  231. * @return integer
  232. */
  233. public function getPageId()
  234. {
  235. return $this->pageId;
  236. }
  237. /**
  238. * Set reflink
  239. *
  240. * @param string $reflink
  241. * @return EntityCWiki
  242. */
  243. public function setReflink($reflink)
  244. {
  245. $this->reflink = $reflink;
  246. return $this;
  247. }
  248. /**
  249. * Get reflink
  250. *
  251. * @return string
  252. */
  253. public function getReflink()
  254. {
  255. return $this->reflink;
  256. }
  257. /**
  258. * Set title
  259. *
  260. * @param string $title
  261. * @return EntityCWiki
  262. */
  263. public function setTitle($title)
  264. {
  265. $this->title = $title;
  266. return $this;
  267. }
  268. /**
  269. * Get title
  270. *
  271. * @return string
  272. */
  273. public function getTitle()
  274. {
  275. return $this->title;
  276. }
  277. /**
  278. * Set content
  279. *
  280. * @param string $content
  281. * @return EntityCWiki
  282. */
  283. public function setContent($content)
  284. {
  285. $this->content = $content;
  286. return $this;
  287. }
  288. /**
  289. * Get content
  290. *
  291. * @return string
  292. */
  293. public function getContent()
  294. {
  295. return $this->content;
  296. }
  297. /**
  298. * Set userId
  299. *
  300. * @param integer $userId
  301. * @return EntityCWiki
  302. */
  303. public function setUserId($userId)
  304. {
  305. $this->userId = $userId;
  306. return $this;
  307. }
  308. /**
  309. * Get userId
  310. *
  311. * @return integer
  312. */
  313. public function getUserId()
  314. {
  315. return $this->userId;
  316. }
  317. /**
  318. * Set groupId
  319. *
  320. * @param integer $groupId
  321. * @return EntityCWiki
  322. */
  323. public function setGroupId($groupId)
  324. {
  325. $this->groupId = $groupId;
  326. return $this;
  327. }
  328. /**
  329. * Get groupId
  330. *
  331. * @return integer
  332. */
  333. public function getGroupId()
  334. {
  335. return $this->groupId;
  336. }
  337. /**
  338. * Set dtime
  339. *
  340. * @param \DateTime $dtime
  341. * @return EntityCWiki
  342. */
  343. public function setDtime($dtime)
  344. {
  345. $this->dtime = $dtime;
  346. return $this;
  347. }
  348. /**
  349. * Get dtime
  350. *
  351. * @return \DateTime
  352. */
  353. public function getDtime()
  354. {
  355. return $this->dtime;
  356. }
  357. /**
  358. * Set addlock
  359. *
  360. * @param integer $addlock
  361. * @return EntityCWiki
  362. */
  363. public function setAddlock($addlock)
  364. {
  365. $this->addlock = $addlock;
  366. return $this;
  367. }
  368. /**
  369. * Get addlock
  370. *
  371. * @return integer
  372. */
  373. public function getAddlock()
  374. {
  375. return $this->addlock;
  376. }
  377. /**
  378. * Set editlock
  379. *
  380. * @param integer $editlock
  381. * @return EntityCWiki
  382. */
  383. public function setEditlock($editlock)
  384. {
  385. $this->editlock = $editlock;
  386. return $this;
  387. }
  388. /**
  389. * Get editlock
  390. *
  391. * @return integer
  392. */
  393. public function getEditlock()
  394. {
  395. return $this->editlock;
  396. }
  397. /**
  398. * Set visibility
  399. *
  400. * @param integer $visibility
  401. * @return EntityCWiki
  402. */
  403. public function setVisibility($visibility)
  404. {
  405. $this->visibility = $visibility;
  406. return $this;
  407. }
  408. /**
  409. * Get visibility
  410. *
  411. * @return integer
  412. */
  413. public function getVisibility()
  414. {
  415. return $this->visibility;
  416. }
  417. /**
  418. * Set addlockDisc
  419. *
  420. * @param integer $addlockDisc
  421. * @return EntityCWiki
  422. */
  423. public function setAddlockDisc($addlockDisc)
  424. {
  425. $this->addlockDisc = $addlockDisc;
  426. return $this;
  427. }
  428. /**
  429. * Get addlockDisc
  430. *
  431. * @return integer
  432. */
  433. public function getAddlockDisc()
  434. {
  435. return $this->addlockDisc;
  436. }
  437. /**
  438. * Set visibilityDisc
  439. *
  440. * @param integer $visibilityDisc
  441. * @return EntityCWiki
  442. */
  443. public function setVisibilityDisc($visibilityDisc)
  444. {
  445. $this->visibilityDisc = $visibilityDisc;
  446. return $this;
  447. }
  448. /**
  449. * Get visibilityDisc
  450. *
  451. * @return integer
  452. */
  453. public function getVisibilityDisc()
  454. {
  455. return $this->visibilityDisc;
  456. }
  457. /**
  458. * Set ratinglockDisc
  459. *
  460. * @param integer $ratinglockDisc
  461. * @return EntityCWiki
  462. */
  463. public function setRatinglockDisc($ratinglockDisc)
  464. {
  465. $this->ratinglockDisc = $ratinglockDisc;
  466. return $this;
  467. }
  468. /**
  469. * Get ratinglockDisc
  470. *
  471. * @return integer
  472. */
  473. public function getRatinglockDisc()
  474. {
  475. return $this->ratinglockDisc;
  476. }
  477. /**
  478. * Set assignment
  479. *
  480. * @param integer $assignment
  481. * @return EntityCWiki
  482. */
  483. public function setAssignment($assignment)
  484. {
  485. $this->assignment = $assignment;
  486. return $this;
  487. }
  488. /**
  489. * Get assignment
  490. *
  491. * @return integer
  492. */
  493. public function getAssignment()
  494. {
  495. return $this->assignment;
  496. }
  497. /**
  498. * Set comment
  499. *
  500. * @param string $comment
  501. * @return EntityCWiki
  502. */
  503. public function setComment($comment)
  504. {
  505. $this->comment = $comment;
  506. return $this;
  507. }
  508. /**
  509. * Get comment
  510. *
  511. * @return string
  512. */
  513. public function getComment()
  514. {
  515. return $this->comment;
  516. }
  517. /**
  518. * Set progress
  519. *
  520. * @param string $progress
  521. * @return EntityCWiki
  522. */
  523. public function setProgress($progress)
  524. {
  525. $this->progress = $progress;
  526. return $this;
  527. }
  528. /**
  529. * Get progress
  530. *
  531. * @return string
  532. */
  533. public function getProgress()
  534. {
  535. return $this->progress;
  536. }
  537. /**
  538. * Set score
  539. *
  540. * @param integer $score
  541. * @return EntityCWiki
  542. */
  543. public function setScore($score)
  544. {
  545. $this->score = $score;
  546. return $this;
  547. }
  548. /**
  549. * Get score
  550. *
  551. * @return integer
  552. */
  553. public function getScore()
  554. {
  555. return $this->score;
  556. }
  557. /**
  558. * Set version
  559. *
  560. * @param integer $version
  561. * @return EntityCWiki
  562. */
  563. public function setVersion($version)
  564. {
  565. $this->version = $version;
  566. return $this;
  567. }
  568. /**
  569. * Get version
  570. *
  571. * @return integer
  572. */
  573. public function getVersion()
  574. {
  575. return $this->version;
  576. }
  577. /**
  578. * Set isEditing
  579. *
  580. * @param integer $isEditing
  581. * @return EntityCWiki
  582. */
  583. public function setIsEditing($isEditing)
  584. {
  585. $this->isEditing = $isEditing;
  586. return $this;
  587. }
  588. /**
  589. * Get isEditing
  590. *
  591. * @return integer
  592. */
  593. public function getIsEditing()
  594. {
  595. return $this->isEditing;
  596. }
  597. /**
  598. * Set timeEdit
  599. *
  600. * @param \DateTime $timeEdit
  601. * @return EntityCWiki
  602. */
  603. public function setTimeEdit($timeEdit)
  604. {
  605. $this->timeEdit = $timeEdit;
  606. return $this;
  607. }
  608. /**
  609. * Get timeEdit
  610. *
  611. * @return \DateTime
  612. */
  613. public function getTimeEdit()
  614. {
  615. return $this->timeEdit;
  616. }
  617. /**
  618. * Set hits
  619. *
  620. * @param integer $hits
  621. * @return EntityCWiki
  622. */
  623. public function setHits($hits)
  624. {
  625. $this->hits = $hits;
  626. return $this;
  627. }
  628. /**
  629. * Get hits
  630. *
  631. * @return integer
  632. */
  633. public function getHits()
  634. {
  635. return $this->hits;
  636. }
  637. /**
  638. * Set linksto
  639. *
  640. * @param string $linksto
  641. * @return EntityCWiki
  642. */
  643. public function setLinksto($linksto)
  644. {
  645. $this->linksto = $linksto;
  646. return $this;
  647. }
  648. /**
  649. * Get linksto
  650. *
  651. * @return string
  652. */
  653. public function getLinksto()
  654. {
  655. return $this->linksto;
  656. }
  657. /**
  658. * Set tag
  659. *
  660. * @param string $tag
  661. * @return EntityCWiki
  662. */
  663. public function setTag($tag)
  664. {
  665. $this->tag = $tag;
  666. return $this;
  667. }
  668. /**
  669. * Get tag
  670. *
  671. * @return string
  672. */
  673. public function getTag()
  674. {
  675. return $this->tag;
  676. }
  677. /**
  678. * Set userIp
  679. *
  680. * @param string $userIp
  681. * @return EntityCWiki
  682. */
  683. public function setUserIp($userIp)
  684. {
  685. $this->userIp = $userIp;
  686. return $this;
  687. }
  688. /**
  689. * Get userIp
  690. *
  691. * @return string
  692. */
  693. public function getUserIp()
  694. {
  695. return $this->userIp;
  696. }
  697. /**
  698. * Set sessionId
  699. *
  700. * @param integer $sessionId
  701. * @return EntityCWiki
  702. */
  703. public function setSessionId($sessionId)
  704. {
  705. $this->sessionId = $sessionId;
  706. return $this;
  707. }
  708. /**
  709. * Get sessionId
  710. *
  711. * @return integer
  712. */
  713. public function getSessionId()
  714. {
  715. return $this->sessionId;
  716. }
  717. }