Results of 1 - 10 of about 14 for typemap (0.002 sec.)
- Serialization and deserialization of PHP variables into MongoDB | PHP 8.3 13111
- Serialization and deserialization of PHP variables into MongoDB This document discusses how compound structures (i.e. documents, arrays, and objects) are converted between BSON and PHP values. Serialization to BSON Arrays If an array is a p
... sible to configure specific fields in your document to map to the data types mentioned below. As an example, the following type map allows you to map each embedded document within an "addresses" array to an Address class and each "city" field within tho ... _pclass property and that class exists and implements MongoDB\BSON\Persistable it will supersede the class provided in the type map. The properties of the BSON document, including the __pclass property if it exists, will be sent as an associative array ... to the MongoDB\BSON\Unserializable::bsonUnserialize() function to initialise the object's properties. TypeMaps TypeMaps can be set through the MongoDB\Driver\Cursor::setTypeMap() method on a MongoDB\Driver\Cursor object, or the $typ ...
-
https://man.mtool.work/php/8.3/mongodb.persistence.html
- MongoDB\BSON\Document::toPHP — Returns the PHP representation of the BSON docum... 10993
- MongoDB\BSON\Document::toPHP (mongodb >=1.16.0) MongoDB\BSON\Document::toPHP — Returns the PHP representation of the BSON document 説明 final public function MongoDB\BSON\Document::toPHP ( ? array $typeMap = null ): array | object Unseriali
... zes the BSON document to its PHP representation. The typeMap parameter may be used to control the PHP types used for converting BSON arrays and documents (both root and embedded). 警告 ... d arrays cannot have duplicate keys, data could also be lost when decoding a BSON document with duplicate keys. パラメータ typeMap ( array ) Type map configuration . 戻り値 The decoded PHP value. 注意 : When encountering a value encoded as 64-bit intege ... be a MongoDB\BSON\Int64 instance. エラー / 例外 Throws MongoDB\Driver\Exception\InvalidArgumentException if a class in the type map cannot be instantiated or does not implement MongoDB\BSON\Unserializable . 参考 MongoDB\BSON\toPHP() - Returns the PHP re ...
-
https://man.mtool.work/php/8.3/mongodb-bson-document.tophp.html
- MongoDB\Driver\CursorInterface::setTypeMap — Sets a type map to use for BSON un... 10047
- MongoDB\Driver\CursorInterface::setTypeMap (mongodb >=1.6.0) MongoDB\Driver\CursorInterface::setTypeMap — Sets a type map to use for BSON unserialization 説明 abstract public function MongoDB\Driver\CursorInterface::setTypeMap ( array $typemap
... map ): void Sets the type map configuration to use when unserializing the BSON results into PHP values. パラメータ typeMap ( array ) Type map configura ... / 例外 Throws MongoDB\Driver\Exception\InvalidArgumentException on argument parsing errors. 参考 MongoDB\Driver\Cursor::setTypeMap() - Sets a type map to use for BSON unserialization Persisting Data 他のマニュアルの関連ページ DuckDB ODBC Configuration D ...
-
https://man.mtool.work/php/8.3/mongodb-driver-cursorinterface.settypemap.html
- MongoDB\BSON\PackedArray::toPHP — Returns the PHP representation of the BSON ar... 9925
- MongoDB\BSON\PackedArray::toPHP (mongodb >=1.16.0) MongoDB\BSON\PackedArray::toPHP — Returns the PHP representation of the BSON array 説明 final public function MongoDB\BSON\PackedArray::toPHP ( ? array $typeMap = null ): array | object パラ
... メータ typeMap ( array ) Type map configuration . 戻り値 The decoded PHP value. 注意 : When encountering a value encoded as 64-bit intege ... be a MongoDB\BSON\Int64 instance. エラー / 例外 Throws MongoDB\Driver\Exception\InvalidArgumentException if a class in the type map cannot be instantiated or does not implement MongoDB\BSON\Unserializable . 参考 MongoDB\BSON\toPHP() - Returns the PHP re ...
-
https://man.mtool.work/php/8.3/mongodb-bson-packedarray.tophp.html
- MongoDB\BSON\toPHP — Returns the PHP representation of a BSON value | PHP 8.3 9785
- MongoDB\BSON\toPHP (mongodb >=1.0.0) MongoDB\BSON\toPHP — Returns the PHP representation of a BSON value 警告 This function has been DEPRECATED as of extension version 1.20.0 and was removed in 2.0. Applications should use MongoDB\BSON\Docu
... ment::toPHP() instead. 説明 function MongoDB\BSON\toPHP ( string $bson , array $typeMap = array() ): array | object Unserializes a BSON document (i.e. binary string) to its PHP representation. The typeMap param ... also be lost when decoding a BSON document with duplicate keys. パラメータ bson ( string ) BSON value to be unserialized. typeMap ( array ) Type map configuration . 戻り値 The unserialized PHP value. エラー / 例外 Throws MongoDB\Driver\Exception\Invali ... dArgumentException if a class in the type map cannot be instantiated or does not implement MongoDB\BSON\Unserializable . Throws MongoDB\Driver\Exception\UnexpectedValu ...
-
https://man.mtool.work/php/8.3/function.mongodb.bson-tophp.html
- MongoDB\Driver\Cursor::setTypeMap — Sets a type map to use for BSON unserializa... 8997
- MongoDB\Driver\Cursor::setTypeMap (mongodb >=1.0.0) MongoDB\Driver\Cursor::setTypeMap — Sets a type map to use for BSON unserialization 説明 final public function MongoDB\Driver\Cursor::setTypeMap ( array $typemap ): void Sets the type map
... configuration to use when unserializing the BSON results into PHP values. パラメータ typeMap ( array ) Type map configuration . 戻り値 値を返しません。 エラー / 例外 Throws MongoDB\Driver\Exception\InvalidArgumentEx ... n argument parsing errors. When iterating over the cursor, the following exceptions can also be thrown due to an incorrect type map configuration: Throws MongoDB\Driver\Exception\InvalidArgumentException if a class in the type map cannot be instantiated ... or does not implement MongoDB\BSON\Unserializable . 例 例1 MongoDB\Driver\Cursor::setTypeMap() example <?php $manager = new MongoDB\Driver\Manager ( "mongodb://localhost:27017" ); $bulk = new MongoDB\Driver\BulkWrit ...
-
https://man.mtool.work/php/8.3/mongodb-driver-cursor.settypemap.html
- SoapClient クラス | PHP 8.3 7929
- SoapClient クラス (PHP 5, PHP 7, PHP 8) はじめに SoapClient クラスは » SOAP 1.1 、 » SOAP 1.2 サーバー用のクライアントとなります。 WSDL モードあるいは non-WSDL モードで動作します。 クラス概要 class SoapClient { /* プロパティ */ private ? st
... ; private bool $ trace = false ; private ? int $ compression = null ; private ? Soap\Sdl $ sdl = null ; private ? array $ typemap = null ; private ? resource $ httpsocket = null ; private ? Soap\Url $ httpurl = null ; private ? string $ _login = null ; ... ion _ssl_method _stream_context _use_digest _use_proxy _user_agent compression httpsocket httpurl location sdl style trace typemap XML から PHP への独自の型変換に使う型マッピングの配列です。 型マッピングが設定されていない場合は null です。 PHP 8.4.0 以降 ...
-
https://man.mtool.work/php/8.3/class.soapclient.html
- SoapClient::__construct — SoapClient のコンストラクタ | PHP 8.3 7929
- SoapClient::__construct (PHP 5, PHP 7, PHP 8) SoapClient::__construct — SoapClient のコンストラクタ 説明 public function SoapClient::__construct ( ? string $wsdl , array $options = [] ) SOAP サービスに接続するための SoapClient オブジェクトを
... きます。 たとえば '{http://example.com}foo' のように指定します。 同じ型名が複数の名前空間で定義されている場合に役立ちます。 typemap array ユーザー定義のコールバック関数を使って、 型マッピングを定義します。 型マッピングは配列で定義され、 キーは type_name ... $title ; public $author ; } $client = new SoapClient ( "books.wsdl" , array( 'classmap' => array( 'book' => "MyBook" ))); $typemap = array( array( "type_ns" => "http://schemas.example.com" , "type_name" => "book" , "from_xml" => "unserialize_book" , "to ... _xml" => "serialize_book" ) ); $client = new SoapClient ( "books.wsdl" , array( 'typemap' => $typemap )); ?> 例2 SOAP_SINGLE_ELEMENT_ARRAYS の機能を使う <?php /* Assuming a response like this, and an appropriate ...
-
https://man.mtool.work/php/8.3/soapclient.construct.html
- The MongoDB\Driver\CursorInterface interface | PHP 8.3 7667
- The MongoDB\Driver\CursorInterface interface (mongodb >=1.6.0) はじめに This interface is implemented by MongoDB\Driver\Cursor to be used as a parameter, return, or property type in userland classes. クラス概要 class MongoDB\Driver\CursorIn
... t public function getServer (): MongoDB\Driver\Server abstract public function isDead (): bool abstract public function setTypeMap ( array $typemap ): void abstract public function toArray (): array } 変更履歴 バージョン 説明 PECL mongodb 2.0.0 This int ... ngoDB\Driver\CursorInterface::isDead — Checks if the cursor may have additional results MongoDB\Driver\CursorInterface::setTypeMap — Sets a type map to use for BSON unserialization MongoDB\Driver\CursorInterface::toArray — Returns an array containing al ...
-
https://man.mtool.work/php/8.3/class.mongodb-driver-cursorinterface.html
- The MongoDB\BSON\PackedArray class | PHP 8.3 7387
- The MongoDB\BSON\PackedArray class (mongodb >=1.16.0) はじめに Represents a BSON array. This class is used when reading data as raw BSON and cannot be modified. クラス概要 final class MongoDB\BSON\PackedArray implements MongoDB\BSON\Type ,
... Unset ( mixed $key ): void final public function toCanonicalExtendedJSON (): string final public function toPHP ( ? array $typeMap = null ): array | object final public function toRelaxedExtendedJSON (): string final public function __toString (): strin ...
-
https://man.mtool.work/php/8.3/class.mongodb-bson-packedarray.html