|
Moodle PHP Documentation 4.1
Moodle 4.1.19+ (Build: 20250711) (5f47dc23ffc)
|
Public Member Functions | |
| __construct (string $databaseName, string $collectionName, array $collectionOptions, array $options=[]) | |
| Constructs a collMod command. | |
| execute (Server $server) | |
| Execute the operation. | |
| MongoDB\Operation\ModifyCollection::__construct | ( | string | $databaseName, |
| string | $collectionName, | ||
| array | $collectionOptions, | ||
| array | $options = [] ) |
Constructs a collMod command.
Supported options:
comment (mixed): BSON value to attach as a comment to this command.
This is not supported for servers versions < 4.4.
| string | $databaseName | Database name |
| string | $collectionName | Collection or view to modify |
| array | $collectionOptions | Collection or view options to assign |
| array | $options | Command options |
| InvalidArgumentException | for parameter/option parsing errors |
| MongoDB\Operation\ModifyCollection::execute | ( | Server | $server | ) |
Execute the operation.
| array|object | Command result document |
| DriverRuntimeException | for other driver errors (e.g. connection errors) |
Implements MongoDB\Operation\Executable.