Tariqa
3.0
|
Public Member Functions | |
__construct ($newsConfig) | |
listArticles ($query) | |
getArticle ($article_id) | |
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 | addNode ($name, $value, $doc, $cdata=false, $parameters=null) |
static | transformToXML ($result, $config) |
Protected Member Functions | |
link ($id, $extra_arguments=null) | |
js_link ($id, $title) | |
date2range ($date) | |
Static Protected Member Functions | |
static | controls2string ($controls) |
Protected Attributes | |
$newsConfig | |
$date_format |
Base class for fetching the news results from an engine
__construct | ( | $ | newsConfig | ) |
Constructs the object
array | $newsConfig | The news configuration array public |
Reimplemented in VirageEngine, AggregatorsEngine, AggregatorsIDOLEngine, OxfordAnalyticaEngine, LatestNewsEngine, LatestNewsIDOLEngine, FactivaEngine, GoogleBlogsEngine, GoogleEngine, GoogleImagesEngine, GoogleNewsEngine, GoogleVideoEngine, GoogleWebEngine, LatestNews_aggregatorEngine, LexisNexisEngine, OdinEngine, RSS_aggregatorEngine, RSS_aggregatorIDOLEngine, RSS_live_aggregatedEngine, RSSEngine, and YahooNewsEngine.
static addNode | ( | $ | name, |
$ | value, | ||
$ | doc, | ||
$ | cdata = false , |
||
$ | parameters = null |
||
) | [static] |
Adds a node to the result xml
string | $name | The node name |
string | $value | The value of the node |
$doc | DOMDocument The XML document | |
boolean | $cdata | If true, then the node is added as a CDATA section [OPTIONAL] |
string | $parameters | The node parameters [OPTIONAL] public |
static controls2string | ( | $ | controls | ) | [static, protected] |
Transforms the additional controls from array to string
array | $controls | The controls protected |
date2range | ( | $ | date | ) | [protected] |
Converts a date from UNIX timestamps to range of days from the current day
int | $date | The date protected |
getArticle | ( | $ | article_id | ) | [abstract] |
Gets a specific article
string | $article_id | The article identifier public |
Reimplemented in VirageEngine, LatestNewsIDOLEngine, AggregatorsIDOLEngine, AggregatorsEngine, GoogleEngine, LexisNexisEngine, LatestNewsEngine, OxfordAnalyticaEngine, YahooNewsEngine, FactivaEngine, and OdinEngine.
getSavePost | ( | $ | query_txt, |
$ | query, | ||
$ | start_date = null , |
||
$ | end_date = null , |
||
$ | additional_parameters = array() |
||
) | [abstract] |
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 in VirageEngine, LatestNewsIDOLEngine, AggregatorsIDOLEngine, GoogleEngine, AggregatorsEngine, OxfordAnalyticaEngine, LatestNewsEngine, LexisNexisEngine, and YahooNewsEngine.
js_link | ( | $ | id, |
$ | title | ||
) | [protected] |
Generates a javascript link for opening an article
string | $id | The article identifier protected |
link | ( | $ | id, |
$ | extra_arguments = null |
||
) | [protected] |
Generates a link for an article
string | $id | The article identifier |
string | $extra_arguments | List of extra arguments GET encoded [OPTIONAL] protected |
listArticles | ( | $ | query | ) | [abstract] |
Fetches a list of articles
newsQuery | $query | The query public |
Reimplemented in VirageEngine, AggregatorsEngine, AggregatorsIDOLEngine, GoogleEngine, LatestNewsIDOLEngine, LexisNexisEngine, OxfordAnalyticaEngine, LatestNewsEngine, FactivaEngine, OdinEngine, RSSEngine, and YahooNewsEngine.
multiAjaxSearch | ( | $ | query, |
$ | from, | ||
$ | count, | ||
$ | startDate = null , |
||
$ | endDate = null |
||
) | [abstract] |
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 in VirageEngine, LatestNewsIDOLEngine, AggregatorsIDOLEngine, AggregatorsEngine, GoogleEngine, OxfordAnalyticaEngine, LexisNexisEngine, LatestNewsEngine, YahooNewsEngine, FactivaEngine, and RSSEngine.
static transformToXML | ( | $ | result, |
$ | config | ||
) | [static] |
Converts a tariqaSearchResultSet or a tariqaFullDocument to a DOM XML
tariqaSearchResultSet | tariqaFullDocument | $result | The result set |
array | $config | The news configuration array public |
$date_format [protected] |
$newsConfig [protected] |