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

/wspp/clients/resourceRecord.php

https://bitbucket.org/systime/screening2
PHP | 236 lines | 142 code | 35 blank | 59 comment | 0 complexity | 05cbb011f6f6d7f4e26a545c49896971 MD5 | raw file
Possible License(s): GPL-2.0, LGPL-2.1, GPL-3.0, BSD-3-Clause, LGPL-2.0
  1. <?php
  2. /**
  3. *
  4. * @package MoodleWS
  5. * @copyright (c) P.Pollet 2007 under GPL
  6. */
  7. class resourceRecord {
  8. /**
  9. * @var string
  10. */
  11. public $error;
  12. /**
  13. * @var integer
  14. */
  15. public $id;
  16. /**
  17. * @var string
  18. */
  19. public $name;
  20. /**
  21. * @var integer
  22. */
  23. public $course;
  24. /**
  25. * @var string
  26. */
  27. public $type;
  28. /**
  29. * @var string
  30. */
  31. public $reference;
  32. /**
  33. * @var string
  34. */
  35. public $summary;
  36. /**
  37. * @var string
  38. */
  39. public $alltext;
  40. /**
  41. * @var string
  42. */
  43. public $popup;
  44. /**
  45. * @var string
  46. */
  47. public $options;
  48. /**
  49. * @var integer
  50. */
  51. public $timemodified;
  52. /**
  53. * @var integer
  54. */
  55. public $section;
  56. /**
  57. * @var integer
  58. */
  59. public $visible;
  60. /**
  61. * @var integer
  62. */
  63. public $groupmode;
  64. /**
  65. * @var integer
  66. */
  67. public $coursemodule;
  68. /**
  69. * @var string
  70. */
  71. public $url;
  72. /**
  73. * @var string
  74. */
  75. public $timemodified_ut;
  76. /* full constructor */
  77. public function resourceRecord($error='',$id=0,$name='',$course=0,$type='',$reference='',$summary='',$alltext='',$popup='',$options='',$timemodified=0,$section=0,$visible=0,$groupmode=0,$coursemodule=0,$url='',$timemodified_ut=''){
  78. $this->error=$error ;
  79. $this->id=$id ;
  80. $this->name=$name ;
  81. $this->course=$course ;
  82. $this->type=$type ;
  83. $this->reference=$reference ;
  84. $this->summary=$summary ;
  85. $this->alltext=$alltext ;
  86. $this->popup=$popup ;
  87. $this->options=$options ;
  88. $this->timemodified=$timemodified ;
  89. $this->section=$section ;
  90. $this->visible=$visible ;
  91. $this->groupmode=$groupmode ;
  92. $this->coursemodule=$coursemodule ;
  93. $this->url=$url ;
  94. $this->timemodified_ut=$timemodified_ut ;
  95. }
  96. /* get accessors */
  97. public function getError(){
  98. return $this->error;
  99. }
  100. public function getId(){
  101. return $this->id;
  102. }
  103. public function getName(){
  104. return $this->name;
  105. }
  106. public function getCourse(){
  107. return $this->course;
  108. }
  109. public function getType(){
  110. return $this->type;
  111. }
  112. public function getReference(){
  113. return $this->reference;
  114. }
  115. public function getSummary(){
  116. return $this->summary;
  117. }
  118. public function getAlltext(){
  119. return $this->alltext;
  120. }
  121. public function getPopup(){
  122. return $this->popup;
  123. }
  124. public function getOptions(){
  125. return $this->options;
  126. }
  127. public function getTimemodified(){
  128. return $this->timemodified;
  129. }
  130. public function getSection(){
  131. return $this->section;
  132. }
  133. public function getVisible(){
  134. return $this->visible;
  135. }
  136. public function getGroupmode(){
  137. return $this->groupmode;
  138. }
  139. public function getCoursemodule(){
  140. return $this->coursemodule;
  141. }
  142. public function getUrl(){
  143. return $this->url;
  144. }
  145. public function getTimemodified_ut(){
  146. return $this->timemodified_ut;
  147. }
  148. /*set accessors */
  149. public function setError($error){
  150. $this->error=$error;
  151. }
  152. public function setId($id){
  153. $this->id=$id;
  154. }
  155. public function setName($name){
  156. $this->name=$name;
  157. }
  158. public function setCourse($course){
  159. $this->course=$course;
  160. }
  161. public function setType($type){
  162. $this->type=$type;
  163. }
  164. public function setReference($reference){
  165. $this->reference=$reference;
  166. }
  167. public function setSummary($summary){
  168. $this->summary=$summary;
  169. }
  170. public function setAlltext($alltext){
  171. $this->alltext=$alltext;
  172. }
  173. public function setPopup($popup){
  174. $this->popup=$popup;
  175. }
  176. public function setOptions($options){
  177. $this->options=$options;
  178. }
  179. public function setTimemodified($timemodified){
  180. $this->timemodified=$timemodified;
  181. }
  182. public function setSection($section){
  183. $this->section=$section;
  184. }
  185. public function setVisible($visible){
  186. $this->visible=$visible;
  187. }
  188. public function setGroupmode($groupmode){
  189. $this->groupmode=$groupmode;
  190. }
  191. public function setCoursemodule($coursemodule){
  192. $this->coursemodule=$coursemodule;
  193. }
  194. public function setUrl($url){
  195. $this->url=$url;
  196. }
  197. public function setTimemodified_ut($timemodified_ut){
  198. $this->timemodified_ut=$timemodified_ut;
  199. }
  200. }
  201. ?>