PageRenderTime 44ms CodeModel.GetById 16ms RepoModel.GetById 0ms app.codeStats 0ms

/wspp/resourceRecord.php

https://bitbucket.org/systime/screening2
PHP | 235 lines | 142 code | 35 blank | 58 comment | 0 complexity | 60628b5c1349661d1ef5498d3227228a 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. public function resourceRecord() {
  77. $this->error='';
  78. $this->id=0;
  79. $this->name='';
  80. $this->course=0;
  81. $this->type='';
  82. $this->reference='';
  83. $this->summary='';
  84. $this->alltext='';
  85. $this->popup='';
  86. $this->options='';
  87. $this->timemodified=0;
  88. $this->section=0;
  89. $this->visible=0;
  90. $this->groupmode=0;
  91. $this->coursemodule=0;
  92. $this->url='';
  93. $this->timemodified_ut='';
  94. }
  95. /* get accessors */
  96. public function getError(){
  97. return $this->error;
  98. }
  99. public function getId(){
  100. return $this->id;
  101. }
  102. public function getName(){
  103. return $this->name;
  104. }
  105. public function getCourse(){
  106. return $this->course;
  107. }
  108. public function getType(){
  109. return $this->type;
  110. }
  111. public function getReference(){
  112. return $this->reference;
  113. }
  114. public function getSummary(){
  115. return $this->summary;
  116. }
  117. public function getAlltext(){
  118. return $this->alltext;
  119. }
  120. public function getPopup(){
  121. return $this->popup;
  122. }
  123. public function getOptions(){
  124. return $this->options;
  125. }
  126. public function getTimemodified(){
  127. return $this->timemodified;
  128. }
  129. public function getSection(){
  130. return $this->section;
  131. }
  132. public function getVisible(){
  133. return $this->visible;
  134. }
  135. public function getGroupmode(){
  136. return $this->groupmode;
  137. }
  138. public function getCoursemodule(){
  139. return $this->coursemodule;
  140. }
  141. public function getUrl(){
  142. return $this->url;
  143. }
  144. public function getTimemodified_ut(){
  145. return $this->timemodified_ut;
  146. }
  147. /*set accessors */
  148. public function setError($error){
  149. $this->error=$error;
  150. }
  151. public function setId($id){
  152. $this->id=$id;
  153. }
  154. public function setName($name){
  155. $this->name=$name;
  156. }
  157. public function setCourse($course){
  158. $this->course=$course;
  159. }
  160. public function setType($type){
  161. $this->type=$type;
  162. }
  163. public function setReference($reference){
  164. $this->reference=$reference;
  165. }
  166. public function setSummary($summary){
  167. $this->summary=$summary;
  168. }
  169. public function setAlltext($alltext){
  170. $this->alltext=$alltext;
  171. }
  172. public function setPopup($popup){
  173. $this->popup=$popup;
  174. }
  175. public function setOptions($options){
  176. $this->options=$options;
  177. }
  178. public function setTimemodified($timemodified){
  179. $this->timemodified=$timemodified;
  180. }
  181. public function setSection($section){
  182. $this->section=$section;
  183. }
  184. public function setVisible($visible){
  185. $this->visible=$visible;
  186. }
  187. public function setGroupmode($groupmode){
  188. $this->groupmode=$groupmode;
  189. }
  190. public function setCoursemodule($coursemodule){
  191. $this->coursemodule=$coursemodule;
  192. }
  193. public function setUrl($url){
  194. $this->url=$url;
  195. }
  196. public function setTimemodified_ut($timemodified_ut){
  197. $this->timemodified_ut=$timemodified_ut;
  198. }
  199. }
  200. ?>