Tariqa
3.0
|
Public Member Functions | |
__construct ($newsConfig) | |
listArticles ($query) | |
multimediaMimeType ($url) | |
getArticle ($article_id) | |
newsSection ($flavour, $filtering, $flavour_query) | |
multiAjaxSearch ($query, $from, $count, $startDate=null, $endDate=null) | |
getSavePost ($query_txt, $query, $start_date=null, $end_date=null, $additional_parameters=array()) | |
Static Public Member Functions | |
static | sortArticles ($a1, $a2) |
Data Fields | |
const | ARTICLE_SHORT = 'short' |
const | ARTICLE_LONG = 'long' |
Base class for fetching the news results from the RSS_aggregator or LatestNews_aggregator engine
__construct | ( | $ | newsConfig | ) |
Constructs the object
array | $newsConfig | The news configuration array public |
Reimplemented from searchEngine.
Reimplemented in RSS_aggregatorIDOLEngine.
getArticle | ( | $ | article_id | ) |
Gets a specific article
string | $article_id | The article identifier public |
Reimplemented from searchEngine.
getSavePost | ( | $ | query_txt, |
$ | query, | ||
$ | start_date = null , |
||
$ | end_date = null , |
||
$ | additional_parameters = array() |
||
) |
Gets the POST data used for saving a search in the briefcase
string | $query_txt | The query string text |
Query | $query | The query |
int | $start_date | The start date (unix timestamp) [OPTIONAL] |
int | $end_date | The end date (unix timestamp) [OPTIONAL] |
array | $additional_parameters | Additional parameters [OPTIONAL] public |
Reimplemented from searchEngine.
listArticles | ( | $ | query | ) |
Fetches a list of articles
newsQuery | $query | The query public |
Reimplemented from searchEngine.
multiAjaxSearch | ( | $ | query, |
$ | from, | ||
$ | count, | ||
$ | startDate = null , |
||
$ | endDate = null |
||
) |
Gets the multi ajax search object
string | $query | The query string |
int | $from | The first result to display |
int | $count | The number of results to display |
DateTime | $startDate | The start date [OPTIONAL] |
DateTime | $endDate | The end date [OPTIONAL] public |
Reimplemented from searchEngine.
multimediaMimeType | ( | $ | url | ) |
Returns true if an extension comes from a multimedia file
string | $url | The url to check for extension public |
newsSection | ( | $ | flavour, |
$ | filtering, | ||
$ | flavour_query | ||
) |
Gets the multi ajax search object for any page but the search page. For example country pages, home page, news wires page etc.
Flavour | $flavour | The flavour |
array | $filtering | The filtering data |
Query | $flavour_query | The flavour current query public |
static sortArticles | ( | $ | a1, |
$ | a2 | ||
) | [static] |
Function used for sorting the articles by date
RSS_article | $a1 | The first article |
RSS_article | $a2 | The second article |
public
const ARTICLE_LONG = 'long' |
const ARTICLE_SHORT = 'short' |