1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
/** |
4
|
|
|
* @file |
5
|
|
|
* Magento API Client (SOAP v1). |
6
|
|
|
* Allows wrappers for each call, dependencies injections |
7
|
|
|
* and code completion. |
8
|
|
|
* |
9
|
|
|
* @author Sébastien MALOT <[email protected]> |
10
|
|
|
* @license MIT |
11
|
|
|
* @url <https://github.com/smalot/magento-client> |
12
|
|
|
* |
13
|
|
|
* For the full copyright and license information, please view the LICENSE |
14
|
|
|
* file that was distributed with this source code. |
15
|
|
|
*/ |
16
|
|
|
|
17
|
|
|
namespace Smalot\Magento\Catalog; |
18
|
|
|
|
19
|
|
|
use Smalot\Magento\ActionInterface; |
20
|
|
|
use Smalot\Magento\MagentoModuleAbstract; |
21
|
|
|
|
22
|
|
|
/** |
23
|
|
|
* Class CategoryAttributes |
24
|
|
|
* |
25
|
|
|
* @package Smalot\Magento\Catalog |
26
|
|
|
*/ |
27
|
|
|
class CategoryAttributes extends MagentoModuleAbstract |
28
|
|
|
{ |
29
|
|
|
/** |
30
|
|
|
* Allows you to set/get the current store view. |
31
|
|
|
* |
32
|
|
|
* @param string $storeView |
33
|
|
|
* |
34
|
|
|
* @return ActionInterface |
35
|
|
|
*/ |
36
|
|
|
public function setCurrentStore($storeView) |
|
|
|
|
37
|
|
|
{ |
38
|
|
|
return $this->__createAction('catalog_category_attribute.currentStore', func_get_args()); |
39
|
|
|
} |
40
|
|
|
|
41
|
|
|
/** |
42
|
|
|
* Allows you to retrieve the list of category attributes. |
43
|
|
|
* |
44
|
|
|
* @return ActionInterface |
45
|
|
|
*/ |
46
|
|
|
public function getList() |
47
|
|
|
{ |
48
|
|
|
return $this->__createAction('catalog_category_attribute.list', func_get_args()); |
49
|
|
|
} |
50
|
|
|
|
51
|
|
|
/** |
52
|
|
|
* Allows you to retrieve the attribute options. |
53
|
|
|
* |
54
|
|
|
* @param string $attributeId |
55
|
|
|
* @param string $storeView |
56
|
|
|
* |
57
|
|
|
* @return ActionInterface |
58
|
|
|
*/ |
59
|
|
|
public function getOptions($attributeId, $storeView = null) |
|
|
|
|
60
|
|
|
{ |
61
|
|
|
return $this->__createAction('catalog_category_attribute.options', func_get_args()); |
62
|
|
|
} |
63
|
|
|
} |
64
|
|
|
|
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.