public function getContent() { if ($this->id == null || $this->id == '') { $this->id = DataUtils::getRandomString(10); } Log::log(LoggingConstants::MYDEBUG, "getContent: " . $this->id); if ($this->document->images == null || $this->document->images[$this->id] == null) { $this->document->images[$this->id] = DataUtils::getImage($this->source); } return $this->document->images[$this->id]; }