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; }
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; }
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; }
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; }