ajax_load_feed.php
\file \brief Load a RSS feed.
Call: inc/ajax_load_feed.php
Tags
Table of Contents
Functions
- get_feeds_list() : array{0: int, 1: int}
- Get the list of feeds.
- print_feed_result() : void
- Update the feeds database and echo a result message.
- do_ajax_load_feed() : string
- Main function to execute an AJAX query echoing feeds.
Functions
get_feeds_list()
Get the list of feeds.
get_feeds_list(array<string|int, array<string|int, string>> $feed, mixed $nfid) : array{0: int, 1: int}
Parameters
- $feed : array<string|int, array<string|int, string>>
-
A feed
- $nfid : mixed
Tags
Return values
array{0: int, 1: int} —Number of imported feeds and number of duplicated feeds.
print_feed_result()
Update the feeds database and echo a result message.
print_feed_result(int $imported_feed, int $nif, string $nfname, int $nfid, string $nfoptions) : void
Parameters
- $imported_feed : int
-
Number of imported feeds
- $nif : int
-
Number of duplicated feeds
- $nfname : string
-
News feed name
- $nfid : int
-
News feed ID
- $nfoptions : string
-
News feed options
Tags
do_ajax_load_feed()
Main function to execute an AJAX query echoing feeds.
do_ajax_load_feed(string $nfname, int $nfid, string $nfsourceuri, string $nfoptions) : string
Parameters
- $nfname : string
-
Newsfeed name
- $nfid : int
-
News feed ID
- $nfsourceuri : string
-
News feed source
- $nfoptions : string
-
News feed options
Return values
string —Message if an error occured, '' otherwise