Skip to content
GitLab
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
f5d36803
Commit
f5d36803
authored
Jul 05, 2016
by
Dominik Hebeler
Browse files
Fairmondo eingebaut
parent
95660eed
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/Models/parserSkripte/Fairmondo.php
View file @
f5d36803
...
...
@@ -18,10 +18,17 @@ class Fairmondo extends Searchengine
$results
=
$results
[
"articles"
];
foreach
(
$results
as
$result
)
{
if
(
$this
->
counter
>=
10
)
break
;
$title
=
$result
[
"title"
];
$link
=
$result
[
"
html_url
"
];
$link
=
"https://www.fairmondo.de/articles/"
.
$result
[
"
id
"
];
$anzeigeLink
=
$link
;
$descr
=
$result
[
"slug"
];
if
(
isset
(
$result
[
'price_cents'
]))
{
$descr
.
=
" | Preis: "
.
(
intval
(
$result
[
'price_cents'
])
/
100.0
)
.
" €"
;
}
$this
->
counter
++
;
$this
->
results
[]
=
new
\
App\Models\Result
(
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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