finish documentation NetBiblio methods

This commit is contained in:
Gilles Crettenand
2015-06-03 10:16:36 +02:00
parent da0efd72be
commit 869b3d3ee0
2 changed files with 115 additions and 9 deletions

View File

@@ -13,7 +13,10 @@ abstract class WebService
private $log = '';
/**
* @param $message
* Log a message that will be displayed in the logs if the configuration
* says so.
*
* @param string $message
* @param int $verbosity
* @param bool $withTime
*/
@@ -29,6 +32,10 @@ abstract class WebService
$this->log .= $message."\n";
}
/**
* Treat the current request and output the result. This is the only
* method that should be called on the webservice directly !
*/
public function Run()
{
$renderer = new Renderer();
@@ -67,6 +74,13 @@ abstract class WebService
}
}
/**
* Determines which method to call based on GET or POST parameters and
* call it before returning the result.
*
* @return array
* @throws UsageException
*/
private function Call()
{
session_save_path(Configuration::get('session.save_path'));