Class CheckUserName

(line 14)

Description

EtChatConfig
   |
   --DbConectionMaker
      |
      --CheckUserName

Located in File: /CheckUserName.class.php

Class CheckUserName, chat login class

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



Class Variables

Summary:

$lang (line 20)

Data type : LangXml

LangXml Obj for login page
  • access: - public

$user_application (line 26)

Data type : bool

bridge for an foreign user application used or not
  • access: - protected

Class Constants

Summary:

Method Detail

Summary:
void __construct ([ $user_application = false], [ $username = ''], [ $gender = ''])
bool errorMessage (string $message)
bool loginCounter ()
bool messageOnEnter ()
bool userInChatNow (string $user)

Constructor __construct (line 43)

void __construct( [ $user_application = false], [ $username = ''], [ $gender = ''])

Overrides : DbConectionMaker::__construct() Constructor

Constructor, contains all once needed operations and steps to check the user, login him and s.o.

Parameters

  • $user_application:
  • $username:
  • $gender:

Info

Method errorMessage (line 198)

bool errorMessage( string $message)

Print a error message, and close db connect

Parameters

  • string $message: Outputmessage is status != 1, so the user cant be loggin to chat

Info

  • access - private
  • uses - ConnectDB::close

Method loginCounter (line 149)

bool loginCounter( )

Checking how many logins the user have done in the last 3 Mutes and saves it to zhe cookie.

If more then is set in var _limit_logins_in_three_minutes, then the user will get a black-cookie for 3 minutes and an error message

Info

  • access - private

Method messageOnEnter (line 210)

bool messageOnEnter( )

The login was sucessfull, so send a message on entrance to the system and close db connection

Info

Method userInChatNow (line 182)

bool userInChatNow( string $user)

Checks if this username is occupied now

Parameters

  • string $user: Username

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::$_allowed_privates_in_chat_win -

EtChatConfig::$_allowed_privates_in_separate_win -

EtChatConfig::$_allow_nick_registration -

EtChatConfig::$_database -

EtChatConfig::$_interval_for_inactivity -

EtChatConfig::$_limit_logins_in_three_minutes -

EtChatConfig::$_messages_shown_on_entrance -

EtChatConfig::$_prefix -

EtChatConfig::$_show_history_all_user -

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 Thu, 05 May 2011 14:05:55 +0000 by phpDocumentor 1.4.3