finalizer
extends model
in
System Update Finalizer Objekt
Table of Contents
$isCli | Run in command line mode | bool |
---|---|---|
$cliProgress | CLI progress | progress |
$dbcon | DB-Verbindung | database |
$id | Objekt-ID | int |
$table | Tabellen-Name | string |
$data | data-Array für nicht weiter definierte Eigenschaften | array |
$dbExcludes | Eigenschaften, welche beim Speichern in DB nicht von getPreparedSaveParams() zurückgegeben werden sollen | array |
$nodata | $this->data beim Speichern nicht berücksichtigen | bool |
$cache | System-Cache | cache |
$events | Event-Liste | events |
$config | System-Config-Objekt | config |
$language | System-Sprachen-Objekt | language |
$notifications | Notifications | notifications |
$editAction | Controller-Pfad, wenn Objekt Edit-Action besitzt | string |
$objExists | Objektexistiert | bool |
$cacheName | Cache name | string |
$cacheModule | Cache name | string |
__construct() | Initialisiert System Update | void |
runUpdate() | Führt abschließende Update-Schritte aus | bool |
updateVersion() | aktualisiert Versionsinfos in Datenbank | bool |
updatePermissions() | aktualisiert Berechtigungen | bool |
addSystemOptions() | neue System-Optionen bei Update erzeugen | bool |
updateSystemOptions() | System-Optionen bei Update aktualisieren | bool |
removeSystemOptions() | System-Optionen bei Update aktualisieren | bool |
alterTables() | Änderungen an Tabellen-Struktur vornehmen | bool |
optimizeTables() | Führt Optimierung der Datenbank-Tabellen durch | bool |
checkVersion() | Prüft System-Version auf bestimmten Wert | bool |
cliOutput() | Print text in command line mode | mixed |
isValidDataFolder() | Check if fullpath is valid path in /data folder structure | bool |
__construct() | Konstruktor | void |
__get() | Magic get | mixed |
__set() | Magic set | mixed |
__toString() | Magic string | string |
__call() | Magische Methode für nicht vorhandene Methoden | bool |
__callStatic() | Magische Methode für nicht vorhandene, statische Methoden | bool |
__destruct() | Konstruktor | void |
getData() | Gibt Inhalt von "data" zurück | array |
init() | Inittiert Objekt mit Daten aus der Datenbank, sofern ID vergeben wurde | bool |
getId() | Gibt Object-ID zurück | int |
exists() | Prüft ob Objekt existiert | bool |
getNodata() | Prüft, ob "data" gespeichert werden soll | bool |
setNodata() | Möglichkeit, "data"-Eigenschaft mit an Datenbank zu senden | mixed |
delete() | Löscht ein Objekt in der Datenbank | bool |
createFromDbObject() | Füllt Objekt mit Daten aus Datenbank-Result | bool |
getPreparedSaveParams() | Bereitet Eigenschaften des Objects zum Speichern ind er Datenbank vor und entfernt nicht speicherbare Eigenschaften | array |
getPreparedValueParams() | Gibt array mit Values für Prepared Statements zurück | int |
prepareDataSave() | Bereitet Daten für Speicherung in Datenbank vor | bool |
getEditLink() | Gibt Link für Edit-Action zurück | string |
Properties
$isCli
Run in command line mode
private
bool
$isCli
= false
$cliProgress
CLI progress
private
progress
$cliProgress
= false
$dbcon
DB-Verbindung
protected
database
$dbcon
$id
Objekt-ID
protected
int
$id
$table
Tabellen-Name
protected
string
$table
$data
data-Array für nicht weiter definierte Eigenschaften
protected
array
$data
$dbExcludes
Eigenschaften, welche beim Speichern in DB nicht von getPreparedSaveParams() zurückgegeben werden sollen
protected
array
$dbExcludes
= []
$nodata
$this->data beim Speichern nicht berücksichtigen
protected
bool
$nodata
= true
$cache
System-Cache
protected
cache
$cache
$events
Event-Liste
protected
events
$events
$config
System-Config-Objekt
protected
config
$config
$language
System-Sprachen-Objekt
protected
language
$language
$notifications
Notifications
protected
notifications
$notifications
$editAction
Controller-Pfad, wenn Objekt Edit-Action besitzt
protected
string
$editAction
$objExists
Objektexistiert
protected
bool
$objExists
= false
$cacheName
Cache name
protected
string
$cacheName
= false
$cacheModule
Cache name
protected
string
$cacheModule
= ''
Methods
__construct()
Initialisiert System Update
public
__construct(
)
: void
runUpdate()
Führt abschließende Update-Schritte aus
public
runUpdate(
)
: bool
Return values
boolupdateVersion()
aktualisiert Versionsinfos in Datenbank
private
updateVersion(
)
: bool
Return values
boolupdatePermissions()
aktualisiert Berechtigungen
private
updatePermissions(
)
: bool
Return values
booladdSystemOptions()
neue System-Optionen bei Update erzeugen
private
addSystemOptions(
)
: bool
Return values
boolupdateSystemOptions()
System-Optionen bei Update aktualisieren
private
updateSystemOptions(
)
: bool
Return values
boolremoveSystemOptions()
System-Optionen bei Update aktualisieren
private
removeSystemOptions(
)
: bool
Return values
boolalterTables()
Änderungen an Tabellen-Struktur vornehmen
private
alterTables(
)
: bool
Return values
booloptimizeTables()
Führt Optimierung der Datenbank-Tabellen durch
private
optimizeTables(
)
: bool
Tags
Return values
boolcheckVersion()
Prüft System-Version auf bestimmten Wert
private
checkVersion(
$version :
string
[, $option :
string
= '<' ]
)
: bool
Parameters
- $version : string
- $option : string = '<'
Tags
Return values
boolcliOutput()
Print text in command line mode
private
cliOutput(
$str :
string
)
: mixed
Parameters
- $str : string
Tags
Return values
mixedisValidDataFolder()
Check if fullpath is valid path in /data folder structure
public
static isValidDataFolder(
[ $path :
string
= '' ]
[, $type :
string
= '/' ]
)
: bool
Parameters
- $path : string = ''
- $type : string = '/'
Return values
bool__construct()
Konstruktor
public
__construct(
[ $id :
int
= null ]
)
: void
Parameters
- $id : int = null
__get()
Magic get
public
__get(
$name :
string
)
: mixed
Parameters
- $name : string
Return values
mixed__set()
Magic set
public
__set(
$name :
mixed
, $value :
mixed
)
: mixed
Parameters
- $name : mixed
- $value : mixed
Return values
mixed__toString()
Magic string
public
__toString(
)
: string
Return values
string__call()
Magische Methode für nicht vorhandene Methoden
public
__call(
$name :
string
, $arguments :
mixed
)
: bool
Parameters
- $name : string
- $arguments : mixed
Return values
bool__callStatic()
Magische Methode für nicht vorhandene, statische Methoden
public
static __callStatic(
$name :
string
, $arguments :
mixed
)
: bool
Parameters
- $name : string
- $arguments : mixed
Return values
bool__destruct()
Konstruktor
public
__destruct(
)
: void
getData()
Gibt Inhalt von "data" zurück
public
getData(
)
: array
Return values
arrayinit()
Inittiert Objekt mit Daten aus der Datenbank, sofern ID vergeben wurde
public
init(
)
: bool
Return values
boolgetId()
Gibt Object-ID zurück
public
getId(
)
: int
Return values
intexists()
Prüft ob Objekt existiert
public
exists(
)
: bool
Return values
boolgetNodata()
Prüft, ob "data" gespeichert werden soll
public
getNodata(
)
: bool
Return values
boolsetNodata()
Möglichkeit, "data"-Eigenschaft mit an Datenbank zu senden
public
setNodata(
$nodata :
bool
)
: mixed
Parameters
- $nodata : bool
Return values
mixeddelete()
Löscht ein Objekt in der Datenbank
public
delete(
)
: bool
Return values
boolcreateFromDbObject()
Füllt Objekt mit Daten aus Datenbank-Result
public
createFromDbObject(
$object :
object
)
: bool
Parameters
- $object : object
Return values
boolgetPreparedSaveParams()
Bereitet Eigenschaften des Objects zum Speichern ind er Datenbank vor und entfernt nicht speicherbare Eigenschaften
protected
getPreparedSaveParams(
)
: array
Return values
arraygetPreparedValueParams()
Gibt array mit Values für Prepared Statements zurück
public
getPreparedValueParams(
[ $count :
int
= false ]
)
: int
Parameters
- $count : int = false
Return values
intprepareDataSave()
Bereitet Daten für Speicherung in Datenbank vor
public
prepareDataSave(
)
: bool
Tags
Return values
boolgetEditLink()
Gibt Link für Edit-Action zurück
public
getEditLink(
)
: string