{"searchResult"}; $count = 0; foreach ($results->{"item"} as $result) { $title = $result->{"title"}->__toString(); $link = $result->{"viewItemURL"}->__toString(); $anzeigeLink = $link; $time = $result->{"listingInfo"}->{"endTime"}->__toString(); $time = date(DATE_RFC2822, strtotime($time)); $price = intval($result->{"sellingStatus"}->{"convertedCurrentPrice"}->__toString()) * 100; $descr = "
Preis: " . $result->{"sellingStatus"}->{"convertedCurrentPrice"}->__toString() . " €
"; $descr .= "Versandkosten: " . $result->{"shippingInfo"}->{"shippingServiceCost"}->__toString() . " €
"; if (isset($result->{"listingInfo"}->{"listingType"})) { $descr .= "Auktionsart: " . $result->{"listingInfo"}->{"listingType"}->__toString() . "
"; } $descr .= "Auktionsende: " . $time . "
"; if (isset($result->{"primaryCategory"}->{"categoryName"})) { $descr .= "Kategorie: " . $result->{"primaryCategory"}->{"categoryName"}->__toString() . "
"; } $image = $result->{"galleryURL"}->__toString(); $this->counter++; $this->results[] = new \App\Models\Result( $this->engine, $title, $link, $anzeigeLink, $descr, $this->gefVon, $this->counter, false, $image, $price ); $count++; } } catch (\Exception $e) { Log::error("A problem occurred parsing results from $this->name"); return; } } }