CGroupInfo.php 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581
  1. <?php
  2. namespace Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use Doctrine\Common\Collections\ArrayCollection;
  5. /**
  6. * CGroupInfo
  7. *
  8. * @ORM\Table(name="c_group_info")
  9. * @ORM\Entity
  10. */
  11. class CGroupInfo
  12. {
  13. /**
  14. * @var integer
  15. *
  16. * @ORM\Column(name="c_id", type="integer", precision=0, scale=0, nullable=false, unique=false)
  17. */
  18. private $cId;
  19. /**
  20. * @var integer
  21. *
  22. * @ORM\Column(name="iid", type="integer", precision=0, scale=0, nullable=false, unique=false)
  23. * @ORM\Id
  24. * @ORM\GeneratedValue(strategy="IDENTITY")
  25. */
  26. private $iid;
  27. /**
  28. * @var integer
  29. *
  30. * @ORM\Column(name="id", type="integer", precision=0, scale=0, nullable=false, unique=false)
  31. */
  32. private $id;
  33. /**
  34. * @var string
  35. *
  36. * @ORM\Column(name="name", type="string", length=100, precision=0, scale=0, nullable=true, unique=false)
  37. */
  38. private $name;
  39. /**
  40. * @var integer
  41. *
  42. * @ORM\Column(name="category_id", type="integer", precision=0, scale=0, nullable=false, unique=false)
  43. */
  44. private $categoryId;
  45. /**
  46. * @var string
  47. *
  48. * @ORM\Column(name="description", type="text", precision=0, scale=0, nullable=true, unique=false)
  49. */
  50. private $description;
  51. /**
  52. * @var integer
  53. *
  54. * @ORM\Column(name="max_student", type="integer", precision=0, scale=0, nullable=false, unique=false)
  55. */
  56. private $maxStudent;
  57. /**
  58. * @var boolean
  59. *
  60. * @ORM\Column(name="doc_state", type="boolean", precision=0, scale=0, nullable=false, unique=false)
  61. */
  62. private $docState;
  63. /**
  64. * @var boolean
  65. *
  66. * @ORM\Column(name="calendar_state", type="boolean", precision=0, scale=0, nullable=false, unique=false)
  67. */
  68. private $calendarState;
  69. /**
  70. * @var boolean
  71. *
  72. * @ORM\Column(name="work_state", type="boolean", precision=0, scale=0, nullable=false, unique=false)
  73. */
  74. private $workState;
  75. /**
  76. * @var boolean
  77. *
  78. * @ORM\Column(name="announcements_state", type="boolean", precision=0, scale=0, nullable=false, unique=false)
  79. */
  80. private $announcementsState;
  81. /**
  82. * @var boolean
  83. *
  84. * @ORM\Column(name="forum_state", type="boolean", precision=0, scale=0, nullable=false, unique=false)
  85. */
  86. private $forumState;
  87. /**
  88. * @var boolean
  89. *
  90. * @ORM\Column(name="wiki_state", type="boolean", precision=0, scale=0, nullable=false, unique=false)
  91. */
  92. private $wikiState;
  93. /**
  94. * @var boolean
  95. *
  96. * @ORM\Column(name="chat_state", type="boolean", precision=0, scale=0, nullable=false, unique=false)
  97. */
  98. private $chatState;
  99. /**
  100. * @var string
  101. *
  102. * @ORM\Column(name="secret_directory", type="string", length=255, precision=0, scale=0, nullable=true, unique=false)
  103. */
  104. private $secretDirectory;
  105. /**
  106. * @var boolean
  107. *
  108. * @ORM\Column(name="self_registration_allowed", type="boolean", precision=0, scale=0, nullable=false, unique=false)
  109. */
  110. private $selfRegistrationAllowed;
  111. /**
  112. * @var boolean
  113. *
  114. * @ORM\Column(name="self_unregistration_allowed", type="boolean", precision=0, scale=0, nullable=false, unique=false)
  115. */
  116. private $selfUnregistrationAllowed;
  117. /**
  118. * @var integer
  119. *
  120. * @ORM\Column(name="session_id", type="integer", precision=0, scale=0, nullable=false, unique=false)
  121. */
  122. private $sessionId;
  123. /**
  124. * @ORM\OneToMany(targetEntity="CItemProperty", mappedBy="group")
  125. **/
  126. private $items;
  127. /**
  128. *
  129. */
  130. public function __construct()
  131. {
  132. $this->items = new ArrayCollection();
  133. }
  134. /**
  135. *
  136. * @return ArrayCollection
  137. */
  138. public function getItems()
  139. {
  140. return $this->items;
  141. }
  142. /**
  143. * Set cId
  144. *
  145. * @param integer $cId
  146. *
  147. * @return CGroupInfo
  148. */
  149. public function setCId($cId)
  150. {
  151. $this->cId = $cId;
  152. return $this;
  153. }
  154. /**
  155. * Get cId
  156. *
  157. * @return integer
  158. */
  159. public function getCId()
  160. {
  161. return $this->cId;
  162. }
  163. /**
  164. * Set iid
  165. *
  166. * @param integer $id
  167. * @return CGroupInfo
  168. */
  169. public function setIid($iid)
  170. {
  171. $this->iid = $iid;
  172. return $this;
  173. }
  174. /**
  175. * Get id
  176. *
  177. * @return integer
  178. */
  179. public function getIid()
  180. {
  181. return $this->iid;
  182. }
  183. /**
  184. * Set id
  185. *
  186. * @param integer $id
  187. * @return CGroupInfo
  188. */
  189. public function setId($id)
  190. {
  191. $this->id = $id;
  192. return $this;
  193. }
  194. /**
  195. * Get id
  196. *
  197. * @return integer
  198. */
  199. public function getId()
  200. {
  201. return $this->id;
  202. }
  203. /**
  204. * Set name
  205. *
  206. * @param string $name
  207. * @return CGroupInfo
  208. */
  209. public function setName($name)
  210. {
  211. $this->name = $name;
  212. return $this;
  213. }
  214. /**
  215. * Get name
  216. *
  217. * @return string
  218. */
  219. public function getName()
  220. {
  221. return $this->name;
  222. }
  223. /**
  224. * Set categoryId
  225. *
  226. * @param integer $categoryId
  227. * @return CGroupInfo
  228. */
  229. public function setCategoryId($categoryId)
  230. {
  231. $this->categoryId = $categoryId;
  232. return $this;
  233. }
  234. /**
  235. * Get categoryId
  236. *
  237. * @return integer
  238. */
  239. public function getCategoryId()
  240. {
  241. return $this->categoryId;
  242. }
  243. /**
  244. * Set description
  245. *
  246. * @param string $description
  247. * @return CGroupInfo
  248. */
  249. public function setDescription($description)
  250. {
  251. $this->description = $description;
  252. return $this;
  253. }
  254. /**
  255. * Get description
  256. *
  257. * @return string
  258. */
  259. public function getDescription()
  260. {
  261. return $this->description;
  262. }
  263. /**
  264. * Set maxStudent
  265. *
  266. * @param integer $maxStudent
  267. * @return CGroupInfo
  268. */
  269. public function setMaxStudent($maxStudent)
  270. {
  271. $this->maxStudent = $maxStudent;
  272. return $this;
  273. }
  274. /**
  275. * Get maxStudent
  276. *
  277. * @return integer
  278. */
  279. public function getMaxStudent()
  280. {
  281. return $this->maxStudent;
  282. }
  283. /**
  284. * Set docState
  285. *
  286. * @param boolean $docState
  287. * @return CGroupInfo
  288. */
  289. public function setDocState($docState)
  290. {
  291. $this->docState = $docState;
  292. return $this;
  293. }
  294. /**
  295. * Get docState
  296. *
  297. * @return boolean
  298. */
  299. public function getDocState()
  300. {
  301. return $this->docState;
  302. }
  303. /**
  304. * Set calendarState
  305. *
  306. * @param boolean $calendarState
  307. * @return CGroupInfo
  308. */
  309. public function setCalendarState($calendarState)
  310. {
  311. $this->calendarState = $calendarState;
  312. return $this;
  313. }
  314. /**
  315. * Get calendarState
  316. *
  317. * @return boolean
  318. */
  319. public function getCalendarState()
  320. {
  321. return $this->calendarState;
  322. }
  323. /**
  324. * Set workState
  325. *
  326. * @param boolean $workState
  327. * @return CGroupInfo
  328. */
  329. public function setWorkState($workState)
  330. {
  331. $this->workState = $workState;
  332. return $this;
  333. }
  334. /**
  335. * Get workState
  336. *
  337. * @return boolean
  338. */
  339. public function getWorkState()
  340. {
  341. return $this->workState;
  342. }
  343. /**
  344. * Set announcementsState
  345. *
  346. * @param boolean $announcementsState
  347. * @return CGroupInfo
  348. */
  349. public function setAnnouncementsState($announcementsState)
  350. {
  351. $this->announcementsState = $announcementsState;
  352. return $this;
  353. }
  354. /**
  355. * Get announcementsState
  356. *
  357. * @return boolean
  358. */
  359. public function getAnnouncementsState()
  360. {
  361. return $this->announcementsState;
  362. }
  363. /**
  364. * Set forumState
  365. *
  366. * @param boolean $forumState
  367. * @return CGroupInfo
  368. */
  369. public function setForumState($forumState)
  370. {
  371. $this->forumState = $forumState;
  372. return $this;
  373. }
  374. /**
  375. * Get forumState
  376. *
  377. * @return boolean
  378. */
  379. public function getForumState()
  380. {
  381. return $this->forumState;
  382. }
  383. /**
  384. * Set wikiState
  385. *
  386. * @param boolean $wikiState
  387. * @return CGroupInfo
  388. */
  389. public function setWikiState($wikiState)
  390. {
  391. $this->wikiState = $wikiState;
  392. return $this;
  393. }
  394. /**
  395. * Get wikiState
  396. *
  397. * @return boolean
  398. */
  399. public function getWikiState()
  400. {
  401. return $this->wikiState;
  402. }
  403. /**
  404. * Set chatState
  405. *
  406. * @param boolean $chatState
  407. * @return CGroupInfo
  408. */
  409. public function setChatState($chatState)
  410. {
  411. $this->chatState = $chatState;
  412. return $this;
  413. }
  414. /**
  415. * Get chatState
  416. *
  417. * @return boolean
  418. */
  419. public function getChatState()
  420. {
  421. return $this->chatState;
  422. }
  423. /**
  424. * Set secretDirectory
  425. *
  426. * @param string $secretDirectory
  427. * @return CGroupInfo
  428. */
  429. public function setSecretDirectory($secretDirectory)
  430. {
  431. $this->secretDirectory = $secretDirectory;
  432. return $this;
  433. }
  434. /**
  435. * Get secretDirectory
  436. *
  437. * @return string
  438. */
  439. public function getSecretDirectory()
  440. {
  441. return $this->secretDirectory;
  442. }
  443. /**
  444. * Set selfRegistrationAllowed
  445. *
  446. * @param boolean $selfRegistrationAllowed
  447. * @return CGroupInfo
  448. */
  449. public function setSelfRegistrationAllowed($selfRegistrationAllowed)
  450. {
  451. $this->selfRegistrationAllowed = $selfRegistrationAllowed;
  452. return $this;
  453. }
  454. /**
  455. * Get selfRegistrationAllowed
  456. *
  457. * @return boolean
  458. */
  459. public function getSelfRegistrationAllowed()
  460. {
  461. return $this->selfRegistrationAllowed;
  462. }
  463. /**
  464. * Set selfUnregistrationAllowed
  465. *
  466. * @param boolean $selfUnregistrationAllowed
  467. * @return CGroupInfo
  468. */
  469. public function setSelfUnregistrationAllowed($selfUnregistrationAllowed)
  470. {
  471. $this->selfUnregistrationAllowed = $selfUnregistrationAllowed;
  472. return $this;
  473. }
  474. /**
  475. * Get selfUnregistrationAllowed
  476. *
  477. * @return boolean
  478. */
  479. public function getSelfUnregistrationAllowed()
  480. {
  481. return $this->selfUnregistrationAllowed;
  482. }
  483. /**
  484. * Set sessionId
  485. *
  486. * @param integer $sessionId
  487. * @return CGroupInfo
  488. */
  489. public function setSessionId($sessionId)
  490. {
  491. $this->sessionId = $sessionId;
  492. return $this;
  493. }
  494. /**
  495. * Get sessionId
  496. *
  497. * @return integer
  498. */
  499. public function getSessionId()
  500. {
  501. return $this->sessionId;
  502. }
  503. }