|
|
|
|
@ -10,13 +10,19 @@ abstract class WebService
|
|
|
|
|
private $func = null;
|
|
|
|
|
private $status = 200;
|
|
|
|
|
|
|
|
|
|
private $version = null;
|
|
|
|
|
|
|
|
|
|
public function __construct($version) {
|
|
|
|
|
$this->version = $version;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Treat the current request and output the result. This is the only
|
|
|
|
|
* method that should be called on the webservice directly !
|
|
|
|
|
*/
|
|
|
|
|
public function Run()
|
|
|
|
|
{
|
|
|
|
|
Logger::start();
|
|
|
|
|
Logger::start(array('version' => $this->version));
|
|
|
|
|
|
|
|
|
|
$renderer = new Renderer();
|
|
|
|
|
|
|
|
|
|
|