- put version to a more accessible place
- use it for logs and help - bump the version
This commit is contained in:
@@ -12,9 +12,16 @@ use BSR\Lib\Search\BookSearch;
|
|||||||
use BSR\Lib\WebService;
|
use BSR\Lib\WebService;
|
||||||
class NetBiblio extends WebService
|
class NetBiblio extends WebService
|
||||||
{
|
{
|
||||||
|
/** @var string $version version number */
|
||||||
|
public static $version = '1.0.1';
|
||||||
|
|
||||||
private $login = '';
|
private $login = '';
|
||||||
private $client = 'website';
|
private $client = 'website';
|
||||||
|
|
||||||
|
public function __construct() {
|
||||||
|
parent::__construct(self::$version);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set the current login and client based on information
|
* Set the current login and client based on information
|
||||||
* from the session.
|
* from the session.
|
||||||
|
|||||||
1
help.php
1
help.php
@@ -8,6 +8,7 @@ use BSR\Lib\Help;
|
|||||||
require_once('Lib/autoloader.php');
|
require_once('Lib/autoloader.php');
|
||||||
|
|
||||||
echo Html::template(array(
|
echo Html::template(array(
|
||||||
|
'version' => NetBiblio::$version,
|
||||||
'title' => 'Help',
|
'title' => 'Help',
|
||||||
'content' => Help::content(new NetBiblio()),
|
'content' => Help::content(new NetBiblio()),
|
||||||
));
|
));
|
||||||
|
|||||||
@@ -2,10 +2,7 @@
|
|||||||
|
|
||||||
namespace BSR;
|
namespace BSR;
|
||||||
|
|
||||||
/** @var string $version version number */
|
|
||||||
$ws_version = '1.0.0';
|
|
||||||
|
|
||||||
require_once('Lib/autoloader.php');
|
require_once('Lib/autoloader.php');
|
||||||
|
|
||||||
$web = new NetBiblio($ws_version);
|
$web = new NetBiblio();
|
||||||
$web->Run();
|
$web->Run();
|
||||||
|
|||||||
1
logs.php
1
logs.php
@@ -10,6 +10,7 @@ require_once('Lib/autoloader.php');
|
|||||||
$logs = Logger::getLastLogs();
|
$logs = Logger::getLastLogs();
|
||||||
|
|
||||||
echo Html::template(array(
|
echo Html::template(array(
|
||||||
|
'version' => NetBiblio::$version,
|
||||||
'title' => 'Logs',
|
'title' => 'Logs',
|
||||||
'content' => "<pre>$logs</pre>",
|
'content' => "<pre>$logs</pre>",
|
||||||
));
|
));
|
||||||
|
|||||||
Reference in New Issue
Block a user