66 return isset($this->senders[0]) ? $this->senders[0] : 0;
113 if(!is_object($json))
115 include_once(
'./Services/WebServices/ECS/classes/class.ilECSReaderException.php');
116 $ilLog->write(__METHOD__.
': Cannot load from JSON. No object given.');
120 foreach((array) $json->senders as $sender)
122 $this->senders[] = $sender->mid;
125 foreach((array) $json->receivers as $receiver)
127 $this->receivers[] = $receiver->mid;
133 $this->receiver_info[$this->sender[$i]] = $this->receivers[$i];
136 if(is_object($json->owner))
138 $this->owner = (int) $json->owner->pid;
141 $this->url = $json->url;
142 $this->content_type = $json->content_type;