MongoId::__set_state
(PECL mongo >= 1.0.8)
MongoId::__set_state — Create a dummy MongoId
This extension that defines this method is deprecated. Instead, the MongoDB extension should be used. There is no equivalent for this method in the new extension.
Описание
This function is only used by PHP internally, it shouldn't need to ever be called by the user.
It is identical to the function:
<?php
public static function __set_state($props) {
return new MongoId("000000000000000000000000");
}
?>
Список параметров
-
props
-
Theoretically, an array of properties used to create the new id. However, as MongoId instances have no properties, this is not used.
Возвращаемые значения
A new id with the value "000000000000000000000000".
- PHP Руководство
- Функции по категориям
- Индекс функций
- Справочник функций
- Расширения для работы с базами данных
- Расширения для работы с базами данных отдельных производителей
- MongoDB
- Types
- Функция MongoId::__construct() - Creates a new id
- Функция MongoId::getHostname() - Gets the hostname being used for this machine's ids
- Функция MongoId::getInc() - Gets the incremented value to create this id
- Функция MongoId::getPID() - Gets the process ID
- Функция MongoId::getTimestamp() - Gets the number of seconds since the epoch that this id was created
- Функция MongoId::isValid() - Check if a value is a valid ObjectId
- Функция MongoId::__set_state() - Create a dummy MongoId
- Функция MongoId::__toString() - Returns a hexidecimal representation of this id
Коментарии
404 Not Found