Method |
Description |
|
__construct ( string $id = null ) |
Creates a new id |
|
__get ( string $name ) : null | string |
|
|
__isset ( string $name ) : boolean |
|
|
__set ( string $name, mixed $value ) |
|
|
__set_state ( array $props ) : MongoId |
(PECL mongo >= 1.0.8)
Create a dummy MongoId |
|
__toString ( ) : string |
Returns a hexidecimal representation of this id |
|
__unset ( string $name ) |
|
|
getHostname ( ) : string |
Gets the hostname being used for this machine's ids |
|
getInc ( ) : integer |
Gets the incremented value to create this id |
|
getPID ( ) : integer |
(PECL mongo >= 1.0.11)
Gets the process ID |
|
getTimestamp ( ) : integer |
(PECL mongo >= 1.0.1)
Gets the number of seconds since the epoch that this id was created |
|
isValid ( mixed $value ) : boolean |
Check if a value is a valid ObjectId |
|
jsonSerialize ( ) : stdClass |
|
|
serialize ( ) : string |
|
|
toBSONType ( ) : MongoDB\BSON\ObjectID |
Converts this MongoId to the new BSON ObjectID type |
|
unserialize ( string $serialized ) |
|
|