Commit 231d74a7 authored by Dominik Hebeler's avatar Dominik Hebeler
Browse files

Fairmondo hinzugefügt allerdings existiert keines der durch die API gelieferten Produkte

parent a1049a53
<?php
namespace app\Models\parserSkripte;
use App\Models\Searchengine;
class Fairmondo extends Searchengine
{
public $results = [];
function __construct (\SimpleXMLElement $engine, \App\MetaGer $metager)
{
parent::__construct($engine, $metager);
}
public function loadResults ($result)
{
$results = json_decode($result, true);
$results = $results["articles"];
foreach($results as $result)
{
$title = $result["title"];
$link = $result["html_url"];
$anzeigeLink = $link;
$descr = $result["slug"];
$this->counter++;
$this->results[] = new \App\Models\Result(
$this->engine,
$title,
$link,
$anzeigeLink,
$descr,
$this->gefVon,
$this->counter
);
}
}
}
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment