PageRenderTime 50ms CodeModel.GetById 22ms RepoModel.GetById 0ms app.codeStats 0ms

/wspp/clients/classes/courseRecord.php

https://github.com/joseraul/moodlews
PHP | 778 lines | 270 code | 134 blank | 374 comment | 0 complexity | a57358e5b86d6b26fd64e1aa57624205 MD5 | raw file
  1. <?php
  2. /**
  3. *
  4. * @package MoodleWS
  5. * @copyright (c) P.Pollet 2007 under GPL
  6. */
  7. class courseRecord {
  8. /**
  9. * @var string
  10. */
  11. public $error;
  12. /**
  13. * @var integer
  14. */
  15. public $id;
  16. /**
  17. * @var integer
  18. */
  19. public $category;
  20. /**
  21. * @var integer
  22. */
  23. public $sortorder;
  24. /**
  25. * @var string
  26. */
  27. public $password;
  28. /**
  29. * @var string
  30. */
  31. public $fullname;
  32. /**
  33. * @var string
  34. */
  35. public $shortname;
  36. /**
  37. * @var string
  38. */
  39. public $idnumber;
  40. /**
  41. * @var string
  42. */
  43. public $summary;
  44. /**
  45. * @var string
  46. */
  47. public $format;
  48. /**
  49. * @var integer
  50. */
  51. public $showgrades;
  52. /**
  53. * @var integer
  54. */
  55. public $newsitems;
  56. /**
  57. * @var string
  58. */
  59. public $teacher;
  60. /**
  61. * @var string
  62. */
  63. public $teachers;
  64. /**
  65. * @var string
  66. */
  67. public $student;
  68. /**
  69. * @var string
  70. */
  71. public $students;
  72. /**
  73. * @var integer
  74. */
  75. public $guest;
  76. /**
  77. * @var integer
  78. */
  79. public $startdate;
  80. /**
  81. * @var integer
  82. */
  83. public $enrolperiod;
  84. /**
  85. * @var integer
  86. */
  87. public $numsections;
  88. /**
  89. * @var integer
  90. */
  91. public $marker;
  92. /**
  93. * @var integer
  94. */
  95. public $maxbytes;
  96. /**
  97. * @var integer
  98. */
  99. public $visible;
  100. /**
  101. * @var integer
  102. */
  103. public $hiddensections;
  104. /**
  105. * @var integer
  106. */
  107. public $groupmode;
  108. /**
  109. * @var integer
  110. */
  111. public $groupmodeforce;
  112. /**
  113. * @var string
  114. */
  115. public $lang;
  116. /**
  117. * @var string
  118. */
  119. public $theme;
  120. /**
  121. * @var string
  122. */
  123. public $cost;
  124. /**
  125. * @var integer
  126. */
  127. public $timecreated;
  128. /**
  129. * @var integer
  130. */
  131. public $timemodified;
  132. /**
  133. * @var integer
  134. */
  135. public $metacourse;
  136. /**
  137. * @var integer
  138. */
  139. public $myrole;
  140. /**
  141. * default constructor for class courseRecord
  142. * @param string $error
  143. * @param integer $id
  144. * @param integer $category
  145. * @param integer $sortorder
  146. * @param string $password
  147. * @param string $fullname
  148. * @param string $shortname
  149. * @param string $idnumber
  150. * @param string $summary
  151. * @param string $format
  152. * @param integer $showgrades
  153. * @param integer $newsitems
  154. * @param string $teacher
  155. * @param string $teachers
  156. * @param string $student
  157. * @param string $students
  158. * @param integer $guest
  159. * @param integer $startdate
  160. * @param integer $enrolperiod
  161. * @param integer $numsections
  162. * @param integer $marker
  163. * @param integer $maxbytes
  164. * @param integer $visible
  165. * @param integer $hiddensections
  166. * @param integer $groupmode
  167. * @param integer $groupmodeforce
  168. * @param string $lang
  169. * @param string $theme
  170. * @param string $cost
  171. * @param integer $timecreated
  172. * @param integer $timemodified
  173. * @param integer $metacourse
  174. * @param integer $myrole
  175. * @return courseRecord
  176. */
  177. public function courseRecord($error='',$id=0,$category=0,$sortorder=0,$password='',$fullname='',$shortname='',$idnumber='',$summary='',$format='',$showgrades=0,$newsitems=0,$teacher='',$teachers='',$student='',$students='',$guest=0,$startdate=0,$enrolperiod=0,$numsections=0,$marker=0,$maxbytes=0,$visible=0,$hiddensections=0,$groupmode=0,$groupmodeforce=0,$lang='',$theme='',$cost='',$timecreated=0,$timemodified=0,$metacourse=0,$myrole=0){
  178. $this->error=$error ;
  179. $this->id=$id ;
  180. $this->category=$category ;
  181. $this->sortorder=$sortorder ;
  182. $this->password=$password ;
  183. $this->fullname=$fullname ;
  184. $this->shortname=$shortname ;
  185. $this->idnumber=$idnumber ;
  186. $this->summary=$summary ;
  187. $this->format=$format ;
  188. $this->showgrades=$showgrades ;
  189. $this->newsitems=$newsitems ;
  190. $this->teacher=$teacher ;
  191. $this->teachers=$teachers ;
  192. $this->student=$student ;
  193. $this->students=$students ;
  194. $this->guest=$guest ;
  195. $this->startdate=$startdate ;
  196. $this->enrolperiod=$enrolperiod ;
  197. $this->numsections=$numsections ;
  198. $this->marker=$marker ;
  199. $this->maxbytes=$maxbytes ;
  200. $this->visible=$visible ;
  201. $this->hiddensections=$hiddensections ;
  202. $this->groupmode=$groupmode ;
  203. $this->groupmodeforce=$groupmodeforce ;
  204. $this->lang=$lang ;
  205. $this->theme=$theme ;
  206. $this->cost=$cost ;
  207. $this->timecreated=$timecreated ;
  208. $this->timemodified=$timemodified ;
  209. $this->metacourse=$metacourse ;
  210. $this->myrole=$myrole ;
  211. }
  212. /* get accessors */
  213. /**
  214. * @return string
  215. */
  216. public function getError(){
  217. return $this->error;
  218. }
  219. /**
  220. * @return integer
  221. */
  222. public function getId(){
  223. return $this->id;
  224. }
  225. /**
  226. * @return integer
  227. */
  228. public function getCategory(){
  229. return $this->category;
  230. }
  231. /**
  232. * @return integer
  233. */
  234. public function getSortorder(){
  235. return $this->sortorder;
  236. }
  237. /**
  238. * @return string
  239. */
  240. public function getPassword(){
  241. return $this->password;
  242. }
  243. /**
  244. * @return string
  245. */
  246. public function getFullname(){
  247. return $this->fullname;
  248. }
  249. /**
  250. * @return string
  251. */
  252. public function getShortname(){
  253. return $this->shortname;
  254. }
  255. /**
  256. * @return string
  257. */
  258. public function getIdnumber(){
  259. return $this->idnumber;
  260. }
  261. /**
  262. * @return string
  263. */
  264. public function getSummary(){
  265. return $this->summary;
  266. }
  267. /**
  268. * @return string
  269. */
  270. public function getFormat(){
  271. return $this->format;
  272. }
  273. /**
  274. * @return integer
  275. */
  276. public function getShowgrades(){
  277. return $this->showgrades;
  278. }
  279. /**
  280. * @return integer
  281. */
  282. public function getNewsitems(){
  283. return $this->newsitems;
  284. }
  285. /**
  286. * @return string
  287. */
  288. public function getTeacher(){
  289. return $this->teacher;
  290. }
  291. /**
  292. * @return string
  293. */
  294. public function getTeachers(){
  295. return $this->teachers;
  296. }
  297. /**
  298. * @return string
  299. */
  300. public function getStudent(){
  301. return $this->student;
  302. }
  303. /**
  304. * @return string
  305. */
  306. public function getStudents(){
  307. return $this->students;
  308. }
  309. /**
  310. * @return integer
  311. */
  312. public function getGuest(){
  313. return $this->guest;
  314. }
  315. /**
  316. * @return integer
  317. */
  318. public function getStartdate(){
  319. return $this->startdate;
  320. }
  321. /**
  322. * @return integer
  323. */
  324. public function getEnrolperiod(){
  325. return $this->enrolperiod;
  326. }
  327. /**
  328. * @return integer
  329. */
  330. public function getNumsections(){
  331. return $this->numsections;
  332. }
  333. /**
  334. * @return integer
  335. */
  336. public function getMarker(){
  337. return $this->marker;
  338. }
  339. /**
  340. * @return integer
  341. */
  342. public function getMaxbytes(){
  343. return $this->maxbytes;
  344. }
  345. /**
  346. * @return integer
  347. */
  348. public function getVisible(){
  349. return $this->visible;
  350. }
  351. /**
  352. * @return integer
  353. */
  354. public function getHiddensections(){
  355. return $this->hiddensections;
  356. }
  357. /**
  358. * @return integer
  359. */
  360. public function getGroupmode(){
  361. return $this->groupmode;
  362. }
  363. /**
  364. * @return integer
  365. */
  366. public function getGroupmodeforce(){
  367. return $this->groupmodeforce;
  368. }
  369. /**
  370. * @return string
  371. */
  372. public function getLang(){
  373. return $this->lang;
  374. }
  375. /**
  376. * @return string
  377. */
  378. public function getTheme(){
  379. return $this->theme;
  380. }
  381. /**
  382. * @return string
  383. */
  384. public function getCost(){
  385. return $this->cost;
  386. }
  387. /**
  388. * @return integer
  389. */
  390. public function getTimecreated(){
  391. return $this->timecreated;
  392. }
  393. /**
  394. * @return integer
  395. */
  396. public function getTimemodified(){
  397. return $this->timemodified;
  398. }
  399. /**
  400. * @return integer
  401. */
  402. public function getMetacourse(){
  403. return $this->metacourse;
  404. }
  405. /**
  406. * @return integer
  407. */
  408. public function getMyrole(){
  409. return $this->myrole;
  410. }
  411. /*set accessors */
  412. /**
  413. * @param string $error
  414. * @return void
  415. */
  416. public function setError($error){
  417. $this->error=$error;
  418. }
  419. /**
  420. * @param integer $id
  421. * @return void
  422. */
  423. public function setId($id){
  424. $this->id=$id;
  425. }
  426. /**
  427. * @param integer $category
  428. * @return void
  429. */
  430. public function setCategory($category){
  431. $this->category=$category;
  432. }
  433. /**
  434. * @param integer $sortorder
  435. * @return void
  436. */
  437. public function setSortorder($sortorder){
  438. $this->sortorder=$sortorder;
  439. }
  440. /**
  441. * @param string $password
  442. * @return void
  443. */
  444. public function setPassword($password){
  445. $this->password=$password;
  446. }
  447. /**
  448. * @param string $fullname
  449. * @return void
  450. */
  451. public function setFullname($fullname){
  452. $this->fullname=$fullname;
  453. }
  454. /**
  455. * @param string $shortname
  456. * @return void
  457. */
  458. public function setShortname($shortname){
  459. $this->shortname=$shortname;
  460. }
  461. /**
  462. * @param string $idnumber
  463. * @return void
  464. */
  465. public function setIdnumber($idnumber){
  466. $this->idnumber=$idnumber;
  467. }
  468. /**
  469. * @param string $summary
  470. * @return void
  471. */
  472. public function setSummary($summary){
  473. $this->summary=$summary;
  474. }
  475. /**
  476. * @param string $format
  477. * @return void
  478. */
  479. public function setFormat($format){
  480. $this->format=$format;
  481. }
  482. /**
  483. * @param integer $showgrades
  484. * @return void
  485. */
  486. public function setShowgrades($showgrades){
  487. $this->showgrades=$showgrades;
  488. }
  489. /**
  490. * @param integer $newsitems
  491. * @return void
  492. */
  493. public function setNewsitems($newsitems){
  494. $this->newsitems=$newsitems;
  495. }
  496. /**
  497. * @param string $teacher
  498. * @return void
  499. */
  500. public function setTeacher($teacher){
  501. $this->teacher=$teacher;
  502. }
  503. /**
  504. * @param string $teachers
  505. * @return void
  506. */
  507. public function setTeachers($teachers){
  508. $this->teachers=$teachers;
  509. }
  510. /**
  511. * @param string $student
  512. * @return void
  513. */
  514. public function setStudent($student){
  515. $this->student=$student;
  516. }
  517. /**
  518. * @param string $students
  519. * @return void
  520. */
  521. public function setStudents($students){
  522. $this->students=$students;
  523. }
  524. /**
  525. * @param integer $guest
  526. * @return void
  527. */
  528. public function setGuest($guest){
  529. $this->guest=$guest;
  530. }
  531. /**
  532. * @param integer $startdate
  533. * @return void
  534. */
  535. public function setStartdate($startdate){
  536. $this->startdate=$startdate;
  537. }
  538. /**
  539. * @param integer $enrolperiod
  540. * @return void
  541. */
  542. public function setEnrolperiod($enrolperiod){
  543. $this->enrolperiod=$enrolperiod;
  544. }
  545. /**
  546. * @param integer $numsections
  547. * @return void
  548. */
  549. public function setNumsections($numsections){
  550. $this->numsections=$numsections;
  551. }
  552. /**
  553. * @param integer $marker
  554. * @return void
  555. */
  556. public function setMarker($marker){
  557. $this->marker=$marker;
  558. }
  559. /**
  560. * @param integer $maxbytes
  561. * @return void
  562. */
  563. public function setMaxbytes($maxbytes){
  564. $this->maxbytes=$maxbytes;
  565. }
  566. /**
  567. * @param integer $visible
  568. * @return void
  569. */
  570. public function setVisible($visible){
  571. $this->visible=$visible;
  572. }
  573. /**
  574. * @param integer $hiddensections
  575. * @return void
  576. */
  577. public function setHiddensections($hiddensections){
  578. $this->hiddensections=$hiddensections;
  579. }
  580. /**
  581. * @param integer $groupmode
  582. * @return void
  583. */
  584. public function setGroupmode($groupmode){
  585. $this->groupmode=$groupmode;
  586. }
  587. /**
  588. * @param integer $groupmodeforce
  589. * @return void
  590. */
  591. public function setGroupmodeforce($groupmodeforce){
  592. $this->groupmodeforce=$groupmodeforce;
  593. }
  594. /**
  595. * @param string $lang
  596. * @return void
  597. */
  598. public function setLang($lang){
  599. $this->lang=$lang;
  600. }
  601. /**
  602. * @param string $theme
  603. * @return void
  604. */
  605. public function setTheme($theme){
  606. $this->theme=$theme;
  607. }
  608. /**
  609. * @param string $cost
  610. * @return void
  611. */
  612. public function setCost($cost){
  613. $this->cost=$cost;
  614. }
  615. /**
  616. * @param integer $timecreated
  617. * @return void
  618. */
  619. public function setTimecreated($timecreated){
  620. $this->timecreated=$timecreated;
  621. }
  622. /**
  623. * @param integer $timemodified
  624. * @return void
  625. */
  626. public function setTimemodified($timemodified){
  627. $this->timemodified=$timemodified;
  628. }
  629. /**
  630. * @param integer $metacourse
  631. * @return void
  632. */
  633. public function setMetacourse($metacourse){
  634. $this->metacourse=$metacourse;
  635. }
  636. /**
  637. * @param integer $myrole
  638. * @return void
  639. */
  640. public function setMyrole($myrole){
  641. $this->myrole=$myrole;
  642. }
  643. }
  644. ?>