Results of 1 - 10 of about 65 for ObjectId (0.006 sec.)
- The MongoDB\BSON\ObjectId class | PHP 8.3 12539
- The MongoDB\BSON\ObjectId class (mongodb >=1.0.0) はじめに BSON type for an » ObjectId . The value consists of 12 bytes, where the first four bytes are a timestamp that reflect the ObjectId's creation. Specifically, the value consists of: a
... id field that acts as a primary key. If an inserted document omits the _id field, the extension automatically generates an ObjectId for the _id field. Using ObjectIds for the _id field provides the following additional benefits: The creation time of the ... ObjectId may be accessed using the MongoDB\BSON\ObjectId::getTimestamp() method. Sorting on an _id field that stores ObjectId values is roughly equivalent to sorting by creation t ... ime. クラス概要 final class MongoDB\BSON\ObjectId implements MongoDB\BSON\ObjectIdInterface , MongoDB\BSON\Type , JsonSerializable , Stringable { /* メソッド */ final publi ...
-
https://man.mtool.work/php/8.3/class.mongodb-bson-objectid.html
- MongoDB\BSON\ObjectId::__construct — Construct a new ObjectId | PHP 8.3 12209
- MongoDB\BSON\ObjectId::__construct (mongodb >=1.0.0) MongoDB\BSON\ObjectId::__construct — Construct a new ObjectId 説明 final public function MongoDB\BSON\ObjectId::__construct ( ? string $id = null ) パラメータ id ( string ) A 24-character
... hexadecimal string. If not provided, the extension will generate an ObjectId. エラー / 例外 Throws MongoDB\Driver\Exception\InvalidArgumentException on argument parsing errors. Throws MongoDB\Driver\ ... Exception\InvalidArgumentException if id is not a 24-character hexadecimal string. 例 例1 MongoDB\BSON\ObjectId::__construct() example <?php var_dump (new MongoDB\BSON\ObjectId ()); var_dump (new MongoDB\BSON\ObjectId ( '0000000000000 ... 00000000001' )); ?> 上の例の出力は、 たとえば以下のようになります。 object(MongoDB\BSON\ObjectId)#1 (1) { ["oid"]=> string(24) "56732d3dda14d81214634921" } object(MongoDB\BSON\ObjectId)#1 (1) { ["oid"]=> string(24) "000 ...
-
https://man.mtool.work/php/8.3/mongodb-bson-objectid.construct.html
- MongoDB\BSON\ObjectId::__toString — Returns the hexadecimal representation of t... 12023
- MongoDB\BSON\ObjectId::__toString (mongodb >=1.0.0) MongoDB\BSON\ObjectId::__toString — Returns the hexadecimal representation of this ObjectId 説明 final public function MongoDB\BSON\ObjectId::__toString (): string パラメータ この関数にはパ
... ラメータはありません。 戻り値 Returns the hexadecimal representation of this ObjectId. 例 例1 MongoDB\BSON\ObjectId::__toString() example <?php var_dump ((string) new MongoDB\BSON\ObjectId ()); var_dump ((str ... ing) new MongoDB\BSON\ObjectId ( '000000000000000000000001' )); ?> 上の例の出力は、 たとえば以下のようになります。 string(24) "56731b49da14d8747d701211" ... string(24) "000000000000000000000001" 参考 » ObjectId Reference » BSON Types: ObjectId 他のマニュアルの関連ページ DuckDB Blob Functions DuckDB Geometry Functions DuckDB Literal ...
-
https://man.mtool.work/php/8.3/mongodb-bson-objectid.tostring.html
- MongoDB\BSON\ObjectId::getTimestamp — Returns the timestamp component of this O... 11937
- MongoDB\BSON\ObjectId::getTimestamp (mongodb >=1.2.0) MongoDB\BSON\ObjectId::getTimestamp — Returns the timestamp component of this ObjectId 説明 final public function MongoDB\BSON\ObjectId::getTimestamp (): int The timestamp component of a
... n ObjectId is its most significant 32 bits, which denotes the number of seconds since the Unix epoch. This value is read as an unsign ... the unsigned decimal value. パラメータ この関数にはパラメータはありません。 戻り値 Returns the timestamp component of this ObjectId. エラー / 例外 Throws MongoDB\Driver\Exception\InvalidArgumentException on argument parsing errors. 例 例1 MongoDB\BSON\Ob ... jectId::getTimestamp() example <?php var_dump ((new MongoDB\BSON\ObjectId ())-> getTimestamp ()); var_dump ((new MongoDB\BSON\ObjectId ( '0000002a0000000000000000' ))-> getTimestamp ()); ?> 上の例 ...
-
https://man.mtool.work/php/8.3/mongodb-bson-objectid.gettimestamp.html
- SNMP::get — SNMP オブジェクトを取得する | PHP 8.3 9432
- SNMP::get (PHP 5 >= 5.4.0, PHP 7, PHP 8) SNMP::get — SNMP オブジェクトを取得する 説明 public function SNMP::get ( array | string $objectId , bool $preserveKeys = false ): mixed objectId で指定した SNMP オブジェクトを GET クエリで取得します。
... パラメータ objectId が文字列の場合は SNMP::get() は SNMP オブジェクトを文字列で返します。 objectId が配列の場合は、要求されたすべての SNMP オブ ... ジェクトを SNMP オブジェクトの id とその値の連想配列で返します。 objectId SNMP オブジェクト (OID)。 preserveKeys objectId が配列のときに preserveKeys を true にすると、結果のキーは完全に objectId ... となります。 それ以外の場合は SNMP::oid_output_format プロパティを使ってキーの形式を判断します。 戻り値 objectId で指定した SNMP オブジェクトの値を objectId にあわせて文字列か配列で返します。 エラー時には false を返します。 エラー / 例 ...
-
https://man.mtool.work/php/8.3/snmp.get.html
- MongoDB\Driver\BulkWrite::insert — Add an insert operation to the bulk | PHP 8.... 8774
- MongoDB\Driver\BulkWrite::insert (mongodb >=1.0.0) MongoDB\Driver\BulkWrite::insert — Add an insert operation to the bulk 説明 public function MongoDB\Driver\BulkWrite::insert ( array | object $document ): mixed Adds an insert operation to
... ocument to insert. 戻り値 Returns the _id of the inserted document. If the document did not have an _id , the MongoDB\BSON\ObjectId generated for the insert will be returned. エラー / 例外 Throws MongoDB\Driver\Exception\InvalidArgumentException on argum ... 1.3.0 The _id of the inserted document is always returned. Previously, the method only returned a value if a MongoDB\BSON\ObjectId was generated. 例 例1 MongoDB\Driver\BulkWrite::insert() example <?php $bulk = new MongoDB\Driver\BulkWrite ; $doc1 = [ 'x ... ' => 1 ]; $doc2 = [ '_id' => 'custom-id' , 'x' => 2 ]; $doc3 = [ '_id' => new MongoDB\BSON\ObjectId ( '0123456789abcdef01234567' ), 'x' => 3 ]; $id1 = $bulk -> insert ( $doc1 ); $id2 = $bulk -> insert ( $doc2 ); $id3 = $bu ...
-
https://man.mtool.work/php/8.3/mongodb-driver-bulkwrite.insert.html
- MongoDB\Driver\BulkWriteCommand::insertOne — Add an insertOne operation | PHP 8... 8359
- MongoDB\Driver\BulkWriteCommand::insertOne (mongodb >=2.1.0) MongoDB\Driver\BulkWriteCommand::insertOne — Add an insertOne operation 説明 public function MongoDB\Driver\BulkWriteCommand::insertOne ( string $namespace , array | object $docum
... ocument to insert. 戻り値 Returns the _id of the inserted document. If the document did not have an _id , the MongoDB\BSON\ObjectId generated for the insert will be returned. エラー / 例外 Throws MongoDB\Driver\Exception\InvalidArgumentException on argum ... \BulkWriteCommand ; $doc1 = [ 'x' => 1 ]; $doc2 = [ '_id' => 'custom-id' , 'x' => 2 ]; $doc3 = [ '_id' => new MongoDB\BSON\ObjectId ( '0123456789abcdef01234567' ), 'x' => 3 ]; $id1 = $bulk -> insertOne ( 'db.coll' , $doc1 ); $id2 = $bulk -> insertOne ( ' ... lt = $manager -> executeBulkWriteCommand ( $bulk ); ?> 上の例の出力は、 たとえば以下のようになります。 object(MongoDB\BSON\ObjectId)#3 (1) { ["oid"]=> string(24) "67f58058d1a0aa2fd80d55d0" } string(9) "custom-id" object(MongoDB\BSON\ObjectId)#4 (1) { ["o ...
-
https://man.mtool.work/php/8.3/mongodb-driver-bulkwritecommand.insertone.html
- MongoDB\BSON\ObjectId::jsonSerialize — Returns a representation that can be con... 8259
- MongoDB\BSON\ObjectId::jsonSerialize (mongodb >=1.2.0) MongoDB\BSON\ObjectId::jsonSerialize — Returns a representation that can be converted to JSON 説明 final public function MongoDB\BSON\ObjectId::jsonSerialize (): mixed パラメータ この関
... 戻り値 Returns data which can be serialized by json_encode() to produce an extended JSON representation of the MongoDB\BSON\ObjectId . 注意 : The output is consistent with the MongoDB\BSON\toJSON() function, which uses the driver-specific legacy extended ...
-
https://man.mtool.work/php/8.3/mongodb-bson-objectid.jsonserialize.html
- SNMP::getnext — 指定したオブジェクト ID に続く SNMP オブジェクトを取得する | PH... 8259
- SNMP::getnext (PHP 5 >= 5.4.0, PHP 7, PHP 8) SNMP::getnext — 指定したオブジェクト ID に続く SNMP オブジェクトを取得する 説明 public function SNMP::getnext ( array | string $objectId ): mixed objectId で指定したオブジェクトに続く SNMP オブジ
... ェクトの値を取得します。 パラメータ objectId が文字列の場合は SNMP::getnext() は SNMP オブジェクトを文字列で返します。 objectId が配列の場合は、要求されたすべての SNMP ... オブジェクトを SNMP オブジェクトの id とその値の連想配列で返します。 objectId SNMP オブジェクト (OID)。 戻り値 SNMP オブジェクトの値を objectId にあわせて文字列か配列で返します。 エラー時には false を ... sdescr ); ?> 上の例の出力は、 たとえば以下のようになります。 OID: NET-SNMP-MIB::netSnmpAgentOIDs.8 Array ( [SNMPv2-MIB::sysObjectID.0] => OID: NET-SNMP-MIB::netSnmpAgentOIDs.8 ) 例2 複数の SNMP オブジェクト <?php $session = new SNMP ( SNMP :: VERSION_1 , ...
-
https://man.mtool.work/php/8.3/snmp.getnext.html
- SNMP::set — SNMP オブジェクトの値を設定する | PHP 8.3 7643
- SNMP::set (PHP 5 >= 5.4.0, PHP 7, PHP 8) SNMP::set — SNMP オブジェクトの値を設定する 説明 public function SNMP::set ( array | string $objectId , array | string $type , array | string $value ): bool リモート SNMP エージェントに対して、 objectId
... tId で指定した SNMP オブジェクトの値を設定させます。 パラメータ objectId が文字列のときは、 type と value も文字列にしなければなりません。 objectId が配列のときは、 value も同じサイズの配列にして ... 、対応する値を含めなければなりません。 type は、文字列でもいいし (この値を、すべての objectId - value ペアに適用する)、 同じサイズの配列 (OID ごとに設定する) でもかまいません。 その他の組み合わせで指定すると、E_WARNI ... NG メッセージが表示されます。 objectId SNMP オブジェクト ID。 object_id 配列の OID 数がオブジェクトの max_oids プロパティより多ければ、set メソッドは複数のクエリ ...
-
https://man.mtool.work/php/8.3/snmp.set.html