PHP Class Shanty_Mongo_Connection

Author: Coen Hyde
Inheritance: extends Mongo
Afficher le fichier Open project: coen-hyde/shanty-mongo Class Usage Examples

Protected Properties

Свойство Type Description
$_availableOptions
$_connectionInfo

Méthodes publiques

Méthode Description
__construct ( $connectionString = null, array $options = [] )
getActualConnectionString ( ) : array Get the actual connection string used for this connection. This differs from __toString in that __toString returns a string representation of the connection, not the connection string used
getAvailableOptions ( ) : array Get available options
getConnectionInfo ( ) : array Get some info about this connection
getDatabase ( ) : string Get the database this connection is connection to
getHosts ( ) : array Get a list of the hosts this connection is connection to
parseConnectionString ( $connectionString ) : array Parse the connection string
parseHostString ( $hostString ) : array Parse a host string

Method Details

__construct() public méthode

public __construct ( $connectionString = null, array $options = [] )
$options array

getActualConnectionString() public méthode

Get the actual connection string used for this connection. This differs from __toString in that __toString returns a string representation of the connection, not the connection string used
public getActualConnectionString ( ) : array
Résultat array

getAvailableOptions() public static méthode

Get available options
public static getAvailableOptions ( ) : array
Résultat array

getConnectionInfo() public méthode

Get some info about this connection
public getConnectionInfo ( ) : array
Résultat array

getDatabase() public méthode

Get the database this connection is connection to
public getDatabase ( ) : string
Résultat string

getHosts() public méthode

Get a list of the hosts this connection is connection to
public getHosts ( ) : array
Résultat array

parseConnectionString() public static méthode

Parse the connection string
public static parseConnectionString ( $connectionString ) : array
$connectionString
Résultat array

parseHostString() public static méthode

Parse a host string
public static parseHostString ( $hostString ) : array
$hostString
Résultat array

Property Details

$_availableOptions protected_oe static_oe property

protected static $_availableOptions

$_connectionInfo protected_oe property

protected $_connectionInfo