public function onGetInfo(OW_Event $event) { $params = $event->getParams(); if ($params["entityType"] != self::ENTITY_TYPE) { return; } $entityList = $this->service->findClipByIds($params["entityIds"]); $out = array(); foreach ($entityList as $entity) { /* @var $entity VIDEO_BOL_Clip */ $info = array(); $info["id"] = $entity->id; $info["userId"] = $entity->userId; $info["title"] = $entity->title; $info["description"] = $entity->description; $info["url"] = $url = OW::getRouter()->urlForRoute('view_clip', array('id' => $entity->id)); $info["html"] = $entity->code; $info["timeStamp"] = $entity->addDatetime; $info["provider"] = $entity->provider; $info["image"] = array("thumbnail" => $this->service->getClipThumbUrl($entity->id)); if ($info["image"]["thumbnail"] == "undefined") { $info["image"]["thumbnail"] = $this->service->getClipDefaultThumbUrl(); } $info["status"] = $entity->status == "approved" ? BOL_ContentService::STATUS_ACTIVE : BOL_ContentService::STATUS_APPROVAL; $out[$entity->id] = $info; } $event->setData($out); return $out; }