put Api-Commands into namespaces

Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann
2018-12-18 09:46:36 +01:00
parent c7e5df95e7
commit 4c27efa4ae
30 changed files with 831 additions and 667 deletions

56
lib/Froxlor/Froxlor.php Normal file
View File

@@ -0,0 +1,56 @@
<?php
namespace Froxlor;
final class Froxlor
{
// Main version variable
const VERSION = '0.10.0';
// Database version (YYYYMMDDC where C is a daily counter)
const DBVERSION = '201812170';
// Distribution branding-tag (used for Debian etc.)
const BRANDING = '';
/**
* return path to where froxlor is installed, e.g.
* /var/www/froxlor
*
* @return string
*/
public static function getInstallDir()
{
return dirname(dirname(__DIR__));
}
/**
* return basic version
*
* @return string
*/
public static function getVersion()
{
return self::VERSION;
}
/**
* return version + branding
*
* @return string
*/
public static function getFullVersion()
{
return self::VERSION . self::BRANDING;
}
/**
* return version + branding and database-version
*
* @return string
*/
public static function getVersionString()
{
return self::getFullVersion() . ' (' . self::DBVERSION . ')';
}
}