|
@@ 87-100 (lines=14) @@
|
| 84 |
|
* |
| 85 |
|
* @return array The EAV attribute option value |
| 86 |
|
*/ |
| 87 |
|
public function findOneByAttributeCodeAndStoreIdAndValue($attributeCode, $storeId, $value) |
| 88 |
|
{ |
| 89 |
|
|
| 90 |
|
// the parameters of the EAV attribute option to load |
| 91 |
|
$params = array( |
| 92 |
|
MemberNames::ATTRIBUTE_CODE => $attributeCode, |
| 93 |
|
MemberNames::STORE_ID => $storeId, |
| 94 |
|
MemberNames::VALUE => $value |
| 95 |
|
); |
| 96 |
|
|
| 97 |
|
// load and return the EAV attribute option value with the passed parameters |
| 98 |
|
$this->eavAttributeOptionValueByAttributeCodeAndStoreIdAndValueStmt->execute($params); |
| 99 |
|
return $this->eavAttributeOptionValueByAttributeCodeAndStoreIdAndValueStmt->fetch(\PDO::FETCH_ASSOC); |
| 100 |
|
} |
| 101 |
|
|
| 102 |
|
/** |
| 103 |
|
* Load's and return's the EAV attribute option value with the passed option ID and store ID |
|
@@ 110-122 (lines=13) @@
|
| 107 |
|
* |
| 108 |
|
* @return array The EAV attribute option value |
| 109 |
|
*/ |
| 110 |
|
public function findOneByOptionIdAndStoreId($optionId, $storeId) |
| 111 |
|
{ |
| 112 |
|
|
| 113 |
|
// the parameters of the EAV attribute option to load |
| 114 |
|
$params = array( |
| 115 |
|
MemberNames::OPTION_ID => $optionId, |
| 116 |
|
MemberNames::STORE_ID => $storeId, |
| 117 |
|
); |
| 118 |
|
|
| 119 |
|
// load and return the EAV attribute option value with the passed parameters |
| 120 |
|
$this->eavAttributeOptionValueByOptionIdAndStoreIdStmt->execute($params); |
| 121 |
|
return $this->eavAttributeOptionValueByOptionIdAndStoreIdStmt->fetch(\PDO::FETCH_ASSOC); |
| 122 |
|
} |
| 123 |
|
} |
| 124 |
|
|