Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
open-source
MetaGer
Commits
491e71e8
Commit
491e71e8
authored
Apr 03, 2017
by
Dominik Hebeler
Browse files
Merge branch '462-nachrichten-nach-zeit-sortierbar-machen' into 'development'
Ergebnis-Format geändert See merge request
!801
parents
fa9e01d2
33612b08
Changes
14
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
app/Models/Result.php
View file @
491e71e8
...
...
@@ -28,7 +28,8 @@ class Result
public
$rank
;
# Das Ranking für das Ergebnis
# Erstellt ein neues Ergebnis
public
function
__construct
(
$provider
,
$titel
,
$link
,
$anzeigeLink
,
$descr
,
$gefVon
,
$sourceRank
,
$partnershop
=
false
,
$image
=
""
,
$price
=
0
,
$additionalInformation
=
[])
#public function __construct($provider, $titel, $link, $anzeigeLink, $descr, $gefVon, $sourceRank, $partnershop = false, $image = "", $price = 0, $additionalInformation = [])
public
function
__construct
(
$provider
,
$titel
,
$link
,
$anzeigeLink
,
$descr
,
$gefVon
,
$sourceRank
,
$additionalInformation
=
[])
{
$provider
=
simplexml_load_string
(
$provider
);
$this
->
titel
=
strip_tags
(
trim
(
$titel
));
...
...
@@ -60,9 +61,9 @@ class Result
$this
->
strippedDomain
=
$this
->
getStrippedDomain
(
$this
->
strippedHost
);
$this
->
strippedLink
=
$this
->
getStrippedLink
(
$this
->
anzeigeLink
);
$this
->
rank
=
0
;
$this
->
partnershop
=
$
partnershop
;
$this
->
image
=
$
image
;
$this
->
price
=
$
price
;
$this
->
partnershop
=
$
additionalInformation
[
"partnershop"
]
??
false
;
$this
->
image
=
$
additionalInformation
[
"image"
]
??
""
;
$this
->
price
=
$
additionalInformation
[
"price"
]
??
0
;
$this
->
additionalInformation
=
$additionalInformation
;
}
...
...
app/Models/parserSkripte/Bing_bilder.php
View file @
491e71e8
...
...
@@ -33,8 +33,7 @@ class Bing_bilder extends Searchengine
$descr
,
$this
->
gefVon
,
$this
->
counter
,
false
,
$image
[
'image'
=>
$image
]
);
});
...
...
app/Models/parserSkripte/Dailymotion.php
View file @
491e71e8
...
...
@@ -38,8 +38,7 @@ class Dailymotion extends Searchengine
$descr
,
$this
->
gefVon
,
$this
->
counter
,
false
,
$image
[
'partnershop'
=>
false
]
);
}
}
catch
(
\
Exception
$e
)
{
...
...
app/Models/parserSkripte/Ebay.php
View file @
491e71e8
...
...
@@ -3,6 +3,7 @@
namespace
app\Models\parserSkripte
;
use
App\Models\Searchengine
;
use
Log
;
class
Ebay
extends
Searchengine
{
...
...
@@ -52,9 +53,9 @@ class Ebay extends Searchengine
$descr
,
$this
->
gefVon
,
$this
->
counter
,
false
,
$imag
e
,
$price
[
'partnershop'
=>
false
,
'price'
=>
$pric
e
,
'image'
=>
$image
]
);
$count
++
;
}
...
...
app/Models/parserSkripte/Ecoshopper.php
View file @
491e71e8
...
...
@@ -51,8 +51,8 @@ class Ecoshopper extends Searchengine
$descr
,
$this
->
gefVon
,
$this
->
counter
,
false
,
$image
[
'partnershop'
=>
false
,
'image'
=>
$image
]
);
}
}
catch
(
\
Exception
$e
)
{
...
...
app/Models/parserSkripte/Europeana.php
View file @
491e71e8
...
...
@@ -44,8 +44,7 @@ class Europeana extends Searchengine
$descr
,
$this
->
gefVon
,
$this
->
counter
,
false
,
$image
[
'image'
=>
$image
]
);
}
}
...
...
app/Models/parserSkripte/Fairmondo.php
View file @
491e71e8
...
...
@@ -44,9 +44,9 @@ class Fairmondo extends Searchengine
$descr
,
$this
->
gefVon
,
$this
->
counter
,
false
,
$imag
e
,
$price
[
'price'
=>
$pric
e
,
'image'
=>
$image
]
);
}
}
...
...
app/Models/parserSkripte/Fernsehsuche.php
View file @
491e71e8
...
...
@@ -39,8 +39,7 @@ class Fernsehsuche extends Searchengine
$descr
,
$this
->
gefVon
,
$this
->
counter
,
false
,
$image
[
'image'
=>
$image
]
);
}
catch
(
\
ErrorException
$e
)
{
...
...
app/Models/parserSkripte/Flickr.php
View file @
491e71e8
...
...
@@ -39,8 +39,7 @@ class Flickr extends Searchengine
$descr
,
$this
->
gefVon
,
$this
->
counter
,
false
,
$image
[
'image'
=>
$image
]
);
}
}
catch
(
\
Exception
$e
)
{
...
...
app/Models/parserSkripte/Mg_produkt2.php
View file @
491e71e8
...
...
@@ -44,8 +44,7 @@ class Mg_produkt2 extends Searchengine
$descr
,
$this
->
gefVon
,
$this
->
counter
,
false
,
$image
[
'image'
=>
$image
]
);
}
}
catch
(
\
Exception
$e
)
{
...
...
app/Models/parserSkripte/Openclipart.php
View file @
491e71e8
...
...
@@ -39,8 +39,7 @@ class Openclipart extends Searchengine
$descr
,
$this
->
gefVon
,
$this
->
counter
,
false
,
$image
[
'image'
=>
$image
]
);
}
}
catch
(
\
Exception
$e
)
{
...
...
app/Models/parserSkripte/Pixabay.php
View file @
491e71e8
...
...
@@ -39,8 +39,7 @@ class Pixabay extends Searchengine
$descr
,
$this
->
gefVon
,
$this
->
counter
,
false
,
$image
[
'image'
=>
$image
]
);
}
}
catch
(
\
Exception
$e
)
{
...
...
app/Models/parserSkripte/Radiobrowser.php
View file @
491e71e8
...
...
@@ -51,8 +51,7 @@ class Radiobrowser extends Searchengine
$anzeigeLink
,
$descr
,
$this
->
gefVon
,
$this
->
counter
,
false
$this
->
counter
);
}
}
catch
(
\
Exception
$e
)
{
...
...
app/Models/parserSkripte/Rlvproduct.php
View file @
491e71e8
...
...
@@ -31,10 +31,10 @@ class RlvProduct extends Searchengine
""
,
$result
[
"shopTitle"
],
$counter
,
$
partnershop
=
false
,
$image
,
$result
[
"price"
]
,
[
'shipping'
=>
$result
[
"distribution"
]]
[
'
partnershop
'
=
>
false
,
'price'
=>
$result
[
"price"
]
,
'image'
=>
$image
,
'shipping'
=>
$result
[
"distribution"
]]
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment