Files
php-doc-ru/reference/gnupg/functions/gnupg-import.xml
sergey 4e3a3dbb33 docs(ru): Review
git-svn-id: https://svn.php.net/repository/phpdoc/ru/trunk@348368 c90b9560-bf6c-de11-be94-00142212c4b1
2019-11-29 04:39:10 +00:00

106 lines
2.8 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"?>
<!-- $Revision$ -->
<!-- EN-Revision: 96c9d88bad9a7d7d44bfb7f26c226df7ee9ddf26 Maintainer: rjhdby Status: ready -->
<!-- Reviewed: yes Maintainer: sergey -->
<refentry xmlns="http://docbook.org/ns/docbook" xml:id="function.gnupg-import">
<refnamediv>
<refname>gnupg_import</refname>
<refpurpose>Импортирует ключ</refpurpose>
</refnamediv>
<refsect1 role="description">
&reftitle.description;
<methodsynopsis>
<type>array</type><methodname>gnupg_import</methodname>
<methodparam><type>resource</type><parameter>identifier</parameter></methodparam>
<methodparam><type>string</type><parameter>keydata</parameter></methodparam>
</methodsynopsis>
<para>
Импортирует ключ <parameter>keydata</parameter> и возвращает массив с
информацией о процессе импорта.
</para>
</refsect1>
<refsect1 role="parameters">
&reftitle.parameters;
<para>
<variablelist>
<varlistentry>
<term><parameter>identifier</parameter></term>
<listitem>
&gnupg.identifier;
</listitem>
</varlistentry>
<varlistentry>
<term><parameter>keydata</parameter></term>
<listitem>
<para>
Ключ для импорта.
</para>
</listitem>
</varlistentry>
</variablelist>
</para>
</refsect1>
<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
В случае успешного выполнения возвращает массив с информацией о процессе импорта.
В случае возникновения ошибки возвращает &false;.
</para>
</refsect1>
<refsect1 role="examples">
&reftitle.examples;
<para>
<example>
<title>Пример использования <function>gnupg_import</function> в процедурном стиле</title>
<programlisting role="php">
<![CDATA[
<?php
$res = gnupg_init();
$info = gnupg_import($res,$keydata);
print_r($info);
?>
]]>
</programlisting>
</example>
<example>
<title>Пример использования <function>gnupg_import</function> в объектно-ориентированном стиле</title>
<programlisting role="php">
<![CDATA[
<?php
$gpg = new gnupg();
$info = $gpg -> import($keydata);
print_r($info);
?>
]]>
</programlisting>
</example>
</para>
</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
-->