public function getDatabases() {
		$client = $this->getClient();

		if ($this->_profilerEnabled) {
			$event = $this->getProfiler()->startRead('Databases list');
		}

		$databasesRaw = $client->listDBs();

		if ($this->_profilerEnabled) {
			$event->stopSuccess();
		}

		$databases = [];

		foreach ($databasesRaw['databases'] as $database) {
			$databases[] = $database['name'];
		}

		return $databases;
	}
public function getDatabases() {
		$client = $this->getClient();

		if ($this->_profilerEnabled) {
			$event = $this->getProfiler()->startRead('Databases list');
		}

		$databasesRaw = $client->listDBs();

		if ($this->_profilerEnabled) {
			$event->stopSuccess();
		}

		$databases = [];

		foreach ($databasesRaw['databases'] as $database) {
			$databases[] = $database['name'];
		}

		return $databases;
	}
public function getDatabases ( ) { $ client = $ this -> getClient ( ) ; if ( $ this -> _profilerEnabled ) { $ event = $ this -> getProfiler ( ) -> startRead ( 'Databases list' ) ; } $ databasesRaw = $ client -> listDBs ( ) ; if ( $ this -> _profilerEnabled ) { $ event -> stopSuccess ( ) ; } $ databases = [ ] ; foreach ( $ databasesRaw [ 'databases' ] as $ database ) { $ databases [ ] = $ database [ 'name' ] ; } return $ databases ; }
Get a databases list

@return array
Get a databases list