Completed
Push — master ( 86ce10...3f6ef7 )
by Aimeos
07:57
created
client/html/src/Client/Html/Common/Summary/Service/Base.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,6 +19,6 @@
 block discarded – undo
19 19
  * @subpackage Html
20 20
  */
21 21
 abstract class Base
22
-	extends \Aimeos\Client\Html\Common\Client\Factory\Base
22
+    extends \Aimeos\Client\Html\Common\Client\Factory\Base
23 23
 {
24 24
 }
25 25
\ No newline at end of file
Please login to merge, or discard this patch.
client/html/src/Client/Html/Common/Summary/Coupon/Base.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,6 +19,6 @@
 block discarded – undo
19 19
  * @subpackage Html
20 20
  */
21 21
 abstract class Base
22
-	extends \Aimeos\Client\Html\Common\Client\Factory\Base
22
+    extends \Aimeos\Client\Html\Common\Client\Factory\Base
23 23
 {
24 24
 }
25 25
\ No newline at end of file
Please login to merge, or discard this patch.
client/html/src/Client/Html/Common/Summary/Detail/Base.php 2 patches
Indentation   +73 added lines, -73 removed lines patch added patch discarded remove patch
@@ -19,88 +19,88 @@
 block discarded – undo
19 19
  * @subpackage Html
20 20
  */
21 21
 abstract class Base
22
-	extends \Aimeos\Client\Html\Common\Client\Factory\Base
22
+    extends \Aimeos\Client\Html\Common\Client\Factory\Base
23 23
 {
24
-	/**
25
-	 * Returns a list of tax rates and values for the given basket.
26
-	 *
27
-	 * @param \Aimeos\MShop\Order\Item\Base\Iface $basket Basket containing the products, services, etc.
28
-	 * @return array Associative list of tax rates as key and corresponding amounts as value
29
-	 */
30
-	protected function getTaxRates( \Aimeos\MShop\Order\Item\Base\Iface $basket )
31
-	{
32
-		$taxrates = array();
24
+    /**
25
+     * Returns a list of tax rates and values for the given basket.
26
+     *
27
+     * @param \Aimeos\MShop\Order\Item\Base\Iface $basket Basket containing the products, services, etc.
28
+     * @return array Associative list of tax rates as key and corresponding amounts as value
29
+     */
30
+    protected function getTaxRates( \Aimeos\MShop\Order\Item\Base\Iface $basket )
31
+    {
32
+        $taxrates = array();
33 33
 
34
-		foreach( $basket->getProducts() as $product )
35
-		{
36
-			$price = clone $product->getPrice();
37
-			$taxrate = $price->getTaxrate();
34
+        foreach( $basket->getProducts() as $product )
35
+        {
36
+            $price = clone $product->getPrice();
37
+            $taxrate = $price->getTaxrate();
38 38
 
39
-			if( isset( $taxrates[$taxrate] ) ) {
40
-				$taxrates[$taxrate]->addItem( $price, $product->getQuantity() );
41
-			} else {
42
-				$taxrates[$taxrate] = $price->addItem( $price, $product->getQuantity() - 1 );
43
-			}
44
-		}
39
+            if( isset( $taxrates[$taxrate] ) ) {
40
+                $taxrates[$taxrate]->addItem( $price, $product->getQuantity() );
41
+            } else {
42
+                $taxrates[$taxrate] = $price->addItem( $price, $product->getQuantity() - 1 );
43
+            }
44
+        }
45 45
 
46
-		try
47
-		{
48
-			$price = clone $basket->getService( 'delivery' )->getPrice();
49
-			$taxrate = $price->getTaxrate();
46
+        try
47
+        {
48
+            $price = clone $basket->getService( 'delivery' )->getPrice();
49
+            $taxrate = $price->getTaxrate();
50 50
 
51
-			if( isset( $taxrates[$taxrate] ) ) {
52
-				$taxrates[$taxrate]->addItem( $price );
53
-			} else {
54
-				$taxrates[$taxrate] = $price;
55
-			}
56
-		}
57
-		catch( \Exception $e ) { ; } // if delivery service isn't available
51
+            if( isset( $taxrates[$taxrate] ) ) {
52
+                $taxrates[$taxrate]->addItem( $price );
53
+            } else {
54
+                $taxrates[$taxrate] = $price;
55
+            }
56
+        }
57
+        catch( \Exception $e ) { ; } // if delivery service isn't available
58 58
 
59
-		try
60
-		{
61
-			$price = clone $basket->getService( 'payment' )->getPrice();
62
-			$taxrate = $price->getTaxrate();
59
+        try
60
+        {
61
+            $price = clone $basket->getService( 'payment' )->getPrice();
62
+            $taxrate = $price->getTaxrate();
63 63
 
64
-			if( isset( $taxrates[$taxrate] ) ) {
65
-				$taxrates[$taxrate]->addItem( $price );
66
-			} else {
67
-				$taxrates[$taxrate] = $price;
68
-			}
69
-		}
70
-		catch( \Exception $e ) { ; } // if payment service isn't available
64
+            if( isset( $taxrates[$taxrate] ) ) {
65
+                $taxrates[$taxrate]->addItem( $price );
66
+            } else {
67
+                $taxrates[$taxrate] = $price;
68
+            }
69
+        }
70
+        catch( \Exception $e ) { ; } // if payment service isn't available
71 71
 
72
-		return $taxrates;
73
-	}
72
+        return $taxrates;
73
+    }
74 74
 
75 75
 
76
-	/**
77
-	 * Returns the payment status at which download files are shown
78
-	 *
79
-	 * @return integer Payment status from \Aimeos\MShop\Order\Item\Base
80
-	 */
81
-	protected function getDownloadPaymentStatus()
82
-	{
83
-		$config = $this->getContext()->getConfig();
84
-		$default = \Aimeos\MShop\Order\Item\Base::PAY_RECEIVED;
76
+    /**
77
+     * Returns the payment status at which download files are shown
78
+     *
79
+     * @return integer Payment status from \Aimeos\MShop\Order\Item\Base
80
+     */
81
+    protected function getDownloadPaymentStatus()
82
+    {
83
+        $config = $this->getContext()->getConfig();
84
+        $default = \Aimeos\MShop\Order\Item\Base::PAY_RECEIVED;
85 85
 
86
-		/** client/html/common/summary/detail/download/payment-status
87
-		 * Minium payment status value for product download files
88
-		 *
89
-		 * This setting specifies the payment status value of an order for which
90
-		 * links to bought product download files are shown on the "thank you"
91
-		 * page, in the "MyAccount" and in the e-mails sent to the customers.
92
-		 *
93
-		 * The value is one of the payment constant values from
94
-		 * {@link https://github.com/aimeos/aimeos-core/blob/master/lib/mshoplib/src/MShop/Order/Item/Base.php#L105}.
95
-		 * Most of the time, only two values are of interest:
96
-		 * * 5: payment authorized
97
-		 * * 6: payment received
98
-		 *
99
-		 * @param integer Order payment constant value
100
-		 * @since 2016.3
101
-		 * @category User
102
-		 * @category Developer
103
-		 */
104
-		return $config->get( 'client/html/common/summary/detail/download/payment-status', $default );
105
-	}
86
+        /** client/html/common/summary/detail/download/payment-status
87
+         * Minium payment status value for product download files
88
+         *
89
+         * This setting specifies the payment status value of an order for which
90
+         * links to bought product download files are shown on the "thank you"
91
+         * page, in the "MyAccount" and in the e-mails sent to the customers.
92
+         *
93
+         * The value is one of the payment constant values from
94
+         * {@link https://github.com/aimeos/aimeos-core/blob/master/lib/mshoplib/src/MShop/Order/Item/Base.php#L105}.
95
+         * Most of the time, only two values are of interest:
96
+         * * 5: payment authorized
97
+         * * 6: payment received
98
+         *
99
+         * @param integer Order payment constant value
100
+         * @since 2016.3
101
+         * @category User
102
+         * @category Developer
103
+         */
104
+        return $config->get( 'client/html/common/summary/detail/download/payment-status', $default );
105
+    }
106 106
 }
107 107
\ No newline at end of file
Please login to merge, or discard this patch.
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -53,8 +53,7 @@  discard block
 block discarded – undo
53 53
 			} else {
54 54
 				$taxrates[$taxrate] = $price;
55 55
 			}
56
-		}
57
-		catch( \Exception $e ) { ; } // if delivery service isn't available
56
+		} catch( \Exception $e ) { ; } // if delivery service isn't available
58 57
 
59 58
 		try
60 59
 		{
@@ -66,8 +65,7 @@  discard block
 block discarded – undo
66 65
 			} else {
67 66
 				$taxrates[$taxrate] = $price;
68 67
 			}
69
-		}
70
-		catch( \Exception $e ) { ; } // if payment service isn't available
68
+		} catch( \Exception $e ) { ; } // if payment service isn't available
71 69
 
72 70
 		return $taxrates;
73 71
 	}
Please login to merge, or discard this patch.
client/html/src/Client/Html/Common/Summary/Address/Base.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,6 +19,6 @@
 block discarded – undo
19 19
  * @subpackage Html
20 20
  */
21 21
 abstract class Base
22
-	extends \Aimeos\Client\Html\Common\Client\Factory\Base
22
+    extends \Aimeos\Client\Html\Common\Client\Factory\Base
23 23
 {
24 24
 }
25 25
\ No newline at end of file
Please login to merge, or discard this patch.
client/html/src/Client/Html/Common/Client/Factory/Iface.php 1 patch
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -19,15 +19,15 @@
 block discarded – undo
19 19
  * @subpackage Html
20 20
  */
21 21
 interface Iface
22
-	extends \Aimeos\Client\Html\Iface
22
+    extends \Aimeos\Client\Html\Iface
23 23
 {
24
-	/**
25
-	 * Initializes the class instance.
26
-	 *
27
-	 * @param \Aimeos\MShop\Context\Item\Iface $context Context object
28
-	 * @param array $templatePaths Associative list of the file system paths to the core or the extensions as key
29
-	 * 	and a list of relative paths inside the core or the extension as values
30
-	 * @return void
31
-	 */
32
-	public function __construct( \Aimeos\MShop\Context\Item\Iface $context, array $templatePaths );
24
+    /**
25
+     * Initializes the class instance.
26
+     *
27
+     * @param \Aimeos\MShop\Context\Item\Iface $context Context object
28
+     * @param array $templatePaths Associative list of the file system paths to the core or the extensions as key
29
+     * 	and a list of relative paths inside the core or the extension as values
30
+     * @return void
31
+     */
32
+    public function __construct( \Aimeos\MShop\Context\Item\Iface $context, array $templatePaths );
33 33
 }
Please login to merge, or discard this patch.
client/html/src/Client/Html/Common/Client/Factory/Base.php 1 patch
Indentation   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -18,19 +18,19 @@
 block discarded – undo
18 18
  * @subpackage Html
19 19
  */
20 20
 abstract class Base
21
-	extends \Aimeos\Client\Html\Base
22
-	implements \Aimeos\Client\Html\Common\Client\Factory\Iface
21
+    extends \Aimeos\Client\Html\Base
22
+    implements \Aimeos\Client\Html\Common\Client\Factory\Iface
23 23
 {
24
-	/**
25
-	 * Initializes the object instance
26
-	 *
27
-	 * @param \Aimeos\MShop\Context\Item\Iface $context Context object with required objects
28
-	 * @param array $templatePaths Associative list of the file system paths to the core or the extensions as key
29
-	 * 	and a list of relative paths inside the core or the extension as values
30
-	 * @param \Aimeos\Client\Html\Iface $client Client object
31
-	 */
32
-	public function __construct( \Aimeos\MShop\Context\Item\Iface $context, array $templatePaths )
33
-	{
34
-		parent::__construct( $context, $templatePaths );
35
-	}
24
+    /**
25
+     * Initializes the object instance
26
+     *
27
+     * @param \Aimeos\MShop\Context\Item\Iface $context Context object with required objects
28
+     * @param array $templatePaths Associative list of the file system paths to the core or the extensions as key
29
+     * 	and a list of relative paths inside the core or the extension as values
30
+     * @param \Aimeos\Client\Html\Iface $client Client object
31
+     */
32
+    public function __construct( \Aimeos\MShop\Context\Item\Iface $context, array $templatePaths )
33
+    {
34
+        parent::__construct( $context, $templatePaths );
35
+    }
36 36
 }
37 37
\ No newline at end of file
Please login to merge, or discard this patch.
client/html/src/Client/Html/Common/Decorator/Iface.php 1 patch
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -19,16 +19,16 @@
 block discarded – undo
19 19
  * @subpackage Html
20 20
  */
21 21
 interface Iface
22
-	extends \Aimeos\Client\Html\Iface
22
+    extends \Aimeos\Client\Html\Iface
23 23
 {
24
-	/**
25
-	 * Initializes a new client decorator object.
26
-	 *
27
-	 * @param \Aimeos\Client\Html\Iface $client Client object
28
-	 * @param \Aimeos\MShop\Context\Item\Iface $context Context object with required objects
29
-	 * @param array $templatePaths Associative list of the file system paths to the core or the extensions as key
30
-	 * 	and a list of relative paths inside the core or the extension as values
31
-	 */
32
-	public function __construct( \Aimeos\Client\Html\Iface $client,
33
-		\Aimeos\MShop\Context\Item\Iface $context, array $templatePaths );
24
+    /**
25
+     * Initializes a new client decorator object.
26
+     *
27
+     * @param \Aimeos\Client\Html\Iface $client Client object
28
+     * @param \Aimeos\MShop\Context\Item\Iface $context Context object with required objects
29
+     * @param array $templatePaths Associative list of the file system paths to the core or the extensions as key
30
+     * 	and a list of relative paths inside the core or the extension as values
31
+     */
32
+    public function __construct( \Aimeos\Client\Html\Iface $client,
33
+        \Aimeos\MShop\Context\Item\Iface $context, array $templatePaths );
34 34
 }
35 35
\ No newline at end of file
Please login to merge, or discard this patch.
client/html/src/Client/Html/Common/Decorator/Base.php 1 patch
Indentation   +162 added lines, -162 removed lines patch added patch discarded remove patch
@@ -19,167 +19,167 @@
 block discarded – undo
19 19
  * @subpackage Html
20 20
  */
21 21
 abstract class Base
22
-	extends \Aimeos\Client\Html\Base
23
-	implements \Aimeos\Client\Html\Common\Decorator\Iface
22
+    extends \Aimeos\Client\Html\Base
23
+    implements \Aimeos\Client\Html\Common\Decorator\Iface
24 24
 {
25
-	private $client;
26
-
27
-
28
-	/**
29
-	 * Initializes a new client decorator object.
30
-	 *
31
-	 * @param \Aimeos\Client\Html\Iface $client Client object
32
-	 * @param \Aimeos\MShop\Context\Item\Iface $context Context object with required objects
33
-	 * @param array $templatePaths Associative list of the file system paths to the core or the extensions as key
34
-	 * 	and a list of relative paths inside the core or the extension as values
35
-	 */
36
-	public function __construct( \Aimeos\Client\Html\Iface $client,
37
-		\Aimeos\MShop\Context\Item\Iface $context, array $templatePaths )
38
-	{
39
-		parent::__construct( $context, $templatePaths );
40
-
41
-		$this->client = $client;
42
-	}
43
-
44
-
45
-	/**
46
-	 * Passes unknown methods to wrapped objects.
47
-	 *
48
-	 * @param string $name Name of the method
49
-	 * @param array $param List of method parameter
50
-	 * @return mixed Returns the value of the called method
51
-	 * @throws \Aimeos\Client\Html\Exception If method call failed
52
-	 */
53
-	public function __call( $name, array $param )
54
-	{
55
-		if( ( $result = call_user_func_array( array( $this->client, $name ), $param ) ) === false ) {
56
-			throw new \Aimeos\Client\Html\Exception( sprintf( 'Unable to call method "%1$s"', $name ) );
57
-		}
58
-
59
-		return $result;
60
-	}
61
-
62
-
63
-	/**
64
-	 * Returns the sub-client given by its name.
65
-	 *
66
-	 * @param string $type Name of the client type
67
-	 * @param string|null $name Name of the sub-client (Default if null)
68
-	 * @return \Aimeos\Client\Html\Iface Sub-client object
69
-	 */
70
-	public function getSubClient( $type, $name = null )
71
-	{
72
-		return $this->client->getSubClient( $type, $name );
73
-	}
74
-
75
-
76
-	/**
77
-	 * Returns the HTML string for insertion into the header.
78
-	 *
79
-	 * @param string $uid Unique identifier for the output if the content is placed more than once on the same page
80
-	 * @param array &$tags Result array for the list of tags that are associated to the output
81
-	 * @param string|null &$expire Result variable for the expiration date of the output (null for no expiry)
82
-	 * @return string|null String including HTML tags for the header on error
83
-	 */
84
-	public function getHeader( $uid = '', array &$tags = array(), &$expire = null )
85
-	{
86
-		return $this->client->getHeader( $uid, $tags, $expire );
87
-	}
88
-
89
-
90
-	/**
91
-	 * Returns the HTML code for insertion into the body.
92
-	 *
93
-	 * @param string $uid Unique identifier for the output if the content is placed more than once on the same page
94
-	 * @param array &$tags Result array for the list of tags that are associated to the output
95
-	 * @param string|null &$expire Result variable for the expiration date of the output (null for no expiry)
96
-	 * @return string HTML code
97
-	 */
98
-	public function getBody( $uid = '', array &$tags = array(), &$expire = null )
99
-	{
100
-		return $this->client->getBody( $uid, $tags, $expire );
101
-	}
102
-
103
-
104
-	/**
105
-	 * Returns the view object that will generate the HTML output.
106
-	 *
107
-	 * @return \Aimeos\MW\View\Iface $view The view object which generates the HTML output
108
-	 */
109
-	public function getView()
110
-	{
111
-		return $this->client->getView();
112
-	}
113
-
114
-
115
-	/**
116
-	 * Sets the view object that will generate the HTML output.
117
-	 *
118
-	 * @param \Aimeos\MW\View\Iface $view The view object which generates the HTML output
119
-	 * @return \Aimeos\Client\Html\Iface Reference to this object for fluent calls
120
-	 */
121
-	public function setView( \Aimeos\MW\View\Iface $view )
122
-	{
123
-		$this->client->setView( $view );
124
-		return $this;
125
-	}
126
-
127
-
128
-	/**
129
-	 * Modifies the cached body content to replace content based on sessions or cookies.
130
-	 *
131
-	 * @param string $content Cached content
132
-	 * @param string $uid Unique identifier for the output if the content is placed more than once on the same page
133
-	 * @return string Modified body content
134
-	 */
135
-	public function modifyBody( $content, $uid )
136
-	{
137
-		return $this->client->modifyBody( $content, $uid );
138
-	}
139
-
140
-
141
-	/**
142
-	 * Modifies the cached header content to replace content based on sessions or cookies.
143
-	 *
144
-	 * @param string $content Cached content
145
-	 * @param string $uid Unique identifier for the output if the content is placed more than once on the same page
146
-	 * @return string Modified header content
147
-	 */
148
-	public function modifyHeader( $content, $uid )
149
-	{
150
-		return $this->client->modifyHeader( $content, $uid );
151
-	}
152
-
153
-
154
-	/**
155
-	 * Processes the input, e.g. store given values.
156
-	 * A view must be available and this method doesn't generate any output
157
-	 * besides setting view variables.
158
-	 */
159
-	public function process()
160
-	{
161
-		$this->client->process();
162
-	}
163
-
164
-
165
-	/**
166
-	 * Returns the inner client object
167
-	 *
168
-	 * @return \Aimeos\Client\Html\Iface HTML client
169
-	 */
170
-	protected function getClient()
171
-	{
172
-		return $this->client;
173
-	}
174
-
175
-
176
-	/**
177
-	 * Returns the list of sub-client names configured for the client.
178
-	 *
179
-	 * @return array List of HTML client names
180
-	 */
181
-	protected function getSubClientNames()
182
-	{
183
-		return array();
184
-	}
25
+    private $client;
26
+
27
+
28
+    /**
29
+     * Initializes a new client decorator object.
30
+     *
31
+     * @param \Aimeos\Client\Html\Iface $client Client object
32
+     * @param \Aimeos\MShop\Context\Item\Iface $context Context object with required objects
33
+     * @param array $templatePaths Associative list of the file system paths to the core or the extensions as key
34
+     * 	and a list of relative paths inside the core or the extension as values
35
+     */
36
+    public function __construct( \Aimeos\Client\Html\Iface $client,
37
+        \Aimeos\MShop\Context\Item\Iface $context, array $templatePaths )
38
+    {
39
+        parent::__construct( $context, $templatePaths );
40
+
41
+        $this->client = $client;
42
+    }
43
+
44
+
45
+    /**
46
+     * Passes unknown methods to wrapped objects.
47
+     *
48
+     * @param string $name Name of the method
49
+     * @param array $param List of method parameter
50
+     * @return mixed Returns the value of the called method
51
+     * @throws \Aimeos\Client\Html\Exception If method call failed
52
+     */
53
+    public function __call( $name, array $param )
54
+    {
55
+        if( ( $result = call_user_func_array( array( $this->client, $name ), $param ) ) === false ) {
56
+            throw new \Aimeos\Client\Html\Exception( sprintf( 'Unable to call method "%1$s"', $name ) );
57
+        }
58
+
59
+        return $result;
60
+    }
61
+
62
+
63
+    /**
64
+     * Returns the sub-client given by its name.
65
+     *
66
+     * @param string $type Name of the client type
67
+     * @param string|null $name Name of the sub-client (Default if null)
68
+     * @return \Aimeos\Client\Html\Iface Sub-client object
69
+     */
70
+    public function getSubClient( $type, $name = null )
71
+    {
72
+        return $this->client->getSubClient( $type, $name );
73
+    }
74
+
75
+
76
+    /**
77
+     * Returns the HTML string for insertion into the header.
78
+     *
79
+     * @param string $uid Unique identifier for the output if the content is placed more than once on the same page
80
+     * @param array &$tags Result array for the list of tags that are associated to the output
81
+     * @param string|null &$expire Result variable for the expiration date of the output (null for no expiry)
82
+     * @return string|null String including HTML tags for the header on error
83
+     */
84
+    public function getHeader( $uid = '', array &$tags = array(), &$expire = null )
85
+    {
86
+        return $this->client->getHeader( $uid, $tags, $expire );
87
+    }
88
+
89
+
90
+    /**
91
+     * Returns the HTML code for insertion into the body.
92
+     *
93
+     * @param string $uid Unique identifier for the output if the content is placed more than once on the same page
94
+     * @param array &$tags Result array for the list of tags that are associated to the output
95
+     * @param string|null &$expire Result variable for the expiration date of the output (null for no expiry)
96
+     * @return string HTML code
97
+     */
98
+    public function getBody( $uid = '', array &$tags = array(), &$expire = null )
99
+    {
100
+        return $this->client->getBody( $uid, $tags, $expire );
101
+    }
102
+
103
+
104
+    /**
105
+     * Returns the view object that will generate the HTML output.
106
+     *
107
+     * @return \Aimeos\MW\View\Iface $view The view object which generates the HTML output
108
+     */
109
+    public function getView()
110
+    {
111
+        return $this->client->getView();
112
+    }
113
+
114
+
115
+    /**
116
+     * Sets the view object that will generate the HTML output.
117
+     *
118
+     * @param \Aimeos\MW\View\Iface $view The view object which generates the HTML output
119
+     * @return \Aimeos\Client\Html\Iface Reference to this object for fluent calls
120
+     */
121
+    public function setView( \Aimeos\MW\View\Iface $view )
122
+    {
123
+        $this->client->setView( $view );
124
+        return $this;
125
+    }
126
+
127
+
128
+    /**
129
+     * Modifies the cached body content to replace content based on sessions or cookies.
130
+     *
131
+     * @param string $content Cached content
132
+     * @param string $uid Unique identifier for the output if the content is placed more than once on the same page
133
+     * @return string Modified body content
134
+     */
135
+    public function modifyBody( $content, $uid )
136
+    {
137
+        return $this->client->modifyBody( $content, $uid );
138
+    }
139
+
140
+
141
+    /**
142
+     * Modifies the cached header content to replace content based on sessions or cookies.
143
+     *
144
+     * @param string $content Cached content
145
+     * @param string $uid Unique identifier for the output if the content is placed more than once on the same page
146
+     * @return string Modified header content
147
+     */
148
+    public function modifyHeader( $content, $uid )
149
+    {
150
+        return $this->client->modifyHeader( $content, $uid );
151
+    }
152
+
153
+
154
+    /**
155
+     * Processes the input, e.g. store given values.
156
+     * A view must be available and this method doesn't generate any output
157
+     * besides setting view variables.
158
+     */
159
+    public function process()
160
+    {
161
+        $this->client->process();
162
+    }
163
+
164
+
165
+    /**
166
+     * Returns the inner client object
167
+     *
168
+     * @return \Aimeos\Client\Html\Iface HTML client
169
+     */
170
+    protected function getClient()
171
+    {
172
+        return $this->client;
173
+    }
174
+
175
+
176
+    /**
177
+     * Returns the list of sub-client names configured for the client.
178
+     *
179
+     * @return array List of HTML client names
180
+     */
181
+    protected function getSubClientNames()
182
+    {
183
+        return array();
184
+    }
185 185
 }
186 186
\ No newline at end of file
Please login to merge, or discard this patch.
client/html/src/Client/Html/Common/Factory/Iface.php 1 patch
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -20,13 +20,13 @@
 block discarded – undo
20 20
  */
21 21
 interface Iface
22 22
 {
23
-	/**
24
-	 *	Creates a client object.
25
-	 *
26
-	 * @param \Aimeos\MShop\Context\Item\Iface $context Context instance with necessary objects
27
-	 * @param array List of file system paths where the templates are stored
28
-	 * @param string $name Client name (from configuration or "Standard" if null)
29
-	 * @return \Aimeos\Client\Html\Iface New client object
30
-	 */
31
-	public static function createClient( \Aimeos\MShop\Context\Item\Iface $context, array $templatePaths, $name = null );
23
+    /**
24
+     *	Creates a client object.
25
+     *
26
+     * @param \Aimeos\MShop\Context\Item\Iface $context Context instance with necessary objects
27
+     * @param array List of file system paths where the templates are stored
28
+     * @param string $name Client name (from configuration or "Standard" if null)
29
+     * @return \Aimeos\Client\Html\Iface New client object
30
+     */
31
+    public static function createClient( \Aimeos\MShop\Context\Item\Iface $context, array $templatePaths, $name = null );
32 32
 }
Please login to merge, or discard this patch.