本文整理匯總了PHP中Service::getResultInXML方法的典型用法代碼示例。如果您正苦於以下問題:PHP Service::getResultInXML方法的具體用法?PHP Service::getResultInXML怎麽用?PHP Service::getResultInXML使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Service
的用法示例。
在下文中一共展示了Service::getResultInXML方法的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: getStats
function getStats()
{
$this->setCall('http://' . $this->ini_main['LOG']['SERVER_LOG_PROC'] . '/' . $this->ini_main['LOG']['SERVER_LOG_PROC_PATH'] . '/scielologArticle.php');
Service::callService(Service::buildCall());
$xml[] = Service::getResultInXML();
$XML_XSL = new XSL_XML();
$result = new AccessServiceResult($XML_XSL->concatXML($xml));
$requests = $result->getStats();
return $requests;
}
示例2: getArticle
function getArticle()
{
if ($this->getParam('pid')) {
Service::callService(Service::buildCall());
$result = new ArticleServicesResult(Service::getResultInXML());
$article = $result->getArticle();
$article->setPID($this->getParam('pid'));
$article->setURL($this->dataDomain);
} else {
die("Missing call the method setParams of ArticleService");
}
return $article;
}
示例3: getStats
function getStats()
{
//FIXME
$array = $this->ini['collections'];
foreach ($array as $name => $collection) {
$this->setCall($this->ini['requests_server'][$name] . '/scielolog/scielologArticle.php');
Service::callService(Service::buildCall());
$xml[] = Service::getResultInXML();
}
$XML_XSL = new XSL_XML();
$result = new AccessServiceResult($XML_XSL->concatXML($xml));
$requests = $result->getStats();
return $requests;
}
示例4: getArticles
function getArticles()
{
$array = $this->ini['collections'];
foreach ($array as $name => $collection) {
$this->setCall($this->ini['trigrama_server'][$name] . '/cgi-bin/serx');
$this->setParam('c', $this->ini['trigrama_parameter'][$name]);
Service::callService(Service::buildCall());
$xml[] = Service::getResultInXML();
}
$XML_XSL = new XSL_XML();
$result = new TrigramaServiceResult($XML_XSL->concatXML($xml));
$articles = $result->getArticles();
return $articles;
}