DbTool: Add method isConnected()

refs #9460
This commit is contained in:
Johannes Meyer 2015-08-18 16:18:25 +02:00
parent a0fce449a9
commit 41ebb49c58
1 changed files with 10 additions and 0 deletions

View File

@ -204,6 +204,16 @@ class DbTool
}
}
/**
* Return whether a connection with the server has been established
*
* @return bool
*/
public function isConnected()
{
return $this->pdoConn !== null;
}
/**
* Establish a connection with the database or just the server by omitting the database name
*