protected function processImages()
    {

        // load the store view code
        $storeViewCode = $this->getValue(ColumnKeys::STORE_VIEW_CODE);
        $attributeSetCode = $this->getValue(ColumnKeys::ATTRIBUTE_SET_CODE);

        // load the parent SKU from the row
        $parentSku = $this->getValue(ColumnKeys::SKU);

        // iterate over the available image fields
        foreach ($this->getImageTypes() as $imageColumnName => $labelColumnName) {
            // query whether or not, we've a base image
            if ($image = $this->getValue($imageColumnName)) {
                // initialize the label text
                $labelText = $this->getDefaultImageLabel();

                // query whether or not a custom label text has been passed
                if ($this->hasValue($labelColumnName)) {
                    $labelText = $this->getValue($labelColumnName);
                }

                // prepare the new base image
                $artefact = $this->newArtefact(
                    array(
                        ColumnKeys::STORE_VIEW_CODE    => $storeViewCode,
                        ColumnKeys::ATTRIBUTE_SET_CODE => $attributeSetCode,
                        ColumnKeys::IMAGE_PARENT_SKU   => $parentSku,
                        ColumnKeys::IMAGE_PATH         => $image,
                        ColumnKeys::IMAGE_PATH_NEW     => $image,
                        ColumnKeys::IMAGE_LABEL        => $labelText
                    ),
                    array(
                        ColumnKeys::STORE_VIEW_CODE    => ColumnKeys::STORE_VIEW_CODE,
                        ColumnKeys::ATTRIBUTE_SET_CODE => ColumnKeys::ATTRIBUTE_SET_CODE,
                        ColumnKeys::IMAGE_PARENT_SKU   => ColumnKeys::SKU,
                        ColumnKeys::IMAGE_PATH         => $imageColumnName,
                        ColumnKeys::IMAGE_PATH_NEW     => $imageColumnName,
                        ColumnKeys::IMAGE_LABEL        => $labelColumnName
                    )
                );

                // append the base image to the artefacts
                $this->artefacts[] = $artefact;
            }
        }
    }
protected function processImages()
    {

        // load the store view code
        $storeViewCode = $this->getValue(ColumnKeys::STORE_VIEW_CODE);
        $attributeSetCode = $this->getValue(ColumnKeys::ATTRIBUTE_SET_CODE);

        // load the parent SKU from the row
        $parentSku = $this->getValue(ColumnKeys::SKU);

        // iterate over the available image fields
        foreach ($this->getImageTypes() as $imageColumnName => $labelColumnName) {
            // query whether or not, we've a base image
            if ($image = $this->getValue($imageColumnName)) {
                // initialize the label text
                $labelText = $this->getDefaultImageLabel();

                // query whether or not a custom label text has been passed
                if ($this->hasValue($labelColumnName)) {
                    $labelText = $this->getValue($labelColumnName);
                }

                // prepare the new base image
                $artefact = $this->newArtefact(
                    array(
                        ColumnKeys::STORE_VIEW_CODE    => $storeViewCode,
                        ColumnKeys::ATTRIBUTE_SET_CODE => $attributeSetCode,
                        ColumnKeys::IMAGE_PARENT_SKU   => $parentSku,
                        ColumnKeys::IMAGE_PATH         => $image,
                        ColumnKeys::IMAGE_PATH_NEW     => $image,
                        ColumnKeys::IMAGE_LABEL        => $labelText
                    ),
                    array(
                        ColumnKeys::STORE_VIEW_CODE    => ColumnKeys::STORE_VIEW_CODE,
                        ColumnKeys::ATTRIBUTE_SET_CODE => ColumnKeys::ATTRIBUTE_SET_CODE,
                        ColumnKeys::IMAGE_PARENT_SKU   => ColumnKeys::SKU,
                        ColumnKeys::IMAGE_PATH         => $imageColumnName,
                        ColumnKeys::IMAGE_PATH_NEW     => $imageColumnName,
                        ColumnKeys::IMAGE_LABEL        => $labelColumnName
                    )
                );

                // append the base image to the artefacts
                $this->artefacts[] = $artefact;
            }
        }
    }
protected function processImages ( ) { // load the store view code $ storeViewCode = $ this -> getValue ( ColumnKeys :: STORE_VIEW_CODE ) ; $ attributeSetCode = $ this -> getValue ( ColumnKeys :: ATTRIBUTE_SET_CODE ) ; // load the parent SKU from the row $ parentSku = $ this -> getValue ( ColumnKeys :: SKU ) ; // iterate over the available image fields foreach ( $ this -> getImageTypes ( ) as $ imageColumnName => $ labelColumnName ) { // query whether or not, we've a base image if ( $ image = $ this -> getValue ( $ imageColumnName ) ) { // initialize the label text $ labelText = $ this -> getDefaultImageLabel ( ) ; // query whether or not a custom label text has been passed if ( $ this -> hasValue ( $ labelColumnName ) ) { $ labelText = $ this -> getValue ( $ labelColumnName ) ; } // prepare the new base image $ artefact = $ this -> newArtefact ( array ( ColumnKeys :: STORE_VIEW_CODE => $ storeViewCode , ColumnKeys :: ATTRIBUTE_SET_CODE => $ attributeSetCode , ColumnKeys :: IMAGE_PARENT_SKU => $ parentSku , ColumnKeys :: IMAGE_PATH => $ image , ColumnKeys :: IMAGE_PATH_NEW => $ image , ColumnKeys :: IMAGE_LABEL => $ labelText ) , array ( ColumnKeys :: STORE_VIEW_CODE => ColumnKeys :: STORE_VIEW_CODE , ColumnKeys :: ATTRIBUTE_SET_CODE => ColumnKeys :: ATTRIBUTE_SET_CODE , ColumnKeys :: IMAGE_PARENT_SKU => ColumnKeys :: SKU , ColumnKeys :: IMAGE_PATH => $ imageColumnName , ColumnKeys :: IMAGE_PATH_NEW => $ imageColumnName , ColumnKeys :: IMAGE_LABEL => $ labelColumnName ) ) ; // append the base image to the artefacts $ this -> artefacts [ ] = $ artefact ; } } }
Parses the column and exports the image data to a separate file.

@return void
Parses the column and exports the image data to a separate file .