public function getDatabase($databaseName = null) {
		if ($databaseName === null) {
			$databaseName = $this->dbname;
		}

		if (! isset($this->databases[$databaseName])) {
			$this->databases[$databaseName] = $this->getClient()->selectDB($databaseName);
		}

		return $this->databases[$databaseName];
	}
public function getDatabase($databaseName = null) {
		if ($databaseName === null) {
			$databaseName = $this->dbname;
		}

		if (! isset($this->databases[$databaseName])) {
			$this->databases[$databaseName] = $this->getClient()->selectDB($databaseName);
		}

		return $this->databases[$databaseName];
	}
public function getDatabase ( $ databaseName = null ) { if ( $ databaseName === null ) { $ databaseName = $ this -> dbname ; } if ( ! isset ( $ this -> databases [ $ databaseName ] ) ) { $ this -> databases [ $ databaseName ] = $ this -> getClient ( ) -> selectDB ( $ databaseName ) ; } return $ this -> databases [ $ databaseName ] ; }
Get the database

@param  string $databaseName
@return MongoDB
Get the database