MongoDatabase() public static method

Generic function used to gain a new PDO connection to the database.
public static MongoDatabase ( ) : PDO
return PDO
 /**
  * This function returns an initilised \PDO object that
  * can be used by the calling class to access the data
  * store. The implementation of generating the \PDO
  * object is switched on the DataContentType property
  * of the $request parameter
  * 
  * @param \Swiftriver\Core\Analytics\AnalyticsRequest $request
  * @return \PDO
  */
 public function PDOConnection($request)
 {
     switch ($request->DataContextType) {
         case "\\Swiftriver\\Core\\Modules\\DataContext\\MySql_V2\\DataContext":
             return \Swiftriver\Core\Modules\DataContext\MySql_V2\DataContext::PDOConnection();
             break;
         case "\\Swiftriver\\Core\\Modules\\DataContext\\Mongo_V1\\DataContext":
             return \Swiftriver\Core\Modules\DataContext\Mongo_V1\DataContext::MongoDatabase();
             break;
         default:
             return null;
     }
 }