public function findAll()
    {

        // initialize the result array
        $result = array();

        // load and the image types from the EAV attribute table
        $this->imageTypesByEntityTypeCodeAndFrontendInputStmt->execute();

        // fetch the image types with the passed parameters
        if ($imageTypes = $this->imageTypesByEntityTypeCodeAndFrontendInputStmt->fetchAll(\PDO::FETCH_ASSOC)) {
            // iterate over the image types found
            foreach ($imageTypes as $imageType) {
                $attributeCode = $imageType[MemberNames::ATTRIBUTE_CODE];
                // map the default image types
                if (isset($this->defaultMappings[$attributeCode])) {
                    $attributeCode = $this->defaultMappings[$attributeCode];
                }

                // add the (mapped) image type
                $result[$attributeCode] = sprintf('%s_label', $attributeCode);
            }
        }

        // return the result
        return $result;
    }
public function findAll()
    {

        // initialize the result array
        $result = array();

        // load and the image types from the EAV attribute table
        $this->imageTypesByEntityTypeCodeAndFrontendInputStmt->execute();

        // fetch the image types with the passed parameters
        if ($imageTypes = $this->imageTypesByEntityTypeCodeAndFrontendInputStmt->fetchAll(\PDO::FETCH_ASSOC)) {
            // iterate over the image types found
            foreach ($imageTypes as $imageType) {
                $attributeCode = $imageType[MemberNames::ATTRIBUTE_CODE];
                // map the default image types
                if (isset($this->defaultMappings[$attributeCode])) {
                    $attributeCode = $this->defaultMappings[$attributeCode];
                }

                // add the (mapped) image type
                $result[$attributeCode] = sprintf('%s_label', $attributeCode);
            }
        }

        // return the result
        return $result;
    }
public function findAll ( ) { // initialize the result array $ result = array ( ) ; // load and the image types from the EAV attribute table $ this -> imageTypesByEntityTypeCodeAndFrontendInputStmt -> execute ( ) ; // fetch the image types with the passed parameters if ( $ imageTypes = $ this -> imageTypesByEntityTypeCodeAndFrontendInputStmt -> fetchAll ( \ PDO :: FETCH_ASSOC ) ) { // iterate over the image types found foreach ( $ imageTypes as $ imageType ) { $ attributeCode = $ imageType [ MemberNames :: ATTRIBUTE_CODE ] ; // map the default image types if ( isset ( $ this -> defaultMappings [ $ attributeCode ] ) ) { $ attributeCode = $ this -> defaultMappings [ $ attributeCode ] ; } // add the (mapped) image type $ result [ $ attributeCode ] = sprintf ( '%s_label' , $ attributeCode ) ; } } // return the result return $ result ; }
Return's an array with all available image types for the passed entity type code
and frontend input type with the link type code as key.

@return array The available image types
Return s an array with all available image types for the passed entity type code and frontend input type with the link type code as key .