public function getIndexOptionsText(AttributeInterface $attribute, $storeId, array $optionIds)
    {
        $mapperKey = sprintf("options_%s_%s", $attribute->getId(), $storeId);

        if (!isset($this->attributeMappers[$mapperKey])) {
            $this->attributeMappers[$mapperKey] = function ($optionId) use ($attribute, $storeId) {
                return $this->getIndexOptionText($attribute, $storeId, $optionId);
            };
        }

        $optionValues = array_map($this->attributeMappers[$mapperKey], $optionIds);

        return $optionValues;
    }
public function getIndexOptionsText(AttributeInterface $attribute, $storeId, array $optionIds)
    {
        $mapperKey = sprintf("options_%s_%s", $attribute->getId(), $storeId);

        if (!isset($this->attributeMappers[$mapperKey])) {
            $this->attributeMappers[$mapperKey] = function ($optionId) use ($attribute, $storeId) {
                return $this->getIndexOptionText($attribute, $storeId, $optionId);
            };
        }

        $optionValues = array_map($this->attributeMappers[$mapperKey], $optionIds);

        return $optionValues;
    }
public function getIndexOptionsText ( AttributeInterface $ attribute , $ storeId , array $ optionIds ) { $ mapperKey = sprintf ( "options_%s_%s" , $ attribute -> getId ( ) , $ storeId ) ; if ( ! isset ( $ this -> attributeMappers [ $ mapperKey ] ) ) { $ this -> attributeMappers [ $ mapperKey ] = function ( $ optionId ) use ( $ attribute , $ storeId ) { return $ this -> getIndexOptionText ( $ attribute , $ storeId , $ optionId ) ; } ; } $ optionValues = array_map ( $ this -> attributeMappers [ $ mapperKey ] , $ optionIds ) ; return $ optionValues ; }
Transform an array of options ids into an arrays of option values for attribute that uses a source.
Values are localized for a store id.

@param AttributeInterface $attribute Product attribute.
@param integer            $storeId   Store id
@param array              $optionIds Array of options ids.

@return array
Transform an array of options ids into an arrays of option values for attribute that uses a source . Values are localized for a store id .