44 public $etype =
'application/ecs-course';
68 include_once(
'./Services/WebServices/ECS/classes/class.ilECSTimePlace.php');
97 $this->obj_id = $a_id;
120 return $this->organisation;
144 $this->title = $a_title;
167 $this->
abstract = $a_info;
215 $this->lang = ($a_key.
'_'.strtoupper($a_key));
227 if(strlen($this->lang))
229 return substr($this->lang,0,2);
241 return $this->owner ? $this->owner : 0;
253 $this->owner = (int) $a_owner;
269 $this->status =
'online';
273 $this->status =
'offline';
287 return $this->status ==
'online' ? $this->status :
'offline';
298 return $this->status ==
'online' ?
true :
false;
310 $this->credits = $a_credits;
333 $this->semesterHours = $a_semester_hours;
358 $lecturer_arr = explode(
',',$a_lecturer);
359 $this->lecturer = array();
362 $this->lecturer[] = trim($lecturer);
375 return implode(
', ',$this->lecturer);
389 $courses_arr = explode(
',',$a_courses);
390 $this->study_courses = array();
391 foreach($courses_arr as $course)
393 $this->study_courses[] = trim($course);
406 return implode(
', ',$this->study_courses);
418 $this->courseType = $a_type;
441 $this->courseID = $a_id;
464 $this->term = $a_term;
498 if(!is_object($a_json))
500 include_once(
'./Services/WebServices/ECS/classes/class.ilECSReaderException.php');
501 $ilLog->write(__METHOD__.
': Cannot load from JSON. No object given.');
504 $this->organisation = $a_json->organisation;
505 $this->study_courses = $a_json->study_courses ? $a_json->study_courses : array();
506 $this->title = $a_json->title;
507 $this->
abstract = $a_json->abstract;
508 $this->credits = $a_json->credits;
509 $this->semesterHours = $a_json->semesterHours;
510 $this->lecturer = $a_json->lecturer ? $a_json->lecturer : array();
511 $this->etype = $a_json->etype;
512 $this->status = $a_json->status;
514 $this->courseID = $a_json->courseID;
515 $this->courseType = $a_json->courseType;
516 #$this->eid = $a_json->eid;
517 $this->term = $a_json->term;
518 $this->url = $a_json->url;
519 $this->lang = $a_json->lang;
521 if(is_object($a_json->timePlace))
524 $this->timePlace->loadFromJSON($a_json->timePlace);