@@ -1,7 +1,7 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | 3 | if (!defined('TYPO3_MODE')) { |
4 | - die('Access denied.'); |
|
4 | + die('Access denied.'); |
|
5 | 5 | } |
6 | 6 | |
7 | 7 | \FRUIT\Autoloader\Loader::extLocalconf('FRUIT', 'shopize'); |
@@ -9,9 +9,9 @@ discard block |
||
9 | 9 | \TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin('FRUIT.shopize', 'Basket', array('Basket' => 'list,add,remove'), array('Basket' => 'list,add,remove')); |
10 | 10 | \TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin('FRUIT.shopize', 'Checkout', array('Checkout' => '...'), array('Checkout' => '...')); |
11 | 11 | \TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin('FRUIT.shopize', 'Shop', array( |
12 | - 'Shop' => 'list,detail', |
|
13 | - 'Basket' => 'add' |
|
12 | + 'Shop' => 'list,detail', |
|
13 | + 'Basket' => 'add' |
|
14 | 14 | ), array( |
15 | - 'Shop' => 'list,detail', |
|
16 | - 'Basket' => 'add' |
|
15 | + 'Shop' => 'list,detail', |
|
16 | + 'Basket' => 'add' |
|
17 | 17 | )); |
@@ -1,7 +1,7 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | 3 | if (!defined('TYPO3_MODE')) { |
4 | - die('Access denied.'); |
|
4 | + die('Access denied.'); |
|
5 | 5 | } |
6 | 6 | |
7 | 7 | \FRUIT\Autoloader\Loader::extTables('FRUIT', 'shopize'); |
@@ -18,15 +18,15 @@ |
||
18 | 18 | class BasketRepository extends AbstractRepository |
19 | 19 | { |
20 | 20 | |
21 | - /** |
|
22 | - * Find the current basket |
|
23 | - * |
|
24 | - * @return Basket |
|
25 | - */ |
|
26 | - public function findCurrent() |
|
27 | - { |
|
28 | - DebuggerUtility::var_dump('get current Basket'); |
|
29 | - $basket = new Basket(); |
|
30 | - return $basket; |
|
31 | - } |
|
21 | + /** |
|
22 | + * Find the current basket |
|
23 | + * |
|
24 | + * @return Basket |
|
25 | + */ |
|
26 | + public function findCurrent() |
|
27 | + { |
|
28 | + DebuggerUtility::var_dump('get current Basket'); |
|
29 | + $basket = new Basket(); |
|
30 | + return $basket; |
|
31 | + } |
|
32 | 32 | } |
@@ -15,31 +15,31 @@ |
||
15 | 15 | class Basket extends AbstractModel |
16 | 16 | { |
17 | 17 | |
18 | - /** |
|
19 | - * Session identifier |
|
20 | - * |
|
21 | - * @var string |
|
22 | - * @db |
|
23 | - */ |
|
24 | - protected $sessionIdentifier; |
|
18 | + /** |
|
19 | + * Session identifier |
|
20 | + * |
|
21 | + * @var string |
|
22 | + * @db |
|
23 | + */ |
|
24 | + protected $sessionIdentifier; |
|
25 | 25 | |
26 | - /** |
|
27 | - * Get session identifier |
|
28 | - * |
|
29 | - * @return string |
|
30 | - */ |
|
31 | - public function getSessionIdentifier() |
|
32 | - { |
|
33 | - return $this->sessionIdentifier; |
|
34 | - } |
|
26 | + /** |
|
27 | + * Get session identifier |
|
28 | + * |
|
29 | + * @return string |
|
30 | + */ |
|
31 | + public function getSessionIdentifier() |
|
32 | + { |
|
33 | + return $this->sessionIdentifier; |
|
34 | + } |
|
35 | 35 | |
36 | - /** |
|
37 | - * Set session identifier |
|
38 | - * |
|
39 | - * @param string $sessionIdentifier |
|
40 | - */ |
|
41 | - public function setSessionIdentifier($sessionIdentifier) |
|
42 | - { |
|
43 | - $this->sessionIdentifier = $sessionIdentifier; |
|
44 | - } |
|
36 | + /** |
|
37 | + * Set session identifier |
|
38 | + * |
|
39 | + * @param string $sessionIdentifier |
|
40 | + */ |
|
41 | + public function setSessionIdentifier($sessionIdentifier) |
|
42 | + { |
|
43 | + $this->sessionIdentifier = $sessionIdentifier; |
|
44 | + } |
|
45 | 45 | } |
@@ -15,33 +15,33 @@ |
||
15 | 15 | class BasketController extends AbstractController |
16 | 16 | { |
17 | 17 | |
18 | - /** |
|
19 | - * Basket repository |
|
20 | - * |
|
21 | - * @var \FRUIT\Shopize\Domain\Repository\BasketRepository |
|
22 | - * @inject |
|
23 | - */ |
|
24 | - protected $basketRepository; |
|
18 | + /** |
|
19 | + * Basket repository |
|
20 | + * |
|
21 | + * @var \FRUIT\Shopize\Domain\Repository\BasketRepository |
|
22 | + * @inject |
|
23 | + */ |
|
24 | + protected $basketRepository; |
|
25 | 25 | |
26 | - /** |
|
27 | - * List action |
|
28 | - */ |
|
29 | - public function listAction() |
|
30 | - { |
|
31 | - $this->view->assign('basket', $this->basketRepository->findCurrent()); |
|
32 | - } |
|
26 | + /** |
|
27 | + * List action |
|
28 | + */ |
|
29 | + public function listAction() |
|
30 | + { |
|
31 | + $this->view->assign('basket', $this->basketRepository->findCurrent()); |
|
32 | + } |
|
33 | 33 | |
34 | - /** |
|
35 | - * Add action |
|
36 | - */ |
|
37 | - public function addAction() |
|
38 | - { |
|
39 | - } |
|
34 | + /** |
|
35 | + * Add action |
|
36 | + */ |
|
37 | + public function addAction() |
|
38 | + { |
|
39 | + } |
|
40 | 40 | |
41 | - /** |
|
42 | - * remove action |
|
43 | - */ |
|
44 | - public function removeAction() |
|
45 | - { |
|
46 | - } |
|
41 | + /** |
|
42 | + * remove action |
|
43 | + */ |
|
44 | + public function removeAction() |
|
45 | + { |
|
46 | + } |
|
47 | 47 | } |
@@ -15,45 +15,45 @@ |
||
15 | 15 | class CheckoutController extends AbstractController |
16 | 16 | { |
17 | 17 | |
18 | - /** |
|
19 | - * Billing action |
|
20 | - */ |
|
21 | - public function billingAction() |
|
22 | - { |
|
23 | - } |
|
24 | - |
|
25 | - /** |
|
26 | - * Shipment action |
|
27 | - */ |
|
28 | - public function shipmentAction() |
|
29 | - { |
|
30 | - } |
|
31 | - |
|
32 | - /** |
|
33 | - * Payment action |
|
34 | - */ |
|
35 | - public function paymentAction() |
|
36 | - { |
|
37 | - } |
|
38 | - |
|
39 | - /** |
|
40 | - * Confirm action |
|
41 | - */ |
|
42 | - public function confirmAction() |
|
43 | - { |
|
44 | - } |
|
45 | - |
|
46 | - /** |
|
47 | - * Check action |
|
48 | - */ |
|
49 | - public function checkAction() |
|
50 | - { |
|
51 | - } |
|
52 | - |
|
53 | - /** |
|
54 | - * Finish action |
|
55 | - */ |
|
56 | - public function finishAction() |
|
57 | - { |
|
58 | - } |
|
18 | + /** |
|
19 | + * Billing action |
|
20 | + */ |
|
21 | + public function billingAction() |
|
22 | + { |
|
23 | + } |
|
24 | + |
|
25 | + /** |
|
26 | + * Shipment action |
|
27 | + */ |
|
28 | + public function shipmentAction() |
|
29 | + { |
|
30 | + } |
|
31 | + |
|
32 | + /** |
|
33 | + * Payment action |
|
34 | + */ |
|
35 | + public function paymentAction() |
|
36 | + { |
|
37 | + } |
|
38 | + |
|
39 | + /** |
|
40 | + * Confirm action |
|
41 | + */ |
|
42 | + public function confirmAction() |
|
43 | + { |
|
44 | + } |
|
45 | + |
|
46 | + /** |
|
47 | + * Check action |
|
48 | + */ |
|
49 | + public function checkAction() |
|
50 | + { |
|
51 | + } |
|
52 | + |
|
53 | + /** |
|
54 | + * Finish action |
|
55 | + */ |
|
56 | + public function finishAction() |
|
57 | + { |
|
58 | + } |
|
59 | 59 | } |
@@ -15,17 +15,17 @@ |
||
15 | 15 | class ShopController extends AbstractController |
16 | 16 | { |
17 | 17 | |
18 | - /** |
|
19 | - * List action |
|
20 | - */ |
|
21 | - public function listAction() |
|
22 | - { |
|
23 | - } |
|
18 | + /** |
|
19 | + * List action |
|
20 | + */ |
|
21 | + public function listAction() |
|
22 | + { |
|
23 | + } |
|
24 | 24 | |
25 | - /** |
|
26 | - * Detail action |
|
27 | - */ |
|
28 | - public function detailAction() |
|
29 | - { |
|
30 | - } |
|
25 | + /** |
|
26 | + * Detail action |
|
27 | + */ |
|
28 | + public function detailAction() |
|
29 | + { |
|
30 | + } |
|
31 | 31 | } |