src/Repositories/EavAttributeRepository.php
/**
     * Return's an array with the available EAV attributes for the passed entity type ID and attribute set name.
     *
     * @param integer $entityTypeId     The entity type ID of the EAV attributes to return
     * @param string  $attributeSetName The attribute set name of the EAV attributes to return
     *
     * @return array The array with all available EAV attributes
     */
Return's an array with the available EAV attributes for the passed entity type ID and attribute set name.
@param integer $entityTypeId     The entity type ID of the EAV attributes to return
@param string  $attributeSetName The attribute set name of the EAV attributes to return

@return array The array with all available EAV attributes
Return ' s an array with the available EAV attributes for the passed entity type ID and attribute set name . @param integer $entityTypeId The entity type ID of the EAV attributes to return @param string $attributeSetName The attribute set name of the EAV attributes to return @return array The array with all available EAV attributes
public function findAllByEntityTypeIdAndAttributeSetName($entityTypeId, $attributeSetName)
    {
        $params = array(
            MemberNames::ENTITY_TYPE_ID     => $entityTypeId,
            MemberNames::ATTRIBUTE_SET_NAME => $attributeSetName
        );
        $eavAttributes = array();
        $this->eavAttributesByEntityTypeIdAndAttributeSetNameStmt->execute($params);
        $availableEavAttributes = $this->eavAttributesByEntityTypeIdAndAttributeSetNameStmt->fetchAll(\PDO::FETCH_ASSOC);
        foreach ($availableEavAttributes as $eavAttribute) {
            $eavAttributes[$eavAttribute[MemberNames::ATTRIBUTE_CODE]] = $eavAttribute;
        }
        return $eavAttributes;
    }
public function findAllByEntityTypeIdAndAttributeSetName ( $ entityTypeId , $ attributeSetName ) { $ params = array ( MemberNames :: ENTITY_TYPE_ID => $ entityTypeId , MemberNames :: ATTRIBUTE_SET_NAME => $ attributeSetName ) ; $ eavAttributes = array ( ) ; $ this -> eavAttributesByEntityTypeIdAndAttributeSetNameStmt -> execute ( $ params ) ; $ availableEavAttributes = $ this -> eavAttributesByEntityTypeIdAndAttributeSetNameStmt -> fetchAll ( \ PDO :: FETCH_ASSOC ) ; foreach ( $ availableEavAttributes as $ eavAttribute ) { $ eavAttributes [ $ eavAttribute [ MemberNames :: ATTRIBUTE_CODE ] ] = $ eavAttribute ; } return $ eavAttributes ; }
Return's an array with the available EAV attributes for the passed entity type ID and attribute set name.
Return ' s an array with the available EAV attributes for the passed entity type ID and attribute set name .
// initialize the params // initialize the array for the EAV attributes // execute the prepared statement and return the array with the EAV attributes // load the available EAV attributes // return the array with the EAV attributes