Class ReloaderMessages

(line 14)

Description

EtChatConfig
   |
   --DbConectionMaker
      |
      --ReloaderMessages

Located in File: /ReloaderMessages.class.php

Class ReloaderMessages, the AJAX Request for getting and setting new messges, pull session and more,

LICENSE: CREATIVE COMMONS PUBLIC LICENSE "Namensnennung — Nicht-kommerziell 2.0"



Class Variables

Summary:

Class Constants

Summary:

Method Detail

Summary:
void __construct ()
void blockiere (int $user_id, int $privat_id)
bool checkKicklist ()
void errorOutput ([string $message = 0])
Array getRoomArray ()
void makeJsonOutput (Array $feld)
void refreshUserSession (Array $user_array, Array $raum_array, String $user_param_all)

Constructor __construct (line 29)

void __construct( )

Overrides : DbConectionMaker::__construct() Constructor

Constructor

Info

Method blockiere (line 310)

void blockiere( int $user_id, int $privat_id)

Blocking if the opponent user that is in the blocklist of user own session

Parameters

  • int $user_id:
  • int $privat_id:

Info

  • access - private

Method checkKicklist (line 219)

bool checkKicklist( )

Checks if the user is in the kicklist now

Info

Method errorOutput (line 245)

void errorOutput( [string $message = 0])

Print a error message, and close db connect

Parameters

  • string $message: Outputmessage, usualy "0" (if any error)

Info

Method getRoomArray (line 190)

Array getRoomArray( )

Get all room from DB with all information

Info

Method makeJsonOutput (line 94)

void makeJsonOutput( Array $feld)

Creates the JSON-Output for AJAX-Request

Parameters

  • Array $feld: this array contains the messages to be transmitted to the user

Info

Method refreshUserSession (line 149)

void refreshUserSession( Array $user_array, Array $raum_array, String $user_param_all)

Every pull refreshes the user data in the session table, etchat_useronline

Parameters

  • Array $user_array: requested data from user table
  • Array $raum_array: requested data from room table
  • String $user_param_all: User IP data for Blacklist

Info

Method selectMessagesForTheUser (line 258)

Array selectMessagesForTheUser( )

Creates a dataset with all needed messages for the user

Info

Inherited Variables

Inherited Class Variable Summary

Inherited From Class DbConectionMaker

DbConectionMaker::$dbObj - Database connection obj for all inherited classes

Inherited From Class EtChatConfig

EtChatConfig::$_database -

EtChatConfig::$_limit_logins_in_three_minutes -

EtChatConfig::$_messages_shown_on_entrance -

EtChatConfig::$_prefix -

EtChatConfig::$_sqlhost -

EtChatConfig::$_sqlpass -

EtChatConfig::$_sqluser -

EtChatConfig::$_usedDatabase -

EtChatConfig::$_usedDatabaseExtension -

Inherited Methods

Inherited Method Summary

Inherited From Class DbConectionMaker

DbConectionMaker::__construct() - Constructor

DbConectionMaker::configTabData2Session() - Sets the session vars in the chatsession from the etchat_config table this function has only be run once at the beginning to get all needed params to the user session.


Inherited From Class EtChatConfig

EtChatConfig::__construct() - Constructor



Documentation generated on Tue, 22 Dec 2009 09:42:50 +0100 by phpDocumentor 1.4.1