La classe MongoDB\BSON\Regex

(mongodb >=1.0.0)

Introduction

Type BSON pour un modèle d'expression régulière et » flags facultatif.

Note: Ce type BSON est principalement utilisé lors de l'interrogation de la base de données. Alternativement, l'opérateur de requête » $regex peut être utilisé.

Synopsis de la classe

final MongoDB\BSON\Regex implements MongoDB\BSON\RegexInterface , MongoDB\BSON\Type , Serializable , JsonSerializable {
/* Méthodes */
final public __construct ( string $pattern [, string $flags = "" ] )
final public getFlags ( void ) : string
final public getPattern ( void ) : string
final public jsonSerialize ( void ) : mixed
final public serialize ( void ) : string
final public __toString ( void ) : string
final public unserialize ( string $serialized ) : void
}

Historique

Version Description
1.3.0 Implémente MongoDB\BSON\RegexInterface.
1.2.0 Implémente Serializable et JsonSerializable.

Sommaire