config
extends dataset
in
Uses
eventModuleEmpty
System config Objekt
Table of Contents
$newConfig | Neue Konfiguration | array |
---|---|---|
$useCache | this->data cachen | bool |
$userConfigSet | Benuter-Config bereits eingelesen | bool |
$system_version | string | |
$system_email | string | |
$system_url | string | |
$system_lang | string | |
$system_dtmask | string | |
$system_comments_enabled | bool | |
$system_session_length | int | |
$system_mode | bool | |
$system_css_path | string | |
$system_show_share | bool | |
$system_share_count | bool | |
$system_timezone | string | |
$system_cache_timeout | int | |
$system_loader_jquery | bool | |
$system_editor | bool | |
$system_editor_fontsize | int | |
$system_maintenance | bool | |
$system_loginfailed_locked | int | |
$system_updates_devcheck | int | |
$system_updates_emailnotify | bool | |
$system_updates_manual | int | |
$system_2fa_auth | bool | |
$system_trash_cleanup | int | |
$system_passcheck_enabled | bool | |
$articles_revisions | bool | |
$articles_limit | int | |
$articles_template_active | string | |
$article_template_active | string | |
$articles_archive_show | bool | |
$articles_sort | string | |
$articles_sort_order | string | |
$articles_rss | bool | |
$articles_acp_limit | int | |
$articles_archive_datelimit | int | |
$articles_revisions_limit | int | |
$articles_link_urlrewrite | bool | |
$articles_imageedit_persistence | bool | |
$comments_template_active | string | |
$comments_flood | int | |
$comments_email_optional | bool | |
$comments_confirm | bool | |
$comments_antispam_question | string | |
$comments_antispam_answer | string | |
$comments_notify | int | |
$comments_markspam_commentcount | int | |
$comments_privacy_optin | bool | |
$file_img_thumb_width | int | |
$file_img_thumb_height | int | |
$file_list_limit | int | |
$file_subfolders | bool | |
$file_view | string | |
$twitter_data | array | |
$twitter_events | array | |
$smtp_enabled | array | |
$smtp_settings | array | |
$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 |
$session | System-Session | session |
$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 |
__construct() | Konstruktor | bool |
setNewConfig() | Speichert neue Konfiguration | mixed |
save() | not used | bool |
delete() | not used | bool |
update() | Konfiguration aktualisieren | bool |
add() | Neuen Config-Key erzeugen | bool |
remove() | Config Key löschen | bool |
setUserSettings() | Überschreibt systemweite Einstellungen mit Benutzer-Einstellungen | bool |
setMaintenanceMode() | Wartungsmodus aktivieren | bool |
init() | Inittiert Objekt mit Daten aus der Datenbank | bool |
prepareDataSave() | Bereitet Daten für Speicherung in Datenbank vor | bool |
getModuleOptions() | Returns config options by module key | array |
getVersionNumberString() | Returns minor version string as Number | string |
refresh() | Config-Refresh | mixed |
getDefaultFontsizes() | Array mit Schriftgrößen für Editor | array |
getAcpArticleLimits() | Array mit Anzahl-Limits für Artikel in ACP-Liste | array |
getArticleLimits() | Array mit Anzahl-Limits für Artikel-Listen | array |
getEventModule() | Returns event base string | string |
__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 |
setId() | Set dataset id | mixed |
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 |
save() | Executes save process to database and events | bool|int |
update() | Executes update process to database and events | bool|int |
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 |
getEventName() | Returns full event name string | string |
afterSaveInternal() | Is triggered after successful database insert | bool |
afterUpdateInternal() | Is triggered after successful database update | bool |
Properties
$newConfig
Neue Konfiguration
protected
array
$newConfig
= []
$useCache
this->data cachen
protected
bool
$useCache
= true
$userConfigSet
Benuter-Config bereits eingelesen
protected
bool
$userConfigSet
= false
$system_version
public
string
$system_version
$system_email
public
string
$system_email
$system_url
public
string
$system_url
$system_lang
public
string
$system_lang
$system_dtmask
public
string
$system_dtmask
$system_comments_enabled
public
bool
$system_comments_enabled
$system_session_length
public
int
$system_session_length
$system_mode
public
bool
$system_mode
$system_css_path
public
string
$system_css_path
$system_show_share
public
bool
$system_show_share
$system_share_count
public
bool
$system_share_count
$system_timezone
public
string
$system_timezone
$system_cache_timeout
public
int
$system_cache_timeout
$system_loader_jquery
public
bool
$system_loader_jquery
$system_editor
public
bool
$system_editor
$system_editor_fontsize
public
int
$system_editor_fontsize
$system_maintenance
public
bool
$system_maintenance
$system_loginfailed_locked
public
int
$system_loginfailed_locked
$system_updates_devcheck
public
int
$system_updates_devcheck
$system_updates_emailnotify
public
bool
$system_updates_emailnotify
$system_updates_manual
public
int
$system_updates_manual
$system_2fa_auth
public
bool
$system_2fa_auth
$system_trash_cleanup
public
int
$system_trash_cleanup
$system_passcheck_enabled
public
bool
$system_passcheck_enabled
$articles_revisions
public
bool
$articles_revisions
$articles_limit
public
int
$articles_limit
$articles_template_active
public
string
$articles_template_active
$article_template_active
public
string
$article_template_active
$articles_archive_show
public
bool
$articles_archive_show
$articles_sort
public
string
$articles_sort
$articles_sort_order
public
string
$articles_sort_order
$articles_rss
public
bool
$articles_rss
$articles_acp_limit
public
int
$articles_acp_limit
$articles_archive_datelimit
public
int
$articles_archive_datelimit
$articles_revisions_limit
public
int
$articles_revisions_limit
$articles_link_urlrewrite
public
bool
$articles_link_urlrewrite
$articles_imageedit_persistence
public
bool
$articles_imageedit_persistence
$comments_template_active
public
string
$comments_template_active
$comments_flood
public
int
$comments_flood
$comments_email_optional
public
bool
$comments_email_optional
$comments_confirm
public
bool
$comments_confirm
$comments_antispam_question
public
string
$comments_antispam_question
$comments_antispam_answer
public
string
$comments_antispam_answer
$comments_notify
public
int
$comments_notify
$comments_markspam_commentcount
public
int
$comments_markspam_commentcount
$comments_privacy_optin
public
bool
$comments_privacy_optin
$file_img_thumb_width
public
int
$file_img_thumb_width
$file_img_thumb_height
public
int
$file_img_thumb_height
$file_list_limit
public
int
$file_list_limit
$file_subfolders
public
bool
$file_subfolders
$file_view
public
string
$file_view
$twitter_data
public
array
$twitter_data
$twitter_events
public
array
$twitter_events
$smtp_enabled
public
array
$smtp_enabled
$smtp_settings
public
array
$smtp_settings
$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
$session
System-Session
protected
session
$session
$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
Methods
__construct()
Konstruktor
public
__construct(
[ $useCache :
bool
= true ]
)
: bool
Parameters
- $useCache : bool = true
Configuration aus Cache laden
Return values
boolsetNewConfig()
Speichert neue Konfiguration
public
setNewConfig(
$newConfig :
array
)
: mixed
Parameters
- $newConfig : array
Return values
mixedsave()
not used
public
save(
)
: bool
Return values
booldelete()
not used
public
delete(
)
: bool
Return values
boolupdate()
Konfiguration aktualisieren
public
update(
)
: bool
Return values
booladd()
Neuen Config-Key erzeugen
public
add(
$keyname :
string
, $keyvalue :
string
[, $modulekey :
string
= '' ]
)
: bool
Parameters
- $keyname : string
Config option name
- $keyvalue : string
Config option value
- $modulekey : string = ''
Module key
Return values
boolremove()
Config Key löschen
public
remove(
$keyname :
string
)
: bool
Parameters
- $keyname : string
Config option name
Return values
boolsetUserSettings()
Überschreibt systemweite Einstellungen mit Benutzer-Einstellungen
public
setUserSettings(
)
: bool
Return values
boolsetMaintenanceMode()
Wartungsmodus aktivieren
public
setMaintenanceMode(
$mode :
bool
)
: bool
Parameters
- $mode : bool
Return values
boolinit()
Inittiert Objekt mit Daten aus der Datenbank
public
init(
)
: bool
Return values
boolprepareDataSave()
Bereitet Daten für Speicherung in Datenbank vor
public
prepareDataSave(
)
: bool
Tags
Return values
boolgetModuleOptions()
Returns config options by module key
public
getModuleOptions(
$key :
string
)
: array
Parameters
- $key : string
Tags
Return values
arraygetVersionNumberString()
Returns minor version string as Number
public
getVersionNumberString(
)
: string
Tags
Return values
stringrefresh()
Config-Refresh
private
refresh(
)
: mixed
Return values
mixedgetDefaultFontsizes()
Array mit Schriftgrößen für Editor
public
static getDefaultFontsizes(
)
: array
Tags
Return values
arraygetAcpArticleLimits()
Array mit Anzahl-Limits für Artikel in ACP-Liste
public
static getAcpArticleLimits(
)
: array
Tags
Return values
arraygetArticleLimits()
Array mit Anzahl-Limits für Artikel-Listen
public
static getArticleLimits(
)
: array
Tags
Return values
arraygetEventModule()
Returns event base string
protected
abstract getEventModule(
)
: string
Tags
Return values
string__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
intsetId()
Set dataset id
public
setId(
$id :
int
)
: mixed
Parameters
- $id : int
Return values
mixedexists()
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
mixedsave()
Executes save process to database and events
public
save(
)
: bool|int
Tags
Return values
bool|intupdate()
Executes update process to database and events
public
update(
)
: bool|int
Tags
Return values
bool|intdelete()
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
Return values
stringgetEventName()
Returns full event name string
protected
final getEventName(
$event :
string
)
: string
Parameters
- $event : string
Tags
Return values
stringafterSaveInternal()
Is triggered after successful database insert
protected
afterSaveInternal(
)
: bool
Tags
Return values
boolafterUpdateInternal()
Is triggered after successful database update
protected
afterUpdateInternal(
)
: bool