summaryrefslogtreecommitdiffstats
path: root/chat/lib/class
diff options
context:
space:
mode:
Diffstat (limited to 'chat/lib/class')
-rw-r--r--chat/lib/class/AJAXChat.php2
-rw-r--r--chat/lib/class/AJAXChatDataBase.php2
-rw-r--r--chat/lib/class/AJAXChatHTTPHeader.php2
-rw-r--r--chat/lib/class/AJAXChatLanguage.php2
-rw-r--r--chat/lib/class/AJAXChatMySQLDataBase.php2
-rw-r--r--chat/lib/class/AJAXChatMySQLQuery.php2
-rw-r--r--chat/lib/class/AJAXChatMySQLiDataBase.php2
-rw-r--r--chat/lib/class/AJAXChatMySQLiQuery.php2
-rw-r--r--chat/lib/class/AJAXChatTemplate.php2
9 files changed, 9 insertions, 9 deletions
diff --git a/chat/lib/class/AJAXChat.php b/chat/lib/class/AJAXChat.php
index 1729f2e..2cf7aa1 100644
--- a/chat/lib/class/AJAXChat.php
+++ b/chat/lib/class/AJAXChat.php
@@ -24,7 +24,7 @@ class AJAXChat {
var $_onlineUsersData;
var $_bannedUsersData;
- function AJAXChat() {
+ function __construct() {
$this->initialize();
}
diff --git a/chat/lib/class/AJAXChatDataBase.php b/chat/lib/class/AJAXChatDataBase.php
index 2cfe621..2143c5a 100644
--- a/chat/lib/class/AJAXChatDataBase.php
+++ b/chat/lib/class/AJAXChatDataBase.php
@@ -12,7 +12,7 @@ class AJAXChatDataBase {
var $_db;
- function AJAXChatDataBase(&$dbConnectionConfig) {
+ function __construct(&$dbConnectionConfig) {
switch($dbConnectionConfig['type']) {
case 'mysqli':
$this->_db = new AJAXChatDatabaseMySQLi($dbConnectionConfig);
diff --git a/chat/lib/class/AJAXChatHTTPHeader.php b/chat/lib/class/AJAXChatHTTPHeader.php
index f7cff10..7340bfc 100644
--- a/chat/lib/class/AJAXChatHTTPHeader.php
+++ b/chat/lib/class/AJAXChatHTTPHeader.php
@@ -14,7 +14,7 @@ class AJAXChatHTTPHeader {
var $_constant;
var $_noCache;
- function AJAXChatHTTPHeader($encoding='UTF-8', $contentType=null, $noCache=true) {
+ function __construct($encoding='UTF-8', $contentType=null, $noCache=true) {
if($contentType) {
$this->_contentType = $contentType.'; charset='.$encoding;
$this->_constant = true;
diff --git a/chat/lib/class/AJAXChatLanguage.php b/chat/lib/class/AJAXChatLanguage.php
index ce29450..b197247 100644
--- a/chat/lib/class/AJAXChatLanguage.php
+++ b/chat/lib/class/AJAXChatLanguage.php
@@ -15,7 +15,7 @@ class AJAXChatLanguage {
var $_strictMode;
var $_langCode;
- function AJAXChatLanguage($availableLangCodes, $defaultLangCode, $langCode=null, $strictMode=false) {
+ function __construct($availableLangCodes, $defaultLangCode, $langCode=null, $strictMode=false) {
$this->_regExpAcceptLangCode = '/^([a-z]{1,8}(?:-[a-z]{1,8})*)(?:;\s*q=(0(?:\.[0-9]{1,3})?|1(?:\.0{1,3})?))?$/i';
$this->_availableLangCodes = $availableLangCodes;
$this->_defaultLangCode = $defaultLangCode;
diff --git a/chat/lib/class/AJAXChatMySQLDataBase.php b/chat/lib/class/AJAXChatMySQLDataBase.php
index 4ed6020..6dca348 100644
--- a/chat/lib/class/AJAXChatMySQLDataBase.php
+++ b/chat/lib/class/AJAXChatMySQLDataBase.php
@@ -15,7 +15,7 @@ class AJAXChatDataBaseMySQL {
var $_error = '';
var $_dbName;
- function AJAXChatDataBaseMySQL(&$dbConnectionConfig) {
+ function __construct(&$dbConnectionConfig) {
$this->_connectionID = $dbConnectionConfig['link'];
$this->_dbName = $dbConnectionConfig['name'];
}
diff --git a/chat/lib/class/AJAXChatMySQLQuery.php b/chat/lib/class/AJAXChatMySQLQuery.php
index 188a1f5..f2f3fd4 100644
--- a/chat/lib/class/AJAXChatMySQLQuery.php
+++ b/chat/lib/class/AJAXChatMySQLQuery.php
@@ -17,7 +17,7 @@ class AJAXChatMySQLQuery {
var $_error = '';
// Constructor:
- function AJAXChatMySQLQuery($sql, $connectionID = null) {
+ function __construct($sql, $connectionID = null) {
$this->_sql = trim($sql);
$this->_connectionID = $connectionID;
if($this->_connectionID) {
diff --git a/chat/lib/class/AJAXChatMySQLiDataBase.php b/chat/lib/class/AJAXChatMySQLiDataBase.php
index 9c64a37..9bc611e 100644
--- a/chat/lib/class/AJAXChatMySQLiDataBase.php
+++ b/chat/lib/class/AJAXChatMySQLiDataBase.php
@@ -15,7 +15,7 @@ class AJAXChatDataBaseMySQLi {
var $_error = '';
var $_dbName;
- function AJAXChatDataBaseMySQLi(&$dbConnectionConfig) {
+ function __construct(&$dbConnectionConfig) {
$this->_connectionID = $dbConnectionConfig['link'];
$this->_dbName = $dbConnectionConfig['name'];
}
diff --git a/chat/lib/class/AJAXChatMySQLiQuery.php b/chat/lib/class/AJAXChatMySQLiQuery.php
index a55d5f8..f81afd8 100644
--- a/chat/lib/class/AJAXChatMySQLiQuery.php
+++ b/chat/lib/class/AJAXChatMySQLiQuery.php
@@ -17,7 +17,7 @@ class AJAXChatMySQLiQuery {
var $_error = '';
// Constructor:
- function AJAXChatMySQLiQuery($sql, $connectionID) {
+ function __construct($sql, $connectionID) {
$this->_sql = trim($sql);
$this->_connectionID = $connectionID;
$this->_result = $this->_connectionID->query($this->_sql);
diff --git a/chat/lib/class/AJAXChatTemplate.php b/chat/lib/class/AJAXChatTemplate.php
index e4d22d8..16e53a7 100644
--- a/chat/lib/class/AJAXChatTemplate.php
+++ b/chat/lib/class/AJAXChatTemplate.php
@@ -18,7 +18,7 @@ class AJAXChatTemplate {
var $_parsedContent;
// Constructor:
- function AJAXChatTemplate(&$ajaxChat, $templateFile, $contentType=null) {
+ function __construct(&$ajaxChat, $templateFile, $contentType=null) {
$this->ajaxChat = $ajaxChat;
$this->_regExpTemplateTags = '/\[(\w+?)(?:(?:\/)|(?:\](.+?)\[\/\1))\]/s';
$this->_templateFile = $templateFile;