public function findAllByEntityTypeId($entityTypeId)
    {

        // initialize the array for the EAV attributes
        $eavAttributes = array();

        // execute the prepared statement and return the array with the EAV attributes
        $this->eavAttributesByEntityTypeIdAndUserDefinedStmt->execute(array(MemberNames::ENTITY_TYPE_ID  => $entityTypeId));

        // load the available EAV attributes
        $availableEavAttributes = $this->eavAttributesByEntityTypeIdAndUserDefinedStmt->fetchAll(\PDO::FETCH_ASSOC);
        foreach ($availableEavAttributes as $eavAttribute) {
            $eavAttributes[$eavAttribute[MemberNames::ATTRIBUTE_CODE]] = $eavAttribute;
        }

        // return the array with the EAV attributes
        return $eavAttributes;
    }
public function findAllByEntityTypeId($entityTypeId)
    {

        // initialize the array for the EAV attributes
        $eavAttributes = array();

        // execute the prepared statement and return the array with the EAV attributes
        $this->eavAttributesByEntityTypeIdAndUserDefinedStmt->execute(array(MemberNames::ENTITY_TYPE_ID  => $entityTypeId));

        // load the available EAV attributes
        $availableEavAttributes = $this->eavAttributesByEntityTypeIdAndUserDefinedStmt->fetchAll(\PDO::FETCH_ASSOC);
        foreach ($availableEavAttributes as $eavAttribute) {
            $eavAttributes[$eavAttribute[MemberNames::ATTRIBUTE_CODE]] = $eavAttribute;
        }

        // return the array with the EAV attributes
        return $eavAttributes;
    }
public function findAllByEntityTypeId ( $ entityTypeId ) { // initialize the array for the EAV attributes $ eavAttributes = array ( ) ; // execute the prepared statement and return the array with the EAV attributes $ this -> eavAttributesByEntityTypeIdAndUserDefinedStmt -> execute ( array ( MemberNames :: ENTITY_TYPE_ID => $ entityTypeId ) ) ; // load the available EAV attributes $ availableEavAttributes = $ this -> eavAttributesByEntityTypeIdAndUserDefinedStmt -> fetchAll ( \ PDO :: FETCH_ASSOC ) ; foreach ( $ availableEavAttributes as $ eavAttribute ) { $ eavAttributes [ $ eavAttribute [ MemberNames :: ATTRIBUTE_CODE ] ] = $ eavAttribute ; } // return the array with the EAV attributes return $ eavAttributes ; }
Return's an array with the available EAV attributes for the passed is entity type.

@param integer $entityTypeId The entity type ID of the EAV attributes to return

@return array The array with the EAV attributes matching the passed entity type
Return s an array with the available EAV attributes for the passed is entity type .