Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
0.00% |
0 / 20 |
|
0.00% |
0 / 1 |
CRAP | |
0.00% |
0 / 1 |
OlzServiceParams | n/a |
0 / 0 |
n/a |
0 / 0 |
0 | n/a |
0 / 0 |
|||
OlzService | |
0.00% |
0 / 20 |
|
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 1 |
getHtml | |
0.00% |
0 / 20 |
|
0.00% |
0 / 1 |
2 |
1 | <?php |
2 | |
3 | namespace Olz\Service\Components\OlzService; |
4 | |
5 | use Olz\Components\Apps\OlzAppsList\OlzAppsList; |
6 | use Olz\Components\Common\OlzComponent; |
7 | use Olz\Components\Page\OlzFooter\OlzFooter; |
8 | use Olz\Components\Page\OlzHeader\OlzHeader; |
9 | use Olz\Service\Components\OlzDownloads\OlzDownloads; |
10 | use Olz\Service\Components\OlzLinks\OlzLinks; |
11 | use Olz\Utils\HttpParams; |
12 | |
13 | /** @extends HttpParams<array{}> */ |
14 | class OlzServiceParams extends HttpParams { |
15 | } |
16 | |
17 | /** @extends OlzComponent<array<string, mixed>> */ |
18 | class OlzService extends OlzComponent { |
19 | public static string $title = "Service"; |
20 | public static string $description = "Diverse Online-Tools rund um OL und die OL Zimmerberg."; |
21 | |
22 | public function getHtml(mixed $args): string { |
23 | $this->httpUtils()->validateGetParams(OlzServiceParams::class); |
24 | |
25 | $out = OlzHeader::render([ |
26 | 'title' => self::$title, |
27 | 'description' => self::$description, |
28 | ]); |
29 | |
30 | $out .= "<div class='content-full'>"; |
31 | |
32 | $out .= "<h1>Service</h1>"; |
33 | $out .= "<h2>Apps</h2>"; |
34 | $out .= OlzAppsList::render(); |
35 | $out .= "<br /><br />"; |
36 | |
37 | $out .= "<div class='responsive-flex'>"; |
38 | $out .= "<div class='responsive-flex-2'>"; |
39 | $out .= OlzLinks::render(); |
40 | $out .= "</div>"; |
41 | $out .= "<div class='responsive-flex-2'>"; |
42 | $out .= OlzDownloads::render(); |
43 | $out .= "</div></div><br><br>"; |
44 | |
45 | $out .= "</div>"; |
46 | |
47 | $out .= OlzFooter::render(); |
48 | |
49 | return $out; |
50 | } |
51 | } |