PHP 클래스 MongoRegex

파일 보기 프로젝트 열기: alcaeus/mongo-php-adapter 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$flags string
$regex string

공개 메소드들

메소드 설명
__construct ( string | MongoDB\BSON\Regex $regex ) Creates a new regular expression.
__toString ( ) : string Returns a string representation of this regular expression.
toBSONType ( ) : MongoDB\BSON\Regex Converts this MongoRegex to the new BSON Regex type

메소드 상세

__construct() 공개 메소드

Creates a new regular expression.
public __construct ( string | MongoDB\BSON\Regex $regex )
$regex string | MongoDB\BSON\Regex Regular expression string of the form /expr/flags

__toString() 공개 메소드

Returns a string representation of this regular expression.
public __toString ( ) : string
리턴 string This regular expression in the form "/expr/flags".

toBSONType() 공개 메소드

Converts this MongoRegex to the new BSON Regex type
public toBSONType ( ) : MongoDB\BSON\Regex
리턴 MongoDB\BSON\Regex

프로퍼티 상세

$flags 공개적으로 프로퍼티

public string $flags
리턴 string

$regex 공개적으로 프로퍼티

public string $regex
리턴 string