You are here

README.txt in Feed Import 7.3

FEED IMPORT BASE

Project page: https://drupal.org/project/feed_import
Developers info: https://drupal.org/node/2190383

------------------------------
About Feed Import Base
------------------------------

This module provides basic import functionality and abstractization supporting
all entity types.

The reader (source)
----------
Reader's job is to fetch content from a resource and map it to values by paths.
By default there are 6 provided readers:
  -XML files - XPATH mapped
  -XML Chunked for huge xml files - XPATH mapped
  -DomDocument XML/HTML - XPATH mapped
  -CSV fiels - Column name or index mapped
  -JSON files - Path to value mapped
  -SQL databases - Column name mapped


The Hash Manager
----------------
Used to monitor imported items for update/delete.
This module provides only an SQL based Hash Manager.


The filter
----------
Used to filter values. This module provides a powerful filter class.


The processor
-------------
The processor takes care of all import process.
This module provides just one processor compatibile with all readers.


Hooks
-------------
There are two hooks you could implement:

hook_feed_import_error($error_type, $feed, $report)

$error_type - an integer indicationg error type.
Can be one of the following constant from FeedImport class:
FEED_OVERLAP_ERR - overlap error
FEED_ITEMS_ERR   - few items error
FEED_SOURCE_ERR  - source error
FEED_CONFIG_ERR  - configuration error

$feed - feed configuration
$report - report info

hook_feed_import_success($feed, $report)
$feed - feed configuration
$report - report info

These hooks will not be called if variable feed_import_invoke_hooks
is set to false.

File

feed_import_base/README.txt
View source
  1. FEED IMPORT BASE
  2. Project page: https://drupal.org/project/feed_import
  3. Developers info: https://drupal.org/node/2190383
  4. ------------------------------
  5. About Feed Import Base
  6. ------------------------------
  7. This module provides basic import functionality and abstractization supporting
  8. all entity types.
  9. The reader (source)
  10. ----------
  11. Reader's job is to fetch content from a resource and map it to values by paths.
  12. By default there are 6 provided readers:
  13. -XML files - XPATH mapped
  14. -XML Chunked for huge xml files - XPATH mapped
  15. -DomDocument XML/HTML - XPATH mapped
  16. -CSV fiels - Column name or index mapped
  17. -JSON files - Path to value mapped
  18. -SQL databases - Column name mapped
  19. The Hash Manager
  20. ----------------
  21. Used to monitor imported items for update/delete.
  22. This module provides only an SQL based Hash Manager.
  23. The filter
  24. ----------
  25. Used to filter values. This module provides a powerful filter class.
  26. The processor
  27. -------------
  28. The processor takes care of all import process.
  29. This module provides just one processor compatibile with all readers.
  30. Hooks
  31. -------------
  32. There are two hooks you could implement:
  33. hook_feed_import_error($error_type, $feed, $report)
  34. $error_type - an integer indicationg error type.
  35. Can be one of the following constant from FeedImport class:
  36. FEED_OVERLAP_ERR - overlap error
  37. FEED_ITEMS_ERR - few items error
  38. FEED_SOURCE_ERR - source error
  39. FEED_CONFIG_ERR - configuration error
  40. $feed - feed configuration
  41. $report - report info
  42. hook_feed_import_success($feed, $report)
  43. $feed - feed configuration
  44. $report - report info
  45. These hooks will not be called if variable feed_import_invoke_hooks
  46. is set to false.