function setXsl($uri) { if ($doc = new docReader($uri)) { $this->xsl = $doc->getString(); return true; } else { $this->setError("Could not open {$uri}"); return false; } }
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; } }
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); } }