$_component
$_component : string
The name of the component, e.g. net.nehmer.static. Should be used whenever the component's name is required instead of hardcoding it.
RSS and Atom feed fetching class. Caches the fetched items as articles in net.nehmer.blog
Note, that the request data, for ease of use, already contains the L10n Databases of the Component and MidCOM itself located in this class. They are stored as 'l10n' and 'l10n_midcom'. Also available as 'config' is the current component configuration.
$_node : \midcom_db_topic
Current node we're importing to
__construct(\net_nemein_rss_feed_dba $feed)
Initializes the class with a given feed
\net_nemein_rss_feed_dba | $feed |
get_workflow(string $identifier, array $options = array()) : \midcom\workflow\dialog
string | $identifier | |
array | $options |
import_item(\net_nemein_rss_parser_item $item)
Imports a feed item into the database
\net_nemein_rss_parser_item | $item | Feed item as provided by SimplePie |
parse_item_author(\net_nemein_rss_parser_item $item) : Array
Parses author formats used by different feed standards and and returns the information
\net_nemein_rss_parser_item | $item | Feed item as provided by SimplePie |
Information found
match_item_author(\net_nemein_rss_parser_item $item) : \midcom_db_person
Parses author formats used by different feed standards and tries to match to persons in database.
\net_nemein_rss_parser_item | $item | Feed item as provided by SimplePie |
Person object matched, or null
import_article(\net_nemein_rss_parser_item $item)
Imports an item as a news article
\net_nemein_rss_parser_item | $item |
find_author(\net_nemein_rss_parser_item $item)
\net_nemein_rss_parser_item | $item |
find_article(\net_nemein_rss_parser_item $item, $guid)
\net_nemein_rss_parser_item | $item | |
$guid |
apply_values(\midcom_db_article $article, array $values, array $meta_values)
\midcom_db_article | $article | |
array | $values | |
array | $meta_values |
_parse_parameters(\midcom_core_dbaobject $article, \net_nemein_rss_parser_item $item)
Parses additional metadata in RSS item and sets parameters accordingly
\midcom_core_dbaobject | $article | Imported article |
\net_nemein_rss_parser_item | $item | Feed item as provided by SimplePie |