public function findAllByEntityTypeIdAndIsUserDefined($entityTypeId, $isUserDefined = 1)
    {

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

        // initialize the params
        $params = array(
            MemberNames::ENTITY_TYPE_ID  => $entityTypeId,
            MemberNames::ID_USER_DEFINED => $isUserDefined
        );

        // execute the prepared statement and return the array with the EAV attributes
        $this->eavAttributesByEntityTypeIdAndUserDefinedStmt->execute($params);

        // 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 findAllByEntityTypeIdAndIsUserDefined($entityTypeId, $isUserDefined = 1)
    {

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

        // initialize the params
        $params = array(
            MemberNames::ENTITY_TYPE_ID  => $entityTypeId,
            MemberNames::ID_USER_DEFINED => $isUserDefined
        );

        // execute the prepared statement and return the array with the EAV attributes
        $this->eavAttributesByEntityTypeIdAndUserDefinedStmt->execute($params);

        // 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 findAllByEntityTypeIdAndIsUserDefined ( $ entityTypeId , $ isUserDefined = 1 ) { // initialize the array for the EAV attributes $ eavAttributes = array ( ) ; // initialize the params $ params = array ( MemberNames :: ENTITY_TYPE_ID => $ entityTypeId , MemberNames :: ID_USER_DEFINED => $ isUserDefined ) ; // execute the prepared statement and return the array with the EAV attributes $ this -> eavAttributesByEntityTypeIdAndUserDefinedStmt -> execute ( $ params ) ; // 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 and
user defined flag.

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

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