PHP 클래스 Shanty_Mongo_Connection

저자: Coen Hyde
상속: extends Mongo
파일 보기 프로젝트 열기: coen-hyde/shanty-mongo 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$_availableOptions
$_connectionInfo

공개 메소드들

메소드 설명
__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

메소드 상세

__construct() 공개 메소드

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

getActualConnectionString() 공개 메소드

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
리턴 array

getAvailableOptions() 공개 정적인 메소드

Get available options
public static getAvailableOptions ( ) : array
리턴 array

getConnectionInfo() 공개 메소드

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

getDatabase() 공개 메소드

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

getHosts() 공개 메소드

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

parseConnectionString() 공개 정적인 메소드

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

parseHostString() 공개 정적인 메소드

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

프로퍼티 상세

$_availableOptions 보호되어 있는 정적으로 프로퍼티

protected static $_availableOptions

$_connectionInfo 보호되어 있는 프로퍼티

protected $_connectionInfo