public function onGetInfo(OW_Event $event) { $params = $event->getParams(); if ($params["entityType"] != self::ENTITY_TYPE) { return; } $groups = $this->service->findGroupListByIds($params["entityIds"]); $out = array(); foreach ($groups as $group) { $info = array(); $info["id"] = $group->id; $info["userId"] = $group->userId; $info["title"] = $group->title; $info["description"] = $group->description; $info["url"] = $this->service->getGroupUrl($group); $info["timeStamp"] = $group->timeStamp; $info["image"] = array("thumbnail" => $this->service->getGroupImageUrl($group)); $out[$group->id] = $info; } $event->setData($out); return $out; }