Exemple #1
0
 function setXsl($uri)
 {
     if ($doc = new docReader($uri)) {
         $this->xsl = $doc->getString();
         return true;
     } else {
         $this->setError("Could not open {$uri}");
         return false;
     }
 }
Exemple #2
0
 function setXsl($uri)
 {
     $doc = new docReader($uri);
     if ($doc->readDoc() == true) {
         $this->xsl = $doc->getString();
         return true;
     } else {
         $this->setError("Could not open xsl file in \"{$uri}\"");
         $this->setErrorCode("4");
         return false;
     }
 }
Exemple #3
0
 function _CallSqlQueryScript()
 {
     $buffer = "";
     $uri = $this->_GenerateSqlScriptUrl();
     if ($doc = new docReader($uri)) {
         $buffer = $doc->getString();
     } else {
         $this->setError("Could not open {$uri}");
         exit;
     }
     return $buffer;
 }
 function setXml($xml)
 {
     if ($this->isXmlContent($xml)) {
         $this->xml = $xml;
         return true;
     } elseif ($doc = new docReader($xml)) {
         $this->xml = $doc->getString();
         return true;
     } else {
         $this->setError("Could not open {$xml}");
         return false;
     }
 }
 function ScieloDocReader($uri, $method)
 {
     $this->setUri($uri);
     $this->setMethodType($method);
     $this->setType();
     if ($this->getType() == 'file' or $this->getMethodType() == "GET") {
         docReader::docReader($uri);
     } else {
         // Read url using Post Method
         $result = $this->postMethod($uri);
         $this->setString($result);
     }
 }