|
|
|
|
@ -21,7 +21,7 @@ abstract class WebService
|
|
|
|
|
* Treat the current request and output the result. This is the only
|
|
|
|
|
* method that should be called on the webservice directly !
|
|
|
|
|
*/
|
|
|
|
|
public function Run()
|
|
|
|
|
public function run()
|
|
|
|
|
{
|
|
|
|
|
Logger::start(array('version' => $this->version));
|
|
|
|
|
|
|
|
|
|
@ -30,7 +30,7 @@ abstract class WebService
|
|
|
|
|
$data = array();
|
|
|
|
|
|
|
|
|
|
try {
|
|
|
|
|
$result = $this->Call();
|
|
|
|
|
$result = $this->call();
|
|
|
|
|
$data["result"][$this->func] = $result;
|
|
|
|
|
|
|
|
|
|
// Logger::log(print_r($result, true));
|
|
|
|
|
@ -63,7 +63,7 @@ abstract class WebService
|
|
|
|
|
* @return array
|
|
|
|
|
* @throws UsageException
|
|
|
|
|
*/
|
|
|
|
|
private function Call()
|
|
|
|
|
private function call()
|
|
|
|
|
{
|
|
|
|
|
session_save_path(Configuration::get('session.save_path'));
|
|
|
|
|
session_start();
|
|
|
|
|
|