42         public $etype = 
'application/ecs-course';
 
   67                 include_once(
'./Services/WebServices/ECS/classes/class.ilECSTimePlace.php');
 
   96                 $this->obj_id = $a_id;
 
  119                 return $this->organization;
 
  143                 $this->title = $a_title;
 
  166                 $this->
abstract = $a_info;
 
  214                         $this->lang = ($a_key.
'_'.strtoupper($a_key));
 
  226                 if(strlen($this->lang))
 
  228                         return substr($this->lang,0,2);
 
  240                 $this->eligibleMembers = array();
 
  241                 foreach($a_members as $member)
 
  243                         $this->eligibleMembers[] = (int) $member;
 
  255                 return $this->eligibleMembers ? $this->eligibleMembers : array();
 
  265                 return $this->owner ? $this->owner : 0;
 
  277                 $this->owner = (int) $a_owner;
 
  303                                 $this->status = 
'online';
 
  307                                 $this->status = 
'offline';
 
  321                 return $this->status == 
'online' ? $this->status : 
'offline';   
 
  332                 return $this->status == 
'online' ? 
true : 
false;
 
  344                 $this->credits = $a_credits;
 
  367                 $this->semesterHours = $a_semester_hours;
 
  392                 $lecturer_arr = explode(
',',$a_lecturer);
 
  393                 $this->lecturer = array();
 
  396                         $this->lecturer[] = trim($lecturer);
 
  409                 return implode(
', ',$this->lecturer);
 
  423                 $courses_arr = explode(
',',$a_courses);
 
  424                 $this->study_courses = array();
 
  425                 foreach($courses_arr as $course)
 
  427                         $this->study_courses[] = trim($course);
 
  440                 return implode(
', ',$this->study_courses);
 
  452                 $this->courseType = $a_type;
 
  475                 $this->courseID = $a_id;
 
  498                 $this->term = $a_term;
 
  523                 if(!is_object($a_json))
 
  525                         include_once(
'./Services/WebServices/ECS/classes/class.ilECSReaderException.php');
 
  526                         $ilLog->write(__METHOD__.
': Cannot load from JSON. No object given.');
 
  529                 $this->organization = $a_json->organization;
 
  530                 $this->study_courses = $a_json->study_courses ? $a_json->study_courses : array();
 
  531                 $this->owner = $a_json->owner;
 
  532                 $this->title = $a_json->title;
 
  533                 $this->
abstract = $a_json->abstract;
 
  534                 $this->credits = $a_json->credits;
 
  535                 $this->semesterHours = $a_json->semesterHours;
 
  536                 $this->lecturer = $a_json->lecturer ? $a_json->lecturer : array();
 
  537                 $this->etype = $a_json->etype;
 
  538                 $this->status = $a_json->status;
 
  540                 $this->courseID = $a_json->courseID;
 
  541                 $this->courseType = $a_json->courseType;
 
  542                 $this->eid = $a_json->eid;
 
  543                 $this->term = $a_json->term;
 
  544                 $this->url = $a_json->url;
 
  545                 $this->lang = $a_json->lang;
 
  547                 if(is_object($a_json->timePlace))
 
  550                         $this->timePlace->loadFromJSON($a_json->timePlace);
 
  556                 $this->eligibleMembers = $a_json->eligibleMembers ? $a_json->eligibleMembers : array();