1 | <?php |
||
35 | class AttributeOptionSwatchRepository extends AbstractRepository |
||
36 | { |
||
37 | |||
38 | /** |
||
39 | * The prepared statement to load an existing EAV attribute option swatch by its attribute code, store ID. value and type. |
||
40 | * |
||
41 | * @var \PDOStatement |
||
42 | */ |
||
43 | protected $attributeOptionSwatchByAttributeCodeAndStoreIdAndValueAndTypeStmt; |
||
44 | |||
45 | /** |
||
46 | * The prepared statement to load an existing EAV attribute option swatch by its option ID and store ID |
||
47 | * |
||
48 | * @var \PDOStatement |
||
49 | */ |
||
50 | protected $attributeOptionSwatchByOptionIdAndStoreIdStmt; |
||
51 | |||
52 | /** |
||
53 | * Initializes the repository's prepared statements. |
||
54 | * |
||
55 | * @return void |
||
56 | */ |
||
57 | public function init() |
||
70 | |||
71 | /** |
||
72 | * Load's and return's the EAV attribute option swatch with the passed code, store ID, value and type. |
||
73 | * |
||
74 | * @param string $attributeCode The code of the EAV attribute option swatch to load |
||
75 | * @param integer $storeId The store ID of the attribute option swatch to load |
||
76 | * @param string $value The value of the attribute option swatch to load |
||
77 | * @param string $type The type of the attribute option swatch to load |
||
78 | * |
||
79 | * @return array The EAV attribute option swatch |
||
80 | */ |
||
81 | public function findOneByAttributeCodeAndStoreIdAndValue($attributeCode, $storeId, $value, $type) |
||
96 | |||
97 | /** |
||
98 | * Load's and return's the EAV attribute option swatch with the passed option ID and store ID |
||
99 | * |
||
100 | * @param string $optionId The option ID of the attribute option swatch to load |
||
101 | * @param integer $storeId The store ID of the attribute option swatch to load |
||
102 | * |
||
103 | * @return array The EAV attribute option swatch |
||
104 | */ |
||
105 | public function findOneByOptionIdAndStoreId($optionId, $storeId) |
||
118 | } |
||
119 |