Tariqa
3.0
|
Public Member Functions | |
__construct ($newsConfig) | |
listArticles ($query) | |
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 | highlight ($text) |
Protected Member Functions | |
setGraph ($country_id, $source_id, $translations) | |
setGraph2 ($country_id, $source_id, $translations) |
Base class for fetching the news results from the LatestnewsIDOL engine
__construct | ( | $ | newsConfig | ) |
Constructs the object
array | $newsConfig | The news configuration array public |
Reimplemented from searchEngine.
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.
static highlight | ( | $ | text | ) | [static] |
Sets the highlight
string | $text | The text to highlight public |
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. This function is used by the search page. For the multiAjaxSearch object used in any other page (country pages, home pages, news wires page etc.) the newsSection method is called.
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.
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 |
setGraph | ( | $ | country_id, |
$ | source_id, | ||
$ | translations | ||
) | [protected] |
Adds a link to the hotspots graphic
string | $country_id | The country |
int | $source_id | The source identifier |
array | $translations | The translations array for the search module protected |
setGraph2 | ( | $ | country_id, |
$ | source_id, | ||
$ | translations | ||
) | [protected] |
Adds a link to the hotspots graphic
string | $country_id | The country |
int | $source_id | The source identifier |
array | $translations | The translations array for the search module protected |