/**
* Disconnects from the Oracle Matrix DB
*
* @return void
* @access private
*/
function _disconnectFromMatrixDatabase()
{
    while (TRUE) {
        try {
            $conn_id = MatrixDAL::getCurrentDbId();
        } catch (Exception $e) {
            // run out of connections, that's it
            break;
        }
        MatrixDAL::restoreDb();
        MatrixDAL::dbClose($conn_id);
    }
}
/**
* Disconnects from the Oracle Matrix DB
*
* @return void
* @access private
*/
function _disconnectFromMatrixDatabase()
{
    $conn_id = MatrixDAL::getCurrentDbId();
    if (isset($conn_id) && !empty($conn_id)) {
        MatrixDAL::restoreDb();
        MatrixDAL::dbClose($conn_id);
    }
    //end if
}