public function onGetInfo(OW_Event $event) { $params = $event->getParams(); if ($params["entityType"] != self::ENTITY_TYPE) { return; } if (empty($params["entityIds"])) { return array(); } $events = $this->service->findByIdList($params["entityIds"]); $out = array(); /*@var $eventDto EVENT_BOL_Event */ foreach ($events as $eventDto) { $info = array(); $info["id"] = $eventDto->id; $info["userId"] = $eventDto->userId; $info["title"] = $eventDto->title; $info["description"] = $eventDto->description; $info["url"] = $this->service->getEventUrl($eventDto->id); $info["timeStamp"] = $eventDto->createTimeStamp; $info["startStamp"] = $eventDto->startTimeStamp; $info["endStamp"] = $eventDto->endTimeStamp; $info["image"] = array("thumbnail" => $eventDto->getImage() ? $this->service->generateImageUrl($eventDto->getImage(), true) : $this->service->generateDefaultImageUrl(), "preview" => $eventDto->getImage() ? $this->service->generateImageUrl($eventDto->getImage(), false) : null); $out[$eventDto->id] = $info; } $event->setData($out); return $out; }