src/Repositories/EavEntityTypeRepository.php
/**
     * Return's an array with all available EAV entity types with the entity type code as key.
     *
     * @return array The available link types
     */
Return's an array with all available EAV entity types with the entity type code as key.
@return array The available link types
Return ' s an array with all available EAV entity types with the entity type code as key . @return array The available link types
public function findAll()
    {
        $eavEntityTypes = array();
        $this->eavEntityTypeStmt->execute();
        $availableEntityTypes = $this->eavEntityTypeStmt->fetchAll(\PDO::FETCH_ASSOC);
        foreach ($availableEntityTypes as $eavEntityType) {
            $eavEntityTypes[$eavEntityType[MemberNames::ENTITY_TYPE_CODE]] = $eavEntityType;
        }
        return $eavEntityTypes;
    }
public function findAll ( ) { $ eavEntityTypes = array ( ) ; $ this -> eavEntityTypeStmt -> execute ( ) ; $ availableEntityTypes = $ this -> eavEntityTypeStmt -> fetchAll ( \ PDO :: FETCH_ASSOC ) ; foreach ( $ availableEntityTypes as $ eavEntityType ) { $ eavEntityTypes [ $ eavEntityType [ MemberNames :: ENTITY_TYPE_CODE ] ] = $ eavEntityType ; } return $ eavEntityTypes ; }
Return's an array with all available EAV entity types with the entity type code as key.
Return ' s an array with all available EAV entity types with the entity type code as key .
// initialize the array for the EAV entity types // try to load the EAV entity types // load the available EAV entity types // prepare the EAV entity types => we need the entity type code as key // return the array with the EAV entity types