PHP Class Shanty_Mongo_Connection

Author: Coen Hyde
Inheritance: extends Mongo
Mostrar archivo Open project: coen-hyde/shanty-mongo Class Usage Examples

Protected Properties

Property Type Description
$_availableOptions
$_connectionInfo

Public Methods

Method 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 method

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

getActualConnectionString() public method

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
return array

getAvailableOptions() public static method

Get available options
public static getAvailableOptions ( ) : array
return array

getConnectionInfo() public method

Get some info about this connection
public getConnectionInfo ( ) : array
return array

getDatabase() public method

Get the database this connection is connection to
public getDatabase ( ) : string
return string

getHosts() public method

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

parseConnectionString() public static method

Parse the connection string
public static parseConnectionString ( $connectionString ) : array
$connectionString
return array

parseHostString() public static method

Parse a host string
public static parseHostString ( $hostString ) : array
$hostString
return array

Property Details

$_availableOptions protected_oe static_oe property

protected static $_availableOptions

$_connectionInfo protected_oe property

protected $_connectionInfo