Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
100.00% |
18 / 18 |
|
100.00% |
1 / 1 |
CRAP | |
100.00% |
1 / 1 |
OwnerOverview | |
100.00% |
18 / 18 |
|
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
readResponse | |
100.00% |
18 / 18 |
|
100.00% |
1 / 1 |
1 |
1 | <?php |
2 | |
3 | /** |
4 | * @package Zmsadmin |
5 | * @copyright BerlinOnline Stadtportal GmbH & Co. KG |
6 | **/ |
7 | |
8 | namespace BO\Zmsadmin; |
9 | |
10 | class OwnerOverview extends BaseController |
11 | { |
12 | /** |
13 | * @SuppressWarnings(Param) |
14 | * @return String |
15 | */ |
16 | public function readResponse( |
17 | \Psr\Http\Message\RequestInterface $request, |
18 | \Psr\Http\Message\ResponseInterface $response, |
19 | array $args |
20 | ) { |
21 | $workstation = \App::$http->readGetResult('/workstation/', ['resolveReferences' => 1])->getEntity(); |
22 | $ownerList = \App::$http->readGetResult('/owner/', array('resolveReferences' => 4))->getCollection(); |
23 | $success = $request->getAttribute('validator')->getParameter('success')->isString()->setDefault('')->getValue(); |
24 | $scopeName = $request->getAttribute('validator')->getParameter('scopeName')->isString()->setDefault('')->getValue(); |
25 | $departmentName = $request->getAttribute('validator')->getParameter('departmentName')->isString()->setDefault('')->getValue(); |
26 | return \BO\Slim\Render::withHtml( |
27 | $response, |
28 | 'page/ownerOverview.twig', |
29 | array( |
30 | 'title' => 'Behörden und Standorte', |
31 | 'menuActive' => 'owner', |
32 | 'workstation' => $workstation, |
33 | 'ownerList' => $ownerList, |
34 | 'success' => $success, |
35 | 'scopeName' => $scopeName, |
36 | 'departmentName' => $departmentName |
37 | ) |
38 | ); |
39 | } |
40 | } |