Skip to content
Snippets Groups Projects

php8 only; added variable types; short array syntax; remove glyphicons

Merged Hahn Axel (hahn) requested to merge 7359-update-php83 into master
3 files
+ 267
183
Compare changes
  • Side-by-side
  • Inline

Files

@@ -28,30 +28,69 @@
* @author hahn
*
* Axel: <axel.hahn@unibe.ch>
*
* (...)
* 2024-09-03 Axel php8 only; added variable types; short array syntax
* 2024-09-04 Axel php8 only; added variable types; short array syntax
*/
class valuestore
{
/**
* Project id
* @var string
*/
public string $sProject = '';
/**
* Name of sPackage = project id in ci server
* @var string
*/
public string $sPackage = '';
/**
* Phase; one of preview|stage|live
* @var string
*/
public string $sPhase = '';
/**
* Name of place inside a phase; one of onhold|ready2install|deployed
* @var string
*/
public string $sPlace = '';
/**
* Name of the host
* @var string
*/
public string $sHost = '';
/**
* Name of the variable; eg. "version"
* @var string
*/
public string $sVariable = '';
/**
* Value of the variable
* @var string
*/
public string $sData = '';
/**
* Flag: enable debug?
* @var bool
*/
protected bool $_bDebug = true;
/**
* filename of sqlite database file
* Filename of sqlite database file
* @var string
*/
private string $_dbfile = '';
/**
* database connection
* Database connection
* @var object
*/
protected object $_oDB;
@@ -81,8 +120,21 @@ class valuestore
);'
;
// hardcoded
/**
* List of allowed phases
* hardcoded :-/
*
* @var array
*/
protected array $_allowedPhases = ['preview', 'stage', 'live'];
/**
* List of allowed places
* hardcoded :-/
*
* @var array
*/
protected array $_allowedPlaces = ['onhold', 'ready2install', 'deployed'];
// ----------------------------------------------------------------------
Loading