BlueSpice MediaWiki master
|
Classes | |
class | Binary |
class | Decimal128 |
class | Javascript |
class | MaxKey |
class | MinKey |
class | ObjectID |
class | Regex |
class | Timestamp |
class | UTCDateTime |
interface | Persistable |
interface | Serializable |
interface | Unserializable |
interface | Type |
Functions | |
fromJSON ($json) | |
fromPHP ($value) | |
toJSON ($bson) | |
toPHP ($bson, array $typeMap) | |
MongoDB\BSON\fromJSON | ( | $json | ) |
Returns the BSON representation of a JSON value Converts an extended JSON string to its BSON representation. string $json JSON value to be converted. string The serialized BSON document as a binary string. UnexpectedValueException if the JSON value cannot be converted to BSON (e.g. due to a syntax error).
MongoDB\BSON\fromPHP | ( | $value | ) |
Returns the BSON representation of a PHP value Serializes a PHP array or object (e.g. document) to its BSON representation. The returned binary string will describe a BSON document. array|object $value PHP value to be serialized. string The serialized BSON document as a binary string UnexpectedValueException if the PHP value cannot be converted to BSON.
MongoDB\BSON\toJSON | ( | $bson | ) |
Returns the JSON representation of a BSON value Converts a BSON string to its extended JSON representation. string $bson BSON value to be converted string The converted JSON value. https://docs.mongodb.org/manual/reference/mongodb-extended-json/ UnexpectedValueException if the input did not contain exactly one BSON document
MongoDB\BSON\toPHP | ( | $bson, | |
array | $typeMap | ||
) |
Returns the PHP representation of a BSON value Unserializes a BSON document (i.e. binary string) to its PHP representation. The typeMap paramater may be used to control the PHP types used for converting BSON arrays and documents (both root and embedded). string $bson BSON value to be unserialized. array $typeMap object The unserialized PHP value UnexpectedValueException if the input did not contain exactly one BSON document. InvalidArgumentException if a class in the type map cannot be instantiated or does not implement MongoDB.