remoteModel
extends staticModel
in
Remote data model
Table of Contents
FURLOPEN_ERROR | Hinweis, dass allow_url_fopen nicht aktiv ist | 400 |
---|---|---|
REMOTEFILE_ERROR | Fehler beim Prüfung, ob Update-Server erreichbar ist | 401 |
REMOTECONTENT_ERROR | Fehler beim Abrüfen der Update-Informationen | 402 |
$remoteServer | URL zum Server | string |
$remotePort | Server port | string |
$checkParams | Datenparameter | array |
$canConnect | Verbindungen zu anderem Server möglich | bool |
$remoteData | vom Server zurückgegebene Daten | string |
$data | Data array | array |
$cache | Cache object | cache |
$events | Event list | events |
$config | Config object | config |
$language | Sprachobjekt | language |
$session | Session objekt | session |
$notifications | Notifications | notifications |
$permissions | Permissions | permissions |
$cacheName | Cache name | string |
$cacheModule | Cache Modul | string |
__construct() | Konstruktor | void |
fetchRemoteData() | Ftech data from remote source | bool |
getRemoteData() | Daten zurückgeben, die vom Server abgerufen wurden | array |
remoteAvailable() | Prüft, ob Update-Server verfügbar ist | bool |
saveRemoteData() | Writes remote repository data to local storage | bool |
__construct() | Konstruktor | void |
getCacheName() | Cache-Name zurückgeben | string |
Constants
FURLOPEN_ERROR
Hinweis, dass allow_url_fopen nicht aktiv ist
mixed
$FURLOPEN_ERROR
= 400
REMOTEFILE_ERROR
Fehler beim Prüfung, ob Update-Server erreichbar ist
mixed
$REMOTEFILE_ERROR
= 401
REMOTECONTENT_ERROR
Fehler beim Abrüfen der Update-Informationen
mixed
$REMOTECONTENT_ERROR
= 402
Properties
$remoteServer
URL zum Server
protected
string
$remoteServer
= ''
$remotePort
Server port
protected
string
$remotePort
= 80
$checkParams
Datenparameter
protected
array
$checkParams
= []
$canConnect
Verbindungen zu anderem Server möglich
protected
bool
$canConnect
= false
$remoteData
vom Server zurückgegebene Daten
protected
string
$remoteData
= ''
$data
Data array
protected
array
$data
$cache
Cache object
protected
cache
$cache
$events
Event list
protected
events
$events
$config
Config object
protected
config
$config
$language
Sprachobjekt
protected
language
$language
$session
Session objekt
protected
session
$session
$notifications
Notifications
protected
notifications
$notifications
$permissions
Permissions
protected
permissions
$permissions
$cacheName
Cache name
protected
string
$cacheName
= false
$cacheModule
Cache Modul
protected
string
$cacheModule
= ''
Methods
__construct()
Konstruktor
public
__construct(
)
: void
fetchRemoteData()
Ftech data from remote source
public
fetchRemoteData(
)
: bool
Return values
boolgetRemoteData()
Daten zurückgeben, die vom Server abgerufen wurden
public
getRemoteData(
[ $key :
string
= false ]
)
: array
Parameters
- $key : string = false
Return values
arrayremoteAvailable()
Prüft, ob Update-Server verfügbar ist
protected
remoteAvailable(
)
: bool
Return values
boolsaveRemoteData()
Writes remote repository data to local storage
protected
abstract saveRemoteData(
)
: bool
Return values
bool__construct()
Konstruktor
public
__construct(
)
: void
getCacheName()
Cache-Name zurückgeben
public
getCacheName(
[ $addName :
string
= '' ]
)
: string
Parameters
- $addName : string = ''