Code Coverage |
||||||||||
Classes and Traits |
Functions and Methods |
Lines |
||||||||
| Total | |
0.00% |
0 / 1 |
|
0.00% |
0 / 2 |
CRAP | |
0.00% |
0 / 15 |
| App\Controllers\OrderReviewViewController | |
0.00% |
0 / 1 |
|
0.00% |
0 / 2 |
6 | |
0.00% |
0 / 15 |
| __construct | |
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 6 |
|||
| OrderReviewTemplateAction | |
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 9 |
|||
| <?php | |
| namespace App\Controllers; | |
| use \Core\View; | |
| use App\Models\OrderReview; | |
| use App\Models\Cart; | |
| use App\Controllers\CartViewController; | |
| class OrderReviewViewController extends \Core\Controller { | |
| private $review; | |
| private $formularData; | |
| private $cart; | |
| private $cartTotal; | |
| public function __construct($route_params) { | |
| $this->formularData = $_SESSION['formularData']; | |
| $this->cart = Cart::getInstance(); | |
| $this->cartTotal = CartViewController::getCartTotal($this->cart->getArticles()); | |
| parent::__construct($route_params); | |
| $this->review = OrderReview::getInstance(); | |
| } | |
| /** | |
| * Show the OrderReview page | |
| * | |
| * @return void | |
| */ | |
| public function OrderReviewTemplateAction() { | |
| View::renderTemplate('orderReviewTemplate.twig', array("name" => "OrderReview Seite", | |
| "function" => "Hier kann der Kunde sein gesamte Bestellung einsehen", | |
| "do" => "Falls diese korrekt ist, wird der Auftrag entgültig in der DB gespeichert", | |
| "review" => $this->review, | |
| "formularData" => $this->formularData, | |
| "cart" => $this->cart, | |
| "cartTotal" => $this->cartTotal | |
| )); | |
| } | |
| } |