src/Repositories/EavAttributeRepository.php
/**
     * 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.
@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 . @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
public function findAllByEntityTypeId($entityTypeId)
    {
        $eavAttributes = array();
        $this->eavAttributesByEntityTypeIdAndUserDefinedStmt->execute(array(MemberNames::ENTITY_TYPE_ID  => $entityTypeId));
        $availableEavAttributes = $this->eavAttributesByEntityTypeIdAndUserDefinedStmt->fetchAll(\PDO::FETCH_ASSOC);
        foreach ($availableEavAttributes as $eavAttribute) {
            $eavAttributes[$eavAttribute[MemberNames::ATTRIBUTE_CODE]] = $eavAttribute;
        }
        return $eavAttributes;
    }
public function findAllByEntityTypeId ( $ entityTypeId ) { $ eavAttributes = array ( ) ; $ this -> eavAttributesByEntityTypeIdAndUserDefinedStmt -> execute ( array ( MemberNames :: ENTITY_TYPE_ID => $ entityTypeId ) ) ; $ availableEavAttributes = $ this -> eavAttributesByEntityTypeIdAndUserDefinedStmt -> 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 is entity type.
Return ' s an array with the available EAV attributes for the passed is entity type .
// 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