MongoDB\Driver
PHP Manual

La classe MongoDB\Driver\ReadPreference

(mongodb >=1.0.0)

Introduction

Synopsis de la classe

final MongoDB\Driver\ReadPreference {
/* Constantes */
const integer RP_PRIMARY = 1 ;
const integer RP_PRIMARY_PREFERRED = 5 ;
const integer RP_SECONDARY = 2 ;
const integer RP_SECONDARY_PREFERRED = 6 ;
const integer RP_NEAREST = 10 ;
/* Méthodes */
final public object bsonSerialize ( void )
final public __construct ( string $readPreference [, array $tagSets ] )
final public integer getMode ( void )
final public array getTagSets ( void )
}

Constantes pré-définies

MongoDB\Driver\ReadPreference::RP_PRIMARY

MongoDB\Driver\ReadPreference::RP_PRIMARY_PREFERRED

MongoDB\Driver\ReadPreference::RP_SECONDARY

MongoDB\Driver\ReadPreference::RP_SECONDARY_PREFERRED

MongoDB\Driver\ReadPreference::RP_NEAREST

Sommaire


MongoDB\Driver
PHP Manual