Moodle PHP Documentation 4.1
Moodle 4.1.11 (Build: 20240610) (c8c84b4af18)
MongoDB\Model\IndexInput Class Reference
Inheritance diagram for MongoDB\Model\IndexInput:

Public Member Functions

 __construct (array $index)
 
 __toString ()
 Return the index name.
 
 bsonSerialize ()
 Serialize the index information to BSON for index creation.
 

Constructor & Destructor Documentation

◆ __construct()

MongoDB\Model\IndexInput::__construct ( array $index)
Parameters
array$indexIndex specification
Exceptions
InvalidArgumentException

Member Function Documentation

◆ bsonSerialize()

MongoDB\Model\IndexInput::bsonSerialize ( )

Serialize the index information to BSON for index creation.

See also
MongoDB\Collection\createIndexes()
https://php.net/mongodb-bson-serializable.bsonserialize

The documentation for this class was generated from the following file: