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