@@ -74,7 +74,7 @@ discard block |
||
| 74 | 74 | * Creates a new resource |
| 75 | 75 | * |
| 76 | 76 | * @return string|null admin output to display or null for redirecting to the list |
| 77 | - */ |
|
| 77 | + */ |
|
| 78 | 78 | public function create() |
| 79 | 79 | { |
| 80 | 80 | return $this->client->create(); |
@@ -85,7 +85,7 @@ discard block |
||
| 85 | 85 | * Deletes a resource |
| 86 | 86 | * |
| 87 | 87 | * @return string|null admin output to display or null for redirecting to the list |
| 88 | - */ |
|
| 88 | + */ |
|
| 89 | 89 | public function delete() |
| 90 | 90 | { |
| 91 | 91 | return $this->client->delete(); |
@@ -96,7 +96,7 @@ discard block |
||
| 96 | 96 | * Returns a single resource |
| 97 | 97 | * |
| 98 | 98 | * @return string|null admin output to display or null for redirecting to the list |
| 99 | - */ |
|
| 99 | + */ |
|
| 100 | 100 | public function get() |
| 101 | 101 | { |
| 102 | 102 | return $this->client->get(); |
@@ -107,7 +107,7 @@ discard block |
||
| 107 | 107 | * Saves the data |
| 108 | 108 | * |
| 109 | 109 | * @return string|null admin output to display or null for redirecting to the list |
| 110 | - */ |
|
| 110 | + */ |
|
| 111 | 111 | public function save() |
| 112 | 112 | { |
| 113 | 113 | return $this->client->save(); |
@@ -118,7 +118,7 @@ discard block |
||
| 118 | 118 | * Returns a list of resource according to the conditions |
| 119 | 119 | * |
| 120 | 120 | * @return string admin output to display |
| 121 | - */ |
|
| 121 | + */ |
|
| 122 | 122 | public function search() |
| 123 | 123 | { |
| 124 | 124 | return $this->client->search(); |
@@ -37,7 +37,7 @@ |
||
| 37 | 37 | /** |
| 38 | 38 | * Returns the site view helper |
| 39 | 39 | * |
| 40 | - * @return Aimeos\MW\View\Helper\Site\Iface Site view helper |
|
| 40 | + * @return Standard Site view helper |
|
| 41 | 41 | */ |
| 42 | 42 | public function transform() |
| 43 | 43 | { |
@@ -498,7 +498,7 @@ |
||
| 498 | 498 | /** |
| 499 | 499 | * Constructs the data array for the view from the given item |
| 500 | 500 | * |
| 501 | - * @param \Aimeos\MShop\Locale\Item\Iface $item Locale item object |
|
| 501 | + * @param \Aimeos\MShop\Locale\Item\Site\Iface $item Locale item object |
|
| 502 | 502 | * @return string[] Multi-dimensional associative list of item data |
| 503 | 503 | */ |
| 504 | 504 | protected function toArray( \Aimeos\MShop\Locale\Item\Site\Iface $item, $copy = false ) |
@@ -476,7 +476,7 @@ |
||
| 476 | 476 | /** |
| 477 | 477 | * Constructs the data array for the view from the given item |
| 478 | 478 | * |
| 479 | - * @param \Aimeos\MShop\Locale\Item\Iface $item Locale item object |
|
| 479 | + * @param \Aimeos\MShop\Locale\Item\Language\Iface $item Locale item object |
|
| 480 | 480 | * @return string[] Multi-dimensional associative list of item data |
| 481 | 481 | */ |
| 482 | 482 | protected function toArray( \Aimeos\MShop\Locale\Item\Language\Iface $item, $copy = false ) |
@@ -479,7 +479,7 @@ |
||
| 479 | 479 | /** |
| 480 | 480 | * Constructs the data array for the view from the given item |
| 481 | 481 | * |
| 482 | - * @param \Aimeos\MShop\Locale\Item\Iface $item Locale item object |
|
| 482 | + * @param \Aimeos\MShop\Locale\Item\Currency\Iface $item Locale item object |
|
| 483 | 483 | * @return string[] Multi-dimensional associative list of item data |
| 484 | 484 | */ |
| 485 | 485 | protected function toArray( \Aimeos\MShop\Locale\Item\Currency\Iface $item, $copy = false ) |
@@ -126,12 +126,19 @@ |
||
| 126 | 126 | return self::addDecorators( $context, $client, $decorators, $classprefix ); |
| 127 | 127 | } |
| 128 | 128 | |
| 129 | + /** |
|
| 130 | + * @param string $path |
|
| 131 | + */ |
|
| 129 | 132 | public static function addClientDecoratorsPublic( \Aimeos\MShop\Context\Item\Iface $context, |
| 130 | 133 | \Aimeos\Admin\JQAdm\Iface $client, $path ) |
| 131 | 134 | { |
| 132 | 135 | return self::addClientDecorators( $context, $client, $path ); |
| 133 | 136 | } |
| 134 | 137 | |
| 138 | + /** |
|
| 139 | + * @param string $classname |
|
| 140 | + * @param string $interface |
|
| 141 | + */ |
|
| 135 | 142 | public static function createClientBasePublic( \Aimeos\MShop\Context\Item\Iface $context, |
| 136 | 143 | $classname, $interface ) |
| 137 | 144 | { |
@@ -161,7 +161,6 @@ |
||
| 161 | 161 | * |
| 162 | 162 | * You can add, remove or reorder the links in the navigation bar by |
| 163 | 163 | * setting a new list of client resource names. |
| 164 | - |
|
| 165 | 164 | * In the configuration files of extensions, you should only add entries using |
| 166 | 165 | * one of these lines: |
| 167 | 166 | * |
@@ -464,7 +464,7 @@ |
||
| 464 | 464 | * Creates new and updates existing items using the data array |
| 465 | 465 | * |
| 466 | 466 | * @param string[] Data array |
| 467 | - * @return \Aimeos\MShop\Group\Item\Iface New group item object |
|
| 467 | + * @return \Aimeos\MShop\Common\Item\Iface New group item object |
|
| 468 | 468 | */ |
| 469 | 469 | protected function fromArray( array $data ) |
| 470 | 470 | { |
@@ -300,6 +300,9 @@ |
||
| 300 | 300 | } |
| 301 | 301 | |
| 302 | 302 | |
| 303 | + /** |
|
| 304 | + * @param string $method |
|
| 305 | + */ |
|
| 303 | 306 | public function getClientMock( $method ) |
| 304 | 307 | { |
| 305 | 308 | $object = $this->getMockBuilder( \Aimeos\Admin\JQAdm\Attribute\Standard::class ) |