BasketController::bulkAction()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
c 0
b 0
f 0
nc 1
nop 0
dl 0
loc 4
rs 10
1
<?php
2
3
/**
4
 * @license GPLv3, http://www.gnu.org/copyleft/gpl.html
5
 * @copyright Metaways Infosystems GmbH, 2012
6
 * @copyright Aimeos (aimeos.org), 2014-2016
7
 * @package TYPO3
8
 */
9
10
11
namespace Aimeos\Aimeos\Controller;
12
13
14
use Aimeos\Aimeos\Base;
15
16
17
/**
18
 * Aimeos basket controller.
19
 *
20
 * @package TYPO3
21
 */
22
class BasketController extends AbstractController
23
{
24
    /**
25
     * Processes requests and renders the basket.
26
     */
27
    public function indexAction()
28
    {
29
        $client = \Aimeos\Client\Html::create($this->context(), 'basket/standard');
30
        return $this->getClientOutput($client);
31
    }
32
33
34
    /**
35
     * Renders a bulk order form.
36
     */
37
    public function bulkAction()
38
    {
39
        $client = \Aimeos\Client\Html::create($this->context(), 'basket/bulk');
40
        return $this->getClientOutput($client);
41
    }
42
43
44
    /**
45
     * Renders a small basket.
46
     */
47
    public function smallAction()
48
    {
49
        $client = \Aimeos\Client\Html::create($this->context(), 'basket/mini');
50
        return $this->getClientOutput($client);
51
    }
52
53
54
    /**
55
     * Renders the related basket.
56
     */
57
    public function relatedAction()
58
    {
59
        $client = \Aimeos\Client\Html::create($this->context(), 'basket/related');
60
        return $this->getClientOutput($client);
61
    }
62
}
63