src/Titon/Db/Mongo/MongoDriver.php
public function getServer() {
        $server = 'mongodb://';

        if ($servers = $this->getConfig('servers')) {
            $server .= implode(',', $servers);

        } else {
            if ($socket = $this->getSocket()) {
                $server .= $socket;
            } else {
                $server .= $this->getHost() . ':' . $this->getPort();
            }
        }

        return $server;
    }
public function getServer() {
        $server = 'mongodb://';

        if ($servers = $this->getConfig('servers')) {
            $server .= implode(',', $servers);

        } else {
            if ($socket = $this->getSocket()) {
                $server .= $socket;
            } else {
                $server .= $this->getHost() . ':' . $this->getPort();
            }
        }

        return $server;
    }
public function getServer ( ) { $ server = 'mongodb://' ; if ( $ servers = $ this -> getConfig ( 'servers' ) ) { $ server .= implode ( ',' , $ servers ) ; } else { if ( $ socket = $ this -> getSocket ( ) ) { $ server .= $ socket ; } else { $ server .= $ this -> getHost ( ) . ':' . $ this -> getPort ( ) ; } } return $ server ; }
Build and return the server connection.

@return string
Build and return the server connection .