Commit 3ea48277 authored by Dominik Hebeler's avatar Dominik Hebeler

Changed Parser Scripts to use new sumas.json

parent 0da2436e
...@@ -9,9 +9,9 @@ use Symfony\Component\DomCrawler\Crawler; ...@@ -9,9 +9,9 @@ use Symfony\Component\DomCrawler\Crawler;
class Allesklar extends Searchengine class Allesklar extends Searchengine
{ {
protected $tds = ""; protected $tds = "";
public function __construct(\SimpleXMLElement $engine, \App\MetaGer $metager) public function __construct($name, \StdClass $engine, \App\MetaGer $metager)
{ {
parent::__construct($engine, $metager); parent::__construct($name, $engine, $metager);
} }
public function loadResults($result) public function loadResults($result)
...@@ -43,7 +43,7 @@ class Allesklar extends Searchengine ...@@ -43,7 +43,7 @@ class Allesklar extends Searchengine
$link, $link,
$link, $link,
$descr, $descr,
$this->displayName,$this->homepage, $this->engine->{"display-name"},$this->engine->homepage,
$this->counter $this->counter
); );
} catch (\Exception $e) { } catch (\Exception $e) {
......
...@@ -9,9 +9,9 @@ class BASE extends Searchengine ...@@ -9,9 +9,9 @@ class BASE extends Searchengine
{ {
public $results = []; public $results = [];
public function __construct(\SimpleXMLElement $engine, \App\MetaGer $metager) public function __construct($name, \StdClass $engine, \App\MetaGer $metager)
{ {
parent::__construct($engine, $metager); parent::__construct($name, $engine, $metager);
} }
public function loadResults($result) public function loadResults($result)
...@@ -49,7 +49,7 @@ class BASE extends Searchengine ...@@ -49,7 +49,7 @@ class BASE extends Searchengine
$link, $link,
$anzeigeLink, $anzeigeLink,
$descr, $descr,
$this->displayName,$this->homepage, $this->engine->{"display-name"},$this->engine->homepage,
$this->counter $this->counter
); );
} }
......
...@@ -8,9 +8,9 @@ class Beammachine extends Searchengine ...@@ -8,9 +8,9 @@ class Beammachine extends Searchengine
{ {
public $results = []; public $results = [];
public function __construct(\SimpleXMLElement $engine, \App\MetaGer $metager) public function __construct($name, \StdClass $engine, \App\MetaGer $metager)
{ {
parent::__construct($engine, $metager); parent::__construct($name, $engine, $metager);
} }
public function loadResults($result) public function loadResults($result)
...@@ -34,7 +34,7 @@ class Beammachine extends Searchengine ...@@ -34,7 +34,7 @@ class Beammachine extends Searchengine
$link, $link,
$anzeigeLink, $anzeigeLink,
$descr, $descr,
$this->displayName,$this->homepage, $this->engine->{"display-name"},$this->engine->homepage,
$this->counter $this->counter
); );
} }
......
...@@ -9,9 +9,9 @@ class Blogsearch extends Searchengine ...@@ -9,9 +9,9 @@ class Blogsearch extends Searchengine
{ {
public $results = []; public $results = [];
public function __construct(\SimpleXMLElement $engine, \App\MetaGer $metager) public function __construct($name, \StdClass $engine, \App\MetaGer $metager)
{ {
parent::__construct($engine, $metager); parent::__construct($name, $engine, $metager);
} }
public function loadResults($result) public function loadResults($result)
...@@ -36,7 +36,7 @@ class Blogsearch extends Searchengine ...@@ -36,7 +36,7 @@ class Blogsearch extends Searchengine
$link, $link,
$anzeigeLink, $anzeigeLink,
$descr, $descr,
$this->displayName,$this->homepage, $this->engine->{"display-name"},$this->engine->homepage,
$this->counter $this->counter
); );
} }
......
...@@ -9,9 +9,9 @@ class Dailymotion extends Searchengine ...@@ -9,9 +9,9 @@ class Dailymotion extends Searchengine
{ {
public $results = []; public $results = [];
public function __construct(\SimpleXMLElement $engine, \App\MetaGer $metager) public function __construct($name, \StdClass $engine, \App\MetaGer $metager)
{ {
parent::__construct($engine, $metager); parent::__construct($name, $engine, $metager);
} }
public function loadResults($result) public function loadResults($result)
...@@ -37,7 +37,7 @@ class Dailymotion extends Searchengine ...@@ -37,7 +37,7 @@ class Dailymotion extends Searchengine
$link, $link,
$anzeigeLink, $anzeigeLink,
$descr, $descr,
$this->displayName,$this->homepage, $this->engine->{"display-name"},$this->engine->homepage,
$this->counter, $this->counter,
['partnershop' => false] ['partnershop' => false]
); );
......
...@@ -9,9 +9,9 @@ class Dart extends Searchengine ...@@ -9,9 +9,9 @@ class Dart extends Searchengine
{ {
public $results = []; public $results = [];
public function __construct(\SimpleXMLElement $engine, \App\MetaGer $metager) public function __construct($name, \StdClass $engine, \App\MetaGer $metager)
{ {
parent::__construct($engine, $metager); parent::__construct($name, $engine, $metager);
} }
public function loadResults($result) public function loadResults($result)
...@@ -57,7 +57,7 @@ class Dart extends Searchengine ...@@ -57,7 +57,7 @@ class Dart extends Searchengine
$link, $link,
$anzeigeLink, $anzeigeLink,
$descr, $descr,
$this->displayName,$this->homepage, $this->engine->{"display-name"},$this->engine->homepage,
$this->counter $this->counter
); );
} }
......
...@@ -8,9 +8,9 @@ class Dmoznebel extends Searchengine ...@@ -8,9 +8,9 @@ class Dmoznebel extends Searchengine
{ {
public $results = []; public $results = [];
public function __construct(\SimpleXMLElement $engine, \App\MetaGer $metager) public function __construct($name, \StdClass $engine, \App\MetaGer $metager)
{ {
parent::__construct($engine, $metager); parent::__construct($name, $engine, $metager);
} }
public function loadResults($result) public function loadResults($result)
...@@ -36,7 +36,7 @@ class Dmoznebel extends Searchengine ...@@ -36,7 +36,7 @@ class Dmoznebel extends Searchengine
$link, $link,
$anzeigeLink, $anzeigeLink,
$descr, $descr,
$this->displayName,$this->homepage, $this->engine->{"display-name"},$this->engine->homepage,
$this->counter $this->counter
); );
} }
......
...@@ -8,9 +8,9 @@ class Dmoznebel_int extends Searchengine ...@@ -8,9 +8,9 @@ class Dmoznebel_int extends Searchengine
{ {
public $results = []; public $results = [];
public function __construct(\SimpleXMLElement $engine, \App\MetaGer $metager) public function __construct($name, \StdClass $engine, \App\MetaGer $metager)
{ {
parent::__construct($engine, $metager); parent::__construct($name, $engine, $metager);
} }
public function loadResults($result) public function loadResults($result)
...@@ -28,7 +28,7 @@ class Dmoznebel_int extends Searchengine ...@@ -28,7 +28,7 @@ class Dmoznebel_int extends Searchengine
$link, $link,
$anzeigeLink, $anzeigeLink,
$descr, $descr,
$this->displayName,$this->homepage, $this->engine->{"display-name"},$this->engine->homepage,
$this->counter $this->counter
); );
} }
......
...@@ -9,9 +9,9 @@ class Ecoshopper extends Searchengine ...@@ -9,9 +9,9 @@ class Ecoshopper extends Searchengine
{ {
public $results = []; public $results = [];
public function __construct(\SimpleXMLElement $engine, \App\MetaGer $metager) public function __construct($name, \StdClass $engine, \App\MetaGer $metager)
{ {
parent::__construct($engine, $metager); parent::__construct($name, $engine, $metager);
} }
public function loadResults($result) public function loadResults($result)
...@@ -49,7 +49,7 @@ class Ecoshopper extends Searchengine ...@@ -49,7 +49,7 @@ class Ecoshopper extends Searchengine
$link, $link,
$anzeigeLink, $anzeigeLink,
$descr, $descr,
$this->displayName,$this->homepage, $this->engine->{"display-name"},$this->engine->homepage,
$this->counter, $this->counter,
['partnershop' => false, ['partnershop' => false,
'image' => $image] 'image' => $image]
......
...@@ -9,9 +9,9 @@ class Europeana extends Searchengine ...@@ -9,9 +9,9 @@ class Europeana extends Searchengine
{ {
public $results = []; public $results = [];
public function __construct(\SimpleXMLElement $engine, \App\MetaGer $metager) public function __construct($name, \StdClass $engine, \App\MetaGer $metager)
{ {
parent::__construct($engine, $metager); parent::__construct($name, $engine, $metager);
} }
public function loadResults($result) public function loadResults($result)
...@@ -42,7 +42,7 @@ class Europeana extends Searchengine ...@@ -42,7 +42,7 @@ class Europeana extends Searchengine
$link, $link,
$anzeigeLink, $anzeigeLink,
$descr, $descr,
$this->displayName,$this->homepage, $this->engine->{"display-name"},$this->engine->homepage,
$this->counter, $this->counter,
['image' => $image] ['image' => $image]
); );
......
...@@ -9,9 +9,9 @@ class Exalead extends Searchengine ...@@ -9,9 +9,9 @@ class Exalead extends Searchengine
{ {
public $results = []; public $results = [];
public function __construct(\SimpleXMLElement $engine, \App\MetaGer $metager) public function __construct($name, \StdClass $engine, \App\MetaGer $metager)
{ {
parent::__construct($engine, $metager); parent::__construct($name, $engine, $metager);
} }
public function loadResults($result) public function loadResults($result)
...@@ -61,7 +61,7 @@ class Exalead extends Searchengine ...@@ -61,7 +61,7 @@ class Exalead extends Searchengine
$link, $link,
$anzeigeLink, $anzeigeLink,
$descr, $descr,
$this->displayName,$this->homepage, $this->engine->{"display-name"},$this->engine->homepage,
$this->counter $this->counter
); );
} catch (\ErrorException $e) { } catch (\ErrorException $e) {
......
...@@ -8,9 +8,9 @@ class Fairmondo extends Searchengine ...@@ -8,9 +8,9 @@ class Fairmondo extends Searchengine
{ {
public $results = []; public $results = [];
public function __construct(\SimpleXMLElement $engine, \App\MetaGer $metager) public function __construct($name, \StdClass $engine, \App\MetaGer $metager)
{ {
parent::__construct($engine, $metager); parent::__construct($name, $engine, $metager);
} }
public function loadResults($result) public function loadResults($result)
...@@ -42,7 +42,7 @@ class Fairmondo extends Searchengine ...@@ -42,7 +42,7 @@ class Fairmondo extends Searchengine
$link, $link,
$anzeigeLink, $anzeigeLink,
$descr, $descr,
$this->displayName,$this->homepage, $this->engine->{"display-name"},$this->engine->homepage,
$this->counter, $this->counter,
[ [
'price' => $price, 'price' => $price,
......
...@@ -9,9 +9,9 @@ class Fernsehsuche extends Searchengine ...@@ -9,9 +9,9 @@ class Fernsehsuche extends Searchengine
{ {
public $results = []; public $results = [];
public function __construct(\SimpleXMLElement $engine, \App\MetaGer $metager) public function __construct($name, \StdClass $engine, \App\MetaGer $metager)
{ {
parent::__construct($engine, $metager); parent::__construct($name, $engine, $metager);
} }
public function loadResults($result) public function loadResults($result)
...@@ -38,7 +38,7 @@ class Fernsehsuche extends Searchengine ...@@ -38,7 +38,7 @@ class Fernsehsuche extends Searchengine
$link, $link,
$anzeigeLink, $anzeigeLink,
$descr, $descr,
$this->displayName,$this->homepage, $this->engine->{"display-name"},$this->engine->homepage,
$this->counter, $this->counter,
['image' => $image] ['image' => $image]
); );
......
...@@ -9,9 +9,9 @@ class Fess extends Searchengine ...@@ -9,9 +9,9 @@ class Fess extends Searchengine
{ {
public $results = []; public $results = [];
public function __construct(\SimpleXMLElement $engine, \App\MetaGer $metager) public function __construct($name, \StdClass $engine, \App\MetaGer $metager)
{ {
parent::__construct($engine, $metager); parent::__construct($name, $engine, $metager);
} }
public function loadResults($result) public function loadResults($result)
...@@ -37,7 +37,7 @@ class Fess extends Searchengine ...@@ -37,7 +37,7 @@ class Fess extends Searchengine
$link, $link,
$anzeigeLink, $anzeigeLink,
$descr, $descr,
$this->displayName,$this->homepage, $this->engine->{"display-name"},$this->engine->homepage,
$this->counter $this->counter
); );
} catch (\ErrorException $e) { } catch (\ErrorException $e) {
......
...@@ -9,9 +9,9 @@ class Flickr extends Searchengine ...@@ -9,9 +9,9 @@ class Flickr extends Searchengine
{ {
public $results = []; public $results = [];
public function __construct(\SimpleXMLElement $engine, \App\MetaGer $metager) public function __construct($name, \StdClass $engine, \App\MetaGer $metager)
{ {
parent::__construct($engine, $metager); parent::__construct($name, $engine, $metager);
} }
public function loadResults($result) public function loadResults($result)
...@@ -37,7 +37,7 @@ class Flickr extends Searchengine ...@@ -37,7 +37,7 @@ class Flickr extends Searchengine
$link, $link,
$anzeigeLink, $anzeigeLink,
$descr, $descr,
$this->displayName,$this->homepage, $this->engine->{"display-name"},$this->engine->homepage,
$this->counter, $this->counter,
['image' => $image] ['image' => $image]
); );
......
...@@ -9,9 +9,9 @@ class Goyax extends Searchengine ...@@ -9,9 +9,9 @@ class Goyax extends Searchengine
{ {
public $results = []; public $results = [];
public function __construct(\SimpleXMLElement $engine, \App\MetaGer $metager) public function __construct($name, \StdClass $engine, \App\MetaGer $metager)
{ {
parent::__construct($engine, $metager); parent::__construct($name, $engine, $metager);
} }
public function loadResults($result) public function loadResults($result)
...@@ -31,7 +31,7 @@ class Goyax extends Searchengine ...@@ -31,7 +31,7 @@ class Goyax extends Searchengine
$link, $link,
$anzeigeLink, $anzeigeLink,
$descr, $descr,
$this->displayName,$this->homepage, $this->engine->{"display-name"},$this->engine->homepage,
$this->counter $this->counter
); );
}); });
......
...@@ -8,9 +8,9 @@ class Loklak extends Searchengine ...@@ -8,9 +8,9 @@ class Loklak extends Searchengine
{ {
public $results = []; public $results = [];
public function __construct(\SimpleXMLElement $engine, \App\MetaGer $metager) public function __construct($name, \StdClass $engine, \App\MetaGer $metager)
{ {
parent::__construct($engine, $metager); parent::__construct($name, $engine, $metager);
} }
public function loadResults($result) public function loadResults($result)
...@@ -35,7 +35,7 @@ class Loklak extends Searchengine ...@@ -35,7 +35,7 @@ class Loklak extends Searchengine
$link, $link,
$anzeigeLink, $anzeigeLink,
$descr, $descr,
$this->displayName,$this->homepage, $this->engine->{"display-name"},$this->engine->homepage,
$this->counter $this->counter
); );
} }
......
...@@ -8,9 +8,9 @@ class Mg_hochsch_de extends Searchengine ...@@ -8,9 +8,9 @@ class Mg_hochsch_de extends Searchengine
{ {
public $results = []; public $results = [];
public function __construct(\SimpleXMLElement $engine, \App\MetaGer $metager) public function __construct($name, \StdClass $engine, \App\MetaGer $metager)
{ {
parent::__construct($engine, $metager); parent::__construct($name, $engine, $metager);
} }
public function loadResults($result) public function loadResults($result)
...@@ -34,7 +34,7 @@ class Mg_hochsch_de extends Searchengine ...@@ -34,7 +34,7 @@ class Mg_hochsch_de extends Searchengine
$link, $link,
$anzeigeLink, $anzeigeLink,
$descr, $descr,
$this->displayName,$this->homepage, $this->engine->{"display-name"},$this->engine->homepage,
$this->counter $this->counter
); );
} }
......
...@@ -9,9 +9,9 @@ class Mg_produkt2 extends Searchengine ...@@ -9,9 +9,9 @@ class Mg_produkt2 extends Searchengine
{ {
public $results = []; public $results = [];
public function __construct(\SimpleXMLElement $engine, \App\MetaGer $metager) public function __construct($name, \StdClass $engine, \App\MetaGer $metager)
{ {
parent::__construct($engine, $metager); parent::__construct($name, $engine, $metager);
} }
public function loadResults($result) public function loadResults($result)
...@@ -42,7 +42,7 @@ class Mg_produkt2 extends Searchengine ...@@ -42,7 +42,7 @@ class Mg_produkt2 extends Searchengine
$link, $link,
$anzeigeLink, $anzeigeLink,
$descr, $descr,
$this->displayName,$this->homepage, $this->engine->{"display-name"},$this->engine->homepage,
$this->counter, $this->counter,
['image' => $image] ['image' => $image]
); );
......
...@@ -10,9 +10,9 @@ class Onenewspage extends Searchengine ...@@ -10,9 +10,9 @@ class Onenewspage extends Searchengine
public $resultCount = 0; public $resultCount = 0;
private $offset = 0; private $offset = 0;
public function __construct(\SimpleXMLElement $engine, \App\MetaGer $metager) public function __construct($name, \StdClass $engine, \App\MetaGer $metager)
{ {
parent::__construct($engine, $metager); parent::__construct($name, $engine, $metager);
} }
public function loadResults($result) public function loadResults($result)
...@@ -37,7 +37,7 @@ class Onenewspage extends Searchengine ...@@ -37,7 +37,7 @@ class Onenewspage extends Searchengine
$link, $link,
$anzeigeLink, $anzeigeLink,
$descr, $descr,
$this->displayName,$this->homepage, $this->engine->{"display-name"},$this->engine->homepage,
$this->counter, $this->counter,
$additionalInformation $additionalInformation
); );
......
...@@ -11,9 +11,9 @@ class Onenewspagegermany extends Searchengine ...@@ -11,9 +11,9 @@ class Onenewspagegermany extends Searchengine
public $resultCount = 0; public $resultCount = 0;
private $offset = 0; private $offset = 0;
public function __construct(\SimpleXMLElement $engine, \App\MetaGer $metager) public function __construct($name, \StdClass $engine, \App\MetaGer $metager)
{ {
parent::__construct($engine, $metager); parent::__construct($name, $engine, $metager);
} }
public function loadResults($result) public function loadResults($result)
...@@ -40,7 +40,7 @@ class Onenewspagegermany extends Searchengine ...@@ -40,7 +40,7 @@ class Onenewspagegermany extends Searchengine
$link, $link,
$anzeigeLink, $anzeigeLink,
$descr, $descr,
$this->displayName,$this->homepage, $this->engine->{"display-name"},$this->engine->homepage,
$this->counter, $this->counter,
$additionalInformation $additionalInformation
); );
......
...@@ -10,9 +10,9 @@ class Onenewspagevideo extends Searchengine ...@@ -10,9 +10,9 @@ class Onenewspagevideo extends Searchengine
public $resultCount = 0; public $resultCount = 0;
private $offset = 0; private $offset = 0;
public function __construct(\SimpleXMLElement $engine, \App\MetaGer $metager) public function __construct($name, \StdClass $engine, \App\MetaGer $metager)
{ {
parent::__construct($engine, $metager); parent::__construct($name, $engine, $metager);
} }
public function loadResults($result) public function loadResults($result)
...@@ -36,7 +36,7 @@ class Onenewspagevideo extends Searchengine ...@@ -36,7 +36,7 @@ class Onenewspagevideo extends Searchengine
$link, $link,
$anzeigeLink, $anzeigeLink,
$descr, $descr,
$this->displayName,$this->homepage, $this->engine->{"display-name"},$this->engine->homepage,
$this->counter, $this->counter,
$additionalInformation $additionalInformation
); );
......
...@@ -9,9 +9,9 @@ class Openclipart extends Searchengine ...@@ -9,9 +9,9 @@ class Openclipart extends Searchengine
{ {
public $results = []; public $results = [];
public function __construct(\SimpleXMLElement $engine, \App\MetaGer $metager) public function __construct($name, \StdClass $engine, \App\MetaGer $metager)
{ {
parent::__construct($engine, $metager); parent::__construct($name, $en