BasketController::standardComponentAction()   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
c 0
b 0
f 0
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
/**
4
 * @license LGPLv3, http://www.gnu.org/copyleft/lgpl.html
5
 * @copyright Aimeos (aimeos.org), 2015-2016
6
 * @package flow
7
 * @subpackage Controller
8
 */
9
10
11
namespace Aimeos\Shop\Controller;
12
13
use Neos\Flow\Annotations as Flow;
14
15
16
/**
17
 * Account controller
18
 * @package flow
19
 * @subpackage Controller
20
 */
21
class BasketController extends AbstractController
22
{
23
	/**
24
	 * Returns the output of the mass order component
25
	 *
26
	 * @return string Rendered HTML for the body
27
	 */
28
	public function bulkComponentAction()
29
	{
30
		$this->view->assign( 'output', $this->getOutput( 'basket/bulk' ) );
31
	}
32
33
34
	/**
35
	 * Returns the output of the basket mini component
36
	 *
37
	 * @return string Rendered HTML for the body
38
	 */
39
	public function miniComponentAction()
40
	{
41
		$this->view->assign( 'output', $this->getOutput( 'basket/mini' ) );
42
		$this->response->setHeader( 'Cache-Control', 'no-store' );
43
	}
44
45
46
	/**
47
	 * Returns the output of the basket related component
48
	 *
49
	 * @return string Rendered HTML for the body
50
	 */
51
	public function relatedComponentAction()
52
	{
53
		$this->view->assign( 'output', $this->getOutput( 'basket/related' ) );
54
		$this->response->setHeader( 'Cache-Control', 'no-store' );
55
	}
56
57
58
	/**
59
	 * Returns the output of the basket standard component
60
	 *
61
	 * @return string Rendered HTML for the body
62
	 */
63
	public function standardComponentAction()
64
	{
65
		$this->view->assign( 'output', $this->getOutput( 'basket/standard' ) );
66
		$this->response->setHeader( 'Cache-Control', 'no-store' );
67
	}
68
69
70
	/**
71
	 * Content for MyAccount page
72
	 *
73
	 * @Flow\Session(autoStart = TRUE)
74
	 */
75
	public function indexAction()
76
	{
77
		$this->view->assignMultiple( $this->get( 'basket-index' ) );
78
		$this->response->setHeader( 'Cache-Control', 'no-store' );
79
	}
80
}