Tariqa  3.0
 All Data Structures Namespaces Files Functions Variables Enumerations
LatestNewsIDOLEngine Class Reference
Inheritance diagram for LatestNewsIDOLEngine:
searchEngine

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)

Detailed Description

Base class for fetching the news results from the LatestnewsIDOL engine

Author:
Cosmin Popescu

Constructor & Destructor Documentation

__construct ( newsConfig)

Constructs the object

Parameters:
array$newsConfigThe news configuration array public
Returns:
void

Reimplemented from searchEngine.


Member Function Documentation

getArticle ( article_id)

Gets a specific article

Parameters:
string$article_idThe article identifier public
Returns:
tariqaFullDocument

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

Parameters:
string$query_txtThe query string text
Query$queryThe query
int$start_dateThe start date (unix timestamp) [OPTIONAL]
int$end_dateThe end date (unix timestamp) [OPTIONAL]
array$additional_parametersAdditional parameters [OPTIONAL] public
Returns:
string

Reimplemented from searchEngine.

static highlight ( text) [static]

Sets the highlight

Parameters:
string$textThe text to highlight public
Returns:
string
listArticles ( query)

Fetches a list of articles

Parameters:
newsQuery$queryThe query public
Returns:
tariqaSearchResultSet

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.

Parameters:
string$queryThe query string
int$fromThe first result to display
int$countThe number of results to display
DateTime$startDateThe start date [OPTIONAL]
DateTime$endDateThe end date [OPTIONAL] public
Returns:
multiAjaxSearch

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.

Parameters:
Flavour$flavourThe flavour
array$filteringThe filtering data
Query$flavour_queryThe flavour current query public
Returns:
multiAjaxSearch
setGraph ( country_id,
source_id,
translations 
) [protected]

Adds a link to the hotspots graphic

Parameters:
string$country_idThe country
int$source_idThe source identifier
array$translationsThe translations array for the search module protected
Returns:
tariqaDocument
setGraph2 ( country_id,
source_id,
translations 
) [protected]

Adds a link to the hotspots graphic

Parameters:
string$country_idThe country
int$source_idThe source identifier
array$translationsThe translations array for the search module protected
Returns:
tariqaDocument

The documentation for this class was generated from the following file: