Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
Imldeployment
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
IML Open Source
Imldeployment
Merge requests
!66
php8 only; added variable types; short array syntax; remove glyphicons
Code
Review changes
Check out branch
Download
Patches
Plain diff
Expand sidebar
Merged
php8 only; added variable types; short array syntax; remove glyphicons
7359-update-php83
into
master
Overview
0
Commits
61
Pipelines
0
Changes
3
Merged
Hahn Axel (hahn)
requested to merge
7359-update-php83
into
master
10 months ago
Overview
0
Commits
61
Pipelines
0
Changes
3
0
0
Merge request reports
Viewing commit
0dd2fc8b
Prev
Next
Show latest version
3 files
+
267
−
183
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
3
0dd2fc8b
update to php8 using variable types
· 0dd2fc8b
Hahn Axel (hahn)
authored
10 months ago
public_html/valuestore/classes/valuestore.class.php
+
56
−
4
View file @ 0dd2fc8b
Edit in single-file editor
Open in Web IDE
Show full file
@@ -28,30 +28,69 @@
* @author hahn
*
* Axel: <axel.hahn@unibe.ch>
*
* (...)
* 2024-09-0
3
Axel php8 only; added variable types; short array syntax
* 2024-09-0
4
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
;
/**
*
f
ilename of sqlite database file
*
F
ilename of sqlite database file
* @var string
*/
private
string
$_dbfile
=
''
;
/**
*
d
atabase connection
*
D
atabase 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