PHP Class MongoRegex

Afficher le fichier Open project: alcaeus/mongo-php-adapter Class Usage Examples

Méthodes publiques

Свойство Type Description
$flags string
$regex string

Méthodes publiques

Méthode Description
__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

Method Details

__construct() public méthode

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() public méthode

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

toBSONType() public méthode

Converts this MongoRegex to the new BSON Regex type
public toBSONType ( ) : MongoDB\BSON\Regex
Résultat MongoDB\BSON\Regex

Property Details

$flags public_oe property

public string $flags
Résultat string

$regex public_oe property

public string $regex
Résultat string