Description
EtChatConfig
|
--DbConectionMaker
|
--ReloaderUserOnline
Located in File: /ReloaderUserOnline.class.php
Class ReloaderUserOnline, generate userOnline-JSON
LICENSE: CREATIVE COMMONS PUBLIC LICENSE "Namensnennung — Nicht-kommerziell 2.0"
Method Detail
Summary:
Method anyChangesSinceLastPolling (line 82)
bool anyChangesSinceLastPolling(
array
$feld, array
$roomarray)
Checks if there where any changes since the last request of this document
Parameters
- array $feld: Dataset from etchat_useronline
- array $roomarray: Dataset from etchat_rooms if there any empty rooms
Info
Method checkIfUserJustInserted (line 111)
bool checkIfUserJustInserted(
array
$feld)
Checks if the user is actualy in the DB - etchat_useronline - session table
Parameters
- array $feld: Dataset from etchat_useronline
Info
Method errorOutput (line 129)
void errorOutput(
[string
$message = 0])
Print a error message, and close db connect
Parameters
- string $message: Outputmessage, usualy "0" (if any error)
Info
Method makeJsonOutput (line 143)
void makeJsonOutput(
array
$feld, array
$roomarray)
Send a JSON Message at chat.js, and close db connect
Parameters
- array $feld: Dataset from etchat_useronline Tab
- array $roomarray: dataset from etchat_rooms Tab contains just all empty room.
Info