public function isConnected($which_connection='')
    {
        if ($which_connection == '') {
            $which_connection=$this->default_db;
        }
        if (isset($this->connections[$which_connection]) && 
            is_object($this->connections[$which_connection])) {
            return true;
        } else {
            return false;
        }
    }
public function isConnected($which_connection='')
    {
        if ($which_connection == '') {
            $which_connection=$this->default_db;
        }
        if (isset($this->connections[$which_connection]) && 
            is_object($this->connections[$which_connection])) {
            return true;
        } else {
            return false;
        }
    }
public function isConnected ( $ which_connection = '' ) { if ( $ which_connection == '' ) { $ which_connection = $ this -> default_db ; } if ( isset ( $ this -> connections [ $ which_connection ] ) && is_object ( $ this -> connections [ $ which_connection ] ) ) { return true ; } else { return false ; } }
Verify object is connected to the database
@param $which_connection [string] database name (optional)
@return [boolean]
Verify object is connected to the database