Files
php-doc-ru/reference/mongodb/bson/int64/jsonserialize.xml
Sergey Panteleev 300ffa98fb Исправление форматирования (#362)
[skip-spellcheck]
[skip-lint]
2021-10-21 09:47:52 +03:00

81 lines
3.1 KiB
XML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?xml version="1.0" encoding="utf-8"?>
<!-- EN-Revision: 4691215483797da841e61de00eef8adba2960d21 Maintainer: sergey Status: ready -->
<!-- Reviewed: no -->
<refentry xml:id="mongodb-bson-int64.jsonserialize" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<refnamediv>
<refname>MongoDB\BSON\Int64::jsonSerialize</refname>
<refpurpose>Возвращает представление, которое можно преобразовать в JSON</refpurpose>
</refnamediv>
<refsect1 role="description">
&reftitle.description;
<methodsynopsis>
<modifier>final</modifier> <modifier>public</modifier> <type>mixed</type><methodname>MongoDB\BSON\Int64::jsonSerialize</methodname>
<void />
</methodsynopsis>
</refsect1>
<refsect1 role="parameters">
&reftitle.parameters;
&no.function.parameters;
</refsect1>
<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
Возвращает данные, которые могут быть сериализованы с помощью <function>json_encode</function>
для создания расширенного JSON-представления <classname>MongoDB\BSON\Int64</classname>.
</para>
<note>
<simpara>
Вывод соответствует функции <function>MongoDB\BSON\toCanonicalExtendedJSON</function>, которая
использует
<link xlink:href="&url.mongodb.specs.extendedjson;#canonical-extended-json-example">канонический</link>
расширенный формат JSON. Это отличается от других классов BSON, которые используют устаревший
расширенный формат JSON для конкретного драйвера (<function>MongoDB\BSON\toJSON</function>),
чтобы обеспечить правильное представление 64-разрядного целочисленного значения на 32-разрядных платформах.
</simpara>
</note>
</refsect1>
<refsect1 role="errors">
&reftitle.errors;
<simplelist>
&mongodb.throws.argumentparsing;
</simplelist>
</refsect1>
<refsect1 role="seealso">
&reftitle.seealso;
<simplelist>
<member><methodname>JsonSerializable::jsonSerialize</methodname></member>
<member><function>json_encode</function></member>
<member><function>MongoDB\BSON\toCanonicalExtendedJSON</function></member>
<member><function>MongoDB\BSON\toRelaxedExtendedJSON</function></member>
<member><link xlink:href="&url.mongodb.docs.extendedjson;">MongoDB Extended JSON</link></member>
</simplelist>
</refsect1>
</refentry>
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
indent-tabs-mode:nil
sgml-parent-document:nil
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->