PageRenderTime 51ms CodeModel.GetById 24ms RepoModel.GetById 1ms app.codeStats 0ms

/wspp/clients/forumRecord.php

https://bitbucket.org/systime/screening2
PHP | 262 lines | 158 code | 39 blank | 65 comment | 0 complexity | f82650c447748fb9e2a4e91849fc4e4a 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 forumRecord {
  8. /**
  9. * @var string
  10. */
  11. public $error;
  12. /**
  13. * @var integer
  14. */
  15. public $id;
  16. /**
  17. * @var integer
  18. */
  19. public $course;
  20. /**
  21. * @var string
  22. */
  23. public $type;
  24. /**
  25. * @var string
  26. */
  27. public $name;
  28. /**
  29. * @var string
  30. */
  31. public $intro;
  32. /**
  33. * @var integer
  34. */
  35. public $assessed;
  36. /**
  37. * @var integer
  38. */
  39. public $assesstimestart;
  40. /**
  41. * @var integer
  42. */
  43. public $assesstimefinish;
  44. /**
  45. * @var integer
  46. */
  47. public $scale;
  48. /**
  49. * @var integer
  50. */
  51. public $maxbytes;
  52. /**
  53. * @var integer
  54. */
  55. public $forcesubscribe;
  56. /**
  57. * @var integer
  58. */
  59. public $trackingtype;
  60. /**
  61. * @var integer
  62. */
  63. public $rsstype;
  64. /**
  65. * @var integer
  66. */
  67. public $rssarticles;
  68. /**
  69. * @var integer
  70. */
  71. public $timemodified;
  72. /**
  73. * @var integer
  74. */
  75. public $warnafter;
  76. /**
  77. * @var integer
  78. */
  79. public $blockafter;
  80. /**
  81. * @var integer
  82. */
  83. public $blockperiod;
  84. /* full constructor */
  85. public function forumRecord($error='',$id=0,$course=0,$type='',$name='',$intro='',$assessed=0,$assesstimestart=0,$assesstimefinish=0,$scale=0,$maxbytes=0,$forcesubscribe=0,$trackingtype=0,$rsstype=0,$rssarticles=0,$timemodified=0,$warnafter=0,$blockafter=0,$blockperiod=0){
  86. $this->error=$error ;
  87. $this->id=$id ;
  88. $this->course=$course ;
  89. $this->type=$type ;
  90. $this->name=$name ;
  91. $this->intro=$intro ;
  92. $this->assessed=$assessed ;
  93. $this->assesstimestart=$assesstimestart ;
  94. $this->assesstimefinish=$assesstimefinish ;
  95. $this->scale=$scale ;
  96. $this->maxbytes=$maxbytes ;
  97. $this->forcesubscribe=$forcesubscribe ;
  98. $this->trackingtype=$trackingtype ;
  99. $this->rsstype=$rsstype ;
  100. $this->rssarticles=$rssarticles ;
  101. $this->timemodified=$timemodified ;
  102. $this->warnafter=$warnafter ;
  103. $this->blockafter=$blockafter ;
  104. $this->blockperiod=$blockperiod ;
  105. }
  106. /* get accessors */
  107. public function getError(){
  108. return $this->error;
  109. }
  110. public function getId(){
  111. return $this->id;
  112. }
  113. public function getCourse(){
  114. return $this->course;
  115. }
  116. public function getType(){
  117. return $this->type;
  118. }
  119. public function getName(){
  120. return $this->name;
  121. }
  122. public function getIntro(){
  123. return $this->intro;
  124. }
  125. public function getAssessed(){
  126. return $this->assessed;
  127. }
  128. public function getAssesstimestart(){
  129. return $this->assesstimestart;
  130. }
  131. public function getAssesstimefinish(){
  132. return $this->assesstimefinish;
  133. }
  134. public function getScale(){
  135. return $this->scale;
  136. }
  137. public function getMaxbytes(){
  138. return $this->maxbytes;
  139. }
  140. public function getForcesubscribe(){
  141. return $this->forcesubscribe;
  142. }
  143. public function getTrackingtype(){
  144. return $this->trackingtype;
  145. }
  146. public function getRsstype(){
  147. return $this->rsstype;
  148. }
  149. public function getRssarticles(){
  150. return $this->rssarticles;
  151. }
  152. public function getTimemodified(){
  153. return $this->timemodified;
  154. }
  155. public function getWarnafter(){
  156. return $this->warnafter;
  157. }
  158. public function getBlockafter(){
  159. return $this->blockafter;
  160. }
  161. public function getBlockperiod(){
  162. return $this->blockperiod;
  163. }
  164. /*set accessors */
  165. public function setError($error){
  166. $this->error=$error;
  167. }
  168. public function setId($id){
  169. $this->id=$id;
  170. }
  171. public function setCourse($course){
  172. $this->course=$course;
  173. }
  174. public function setType($type){
  175. $this->type=$type;
  176. }
  177. public function setName($name){
  178. $this->name=$name;
  179. }
  180. public function setIntro($intro){
  181. $this->intro=$intro;
  182. }
  183. public function setAssessed($assessed){
  184. $this->assessed=$assessed;
  185. }
  186. public function setAssesstimestart($assesstimestart){
  187. $this->assesstimestart=$assesstimestart;
  188. }
  189. public function setAssesstimefinish($assesstimefinish){
  190. $this->assesstimefinish=$assesstimefinish;
  191. }
  192. public function setScale($scale){
  193. $this->scale=$scale;
  194. }
  195. public function setMaxbytes($maxbytes){
  196. $this->maxbytes=$maxbytes;
  197. }
  198. public function setForcesubscribe($forcesubscribe){
  199. $this->forcesubscribe=$forcesubscribe;
  200. }
  201. public function setTrackingtype($trackingtype){
  202. $this->trackingtype=$trackingtype;
  203. }
  204. public function setRsstype($rsstype){
  205. $this->rsstype=$rsstype;
  206. }
  207. public function setRssarticles($rssarticles){
  208. $this->rssarticles=$rssarticles;
  209. }
  210. public function setTimemodified($timemodified){
  211. $this->timemodified=$timemodified;
  212. }
  213. public function setWarnafter($warnafter){
  214. $this->warnafter=$warnafter;
  215. }
  216. public function setBlockafter($blockafter){
  217. $this->blockafter=$blockafter;
  218. }
  219. public function setBlockperiod($blockperiod){
  220. $this->blockperiod=$blockperiod;
  221. }
  222. }
  223. ?>