diff options
author | Philip Nicolcev <frugen@gmail.com> | 2016-04-30 18:06:14 -0400 |
---|---|---|
committer | Philip Nicolcev <frugen@gmail.com> | 2016-04-30 18:06:14 -0400 |
commit | cf0e5d6e22e34dab8fd8499064eddb8bd901a79b (patch) | |
tree | 60404af80ca100233428b23c573001850c3c7d41 /chat/lib/class/AJAXChatDataBase.php | |
parent | 6a4c92984fbe42e4633a6a65792847973f7d36da (diff) | |
download | AJAX-Chat-cf0e5d6e22e34dab8fd8499064eddb8bd901a79b.zip AJAX-Chat-cf0e5d6e22e34dab8fd8499064eddb8bd901a79b.tar.gz AJAX-Chat-cf0e5d6e22e34dab8fd8499064eddb8bd901a79b.tar.bz2 |
CS fixes, use public/protected instead of var
Diffstat (limited to 'chat/lib/class/AJAXChatDataBase.php')
-rw-r--r-- | chat/lib/class/AJAXChatDataBase.php | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/chat/lib/class/AJAXChatDataBase.php b/chat/lib/class/AJAXChatDataBase.php index 3b4d07f..df50b86 100644 --- a/chat/lib/class/AJAXChatDataBase.php +++ b/chat/lib/class/AJAXChatDataBase.php @@ -10,7 +10,8 @@ // Class to initialize the DataBase connection: class AJAXChatDataBase { - var $_db; + protected + $_db; function __construct(&$dbConnectionConfig) { switch($dbConnectionConfig['type']) { @@ -67,9 +68,9 @@ class AJAXChatDataBase { // Method to retrieve the current DataBase name: function getName() { - return $this->_db->getName(); + return $this->_db->getName(); //If your database has hyphens ( - ) in it, try using this instead: - //return '`'.$this->_db->getName().'`'; + //return '`'.$this->_db->getName().'`'; } // Method to retrieve the last inserted ID: |