/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
- <?php
- /**
- *
- * @package MoodleWS
- * @copyright (c) P.Pollet 2007 under GPL
- */
- class courseRecord {
- /**
- * @var string
- */
- public $error;
- /**
- * @var integer
- */
- public $id;
- /**
- * @var integer
- */
- public $category;
- /**
- * @var integer
- */
- public $sortorder;
- /**
- * @var string
- */
- public $password;
- /**
- * @var string
- */
- public $fullname;
- /**
- * @var string
- */
- public $shortname;
- /**
- * @var string
- */
- public $idnumber;
- /**
- * @var string
- */
- public $summary;
- /**
- * @var string
- */
- public $format;
- /**
- * @var integer
- */
- public $showgrades;
- /**
- * @var integer
- */
- public $newsitems;
- /**
- * @var string
- */
- public $teacher;
- /**
- * @var string
- */
- public $teachers;
- /**
- * @var string
- */
- public $student;
- /**
- * @var string
- */
- public $students;
- /**
- * @var integer
- */
- public $guest;
- /**
- * @var integer
- */
- public $startdate;
- /**
- * @var integer
- */
- public $enrolperiod;
- /**
- * @var integer
- */
- public $numsections;
- /**
- * @var integer
- */
- public $marker;
- /**
- * @var integer
- */
- public $maxbytes;
- /**
- * @var integer
- */
- public $visible;
- /**
- * @var integer
- */
- public $hiddensections;
- /**
- * @var integer
- */
- public $groupmode;
- /**
- * @var integer
- */
- public $groupmodeforce;
- /**
- * @var string
- */
- public $lang;
- /**
- * @var string
- */
- public $theme;
- /**
- * @var string
- */
- public $cost;
- /**
- * @var integer
- */
- public $timecreated;
- /**
- * @var integer
- */
- public $timemodified;
- /**
- * @var integer
- */
- public $metacourse;
- /**
- * @var integer
- */
- public $myrole;
- /**
- * default constructor for class courseRecord
- * @param string $error
- * @param integer $id
- * @param integer $category
- * @param integer $sortorder
- * @param string $password
- * @param string $fullname
- * @param string $shortname
- * @param string $idnumber
- * @param string $summary
- * @param string $format
- * @param integer $showgrades
- * @param integer $newsitems
- * @param string $teacher
- * @param string $teachers
- * @param string $student
- * @param string $students
- * @param integer $guest
- * @param integer $startdate
- * @param integer $enrolperiod
- * @param integer $numsections
- * @param integer $marker
- * @param integer $maxbytes
- * @param integer $visible
- * @param integer $hiddensections
- * @param integer $groupmode
- * @param integer $groupmodeforce
- * @param string $lang
- * @param string $theme
- * @param string $cost
- * @param integer $timecreated
- * @param integer $timemodified
- * @param integer $metacourse
- * @param integer $myrole
- * @return courseRecord
- */
- 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){
- $this->error=$error ;
- $this->id=$id ;
- $this->category=$category ;
- $this->sortorder=$sortorder ;
- $this->password=$password ;
- $this->fullname=$fullname ;
- $this->shortname=$shortname ;
- $this->idnumber=$idnumber ;
- $this->summary=$summary ;
- $this->format=$format ;
- $this->showgrades=$showgrades ;
- $this->newsitems=$newsitems ;
- $this->teacher=$teacher ;
- $this->teachers=$teachers ;
- $this->student=$student ;
- $this->students=$students ;
- $this->guest=$guest ;
- $this->startdate=$startdate ;
- $this->enrolperiod=$enrolperiod ;
- $this->numsections=$numsections ;
- $this->marker=$marker ;
- $this->maxbytes=$maxbytes ;
- $this->visible=$visible ;
- $this->hiddensections=$hiddensections ;
- $this->groupmode=$groupmode ;
- $this->groupmodeforce=$groupmodeforce ;
- $this->lang=$lang ;
- $this->theme=$theme ;
- $this->cost=$cost ;
- $this->timecreated=$timecreated ;
- $this->timemodified=$timemodified ;
- $this->metacourse=$metacourse ;
- $this->myrole=$myrole ;
- }
- /* get accessors */
- /**
- * @return string
- */
- public function getError(){
- return $this->error;
- }
- /**
- * @return integer
- */
- public function getId(){
- return $this->id;
- }
- /**
- * @return integer
- */
- public function getCategory(){
- return $this->category;
- }
- /**
- * @return integer
- */
- public function getSortorder(){
- return $this->sortorder;
- }
- /**
- * @return string
- */
- public function getPassword(){
- return $this->password;
- }
- /**
- * @return string
- */
- public function getFullname(){
- return $this->fullname;
- }
- /**
- * @return string
- */
- public function getShortname(){
- return $this->shortname;
- }
- /**
- * @return string
- */
- public function getIdnumber(){
- return $this->idnumber;
- }
- /**
- * @return string
- */
- public function getSummary(){
- return $this->summary;
- }
- /**
- * @return string
- */
- public function getFormat(){
- return $this->format;
- }
- /**
- * @return integer
- */
- public function getShowgrades(){
- return $this->showgrades;
- }
- /**
- * @return integer
- */
- public function getNewsitems(){
- return $this->newsitems;
- }
- /**
- * @return string
- */
- public function getTeacher(){
- return $this->teacher;
- }
- /**
- * @return string
- */
- public function getTeachers(){
- return $this->teachers;
- }
- /**
- * @return string
- */
- public function getStudent(){
- return $this->student;
- }
- /**
- * @return string
- */
- public function getStudents(){
- return $this->students;
- }
- /**
- * @return integer
- */
- public function getGuest(){
- return $this->guest;
- }
- /**
- * @return integer
- */
- public function getStartdate(){
- return $this->startdate;
- }
- /**
- * @return integer
- */
- public function getEnrolperiod(){
- return $this->enrolperiod;
- }
- /**
- * @return integer
- */
- public function getNumsections(){
- return $this->numsections;
- }
- /**
- * @return integer
- */
- public function getMarker(){
- return $this->marker;
- }
- /**
- * @return integer
- */
- public function getMaxbytes(){
- return $this->maxbytes;
- }
- /**
- * @return integer
- */
- public function getVisible(){
- return $this->visible;
- }
- /**
- * @return integer
- */
- public function getHiddensections(){
- return $this->hiddensections;
- }
- /**
- * @return integer
- */
- public function getGroupmode(){
- return $this->groupmode;
- }
- /**
- * @return integer
- */
- public function getGroupmodeforce(){
- return $this->groupmodeforce;
- }
- /**
- * @return string
- */
- public function getLang(){
- return $this->lang;
- }
- /**
- * @return string
- */
- public function getTheme(){
- return $this->theme;
- }
- /**
- * @return string
- */
- public function getCost(){
- return $this->cost;
- }
- /**
- * @return integer
- */
- public function getTimecreated(){
- return $this->timecreated;
- }
- /**
- * @return integer
- */
- public function getTimemodified(){
- return $this->timemodified;
- }
- /**
- * @return integer
- */
- public function getMetacourse(){
- return $this->metacourse;
- }
- /**
- * @return integer
- */
- public function getMyrole(){
- return $this->myrole;
- }
- /*set accessors */
- /**
- * @param string $error
- * @return void
- */
- public function setError($error){
- $this->error=$error;
- }
- /**
- * @param integer $id
- * @return void
- */
- public function setId($id){
- $this->id=$id;
- }
- /**
- * @param integer $category
- * @return void
- */
- public function setCategory($category){
- $this->category=$category;
- }
- /**
- * @param integer $sortorder
- * @return void
- */
- public function setSortorder($sortorder){
- $this->sortorder=$sortorder;
- }
- /**
- * @param string $password
- * @return void
- */
- public function setPassword($password){
- $this->password=$password;
- }
- /**
- * @param string $fullname
- * @return void
- */
- public function setFullname($fullname){
- $this->fullname=$fullname;
- }
- /**
- * @param string $shortname
- * @return void
- */
- public function setShortname($shortname){
- $this->shortname=$shortname;
- }
- /**
- * @param string $idnumber
- * @return void
- */
- public function setIdnumber($idnumber){
- $this->idnumber=$idnumber;
- }
- /**
- * @param string $summary
- * @return void
- */
- public function setSummary($summary){
- $this->summary=$summary;
- }
- /**
- * @param string $format
- * @return void
- */
- public function setFormat($format){
- $this->format=$format;
- }
- /**
- * @param integer $showgrades
- * @return void
- */
- public function setShowgrades($showgrades){
- $this->showgrades=$showgrades;
- }
- /**
- * @param integer $newsitems
- * @return void
- */
- public function setNewsitems($newsitems){
- $this->newsitems=$newsitems;
- }
- /**
- * @param string $teacher
- * @return void
- */
- public function setTeacher($teacher){
- $this->teacher=$teacher;
- }
- /**
- * @param string $teachers
- * @return void
- */
- public function setTeachers($teachers){
- $this->teachers=$teachers;
- }
- /**
- * @param string $student
- * @return void
- */
- public function setStudent($student){
- $this->student=$student;
- }
- /**
- * @param string $students
- * @return void
- */
- public function setStudents($students){
- $this->students=$students;
- }
- /**
- * @param integer $guest
- * @return void
- */
- public function setGuest($guest){
- $this->guest=$guest;
- }
- /**
- * @param integer $startdate
- * @return void
- */
- public function setStartdate($startdate){
- $this->startdate=$startdate;
- }
- /**
- * @param integer $enrolperiod
- * @return void
- */
- public function setEnrolperiod($enrolperiod){
- $this->enrolperiod=$enrolperiod;
- }
- /**
- * @param integer $numsections
- * @return void
- */
- public function setNumsections($numsections){
- $this->numsections=$numsections;
- }
- /**
- * @param integer $marker
- * @return void
- */
- public function setMarker($marker){
- $this->marker=$marker;
- }
- /**
- * @param integer $maxbytes
- * @return void
- */
- public function setMaxbytes($maxbytes){
- $this->maxbytes=$maxbytes;
- }
- /**
- * @param integer $visible
- * @return void
- */
- public function setVisible($visible){
- $this->visible=$visible;
- }
- /**
- * @param integer $hiddensections
- * @return void
- */
- public function setHiddensections($hiddensections){
- $this->hiddensections=$hiddensections;
- }
- /**
- * @param integer $groupmode
- * @return void
- */
- public function setGroupmode($groupmode){
- $this->groupmode=$groupmode;
- }
- /**
- * @param integer $groupmodeforce
- * @return void
- */
- public function setGroupmodeforce($groupmodeforce){
- $this->groupmodeforce=$groupmodeforce;
- }
- /**
- * @param string $lang
- * @return void
- */
- public function setLang($lang){
- $this->lang=$lang;
- }
- /**
- * @param string $theme
- * @return void
- */
- public function setTheme($theme){
- $this->theme=$theme;
- }
- /**
- * @param string $cost
- * @return void
- */
- public function setCost($cost){
- $this->cost=$cost;
- }
- /**
- * @param integer $timecreated
- * @return void
- */
- public function setTimecreated($timecreated){
- $this->timecreated=$timecreated;
- }
- /**
- * @param integer $timemodified
- * @return void
- */
- public function setTimemodified($timemodified){
- $this->timemodified=$timemodified;
- }
- /**
- * @param integer $metacourse
- * @return void
- */
- public function setMetacourse($metacourse){
- $this->metacourse=$metacourse;
- }
- /**
- * @param integer $myrole
- * @return void
- */
- public function setMyrole($myrole){
- $this->myrole=$myrole;
- }
- }
- ?>