2010-03-28 22:10:10 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2009-07-11 07:16:08 +00:00
|
|
|
<!-- $Revision$ -->
|
2007-06-20 22:25:43 +00:00
|
|
|
<refentry xmlns="http://docbook.org/ns/docbook" xml:id="function.gnupg-setarmor">
|
2005-10-29 16:08:09 +00:00
|
|
|
<refnamediv>
|
|
|
|
<refname>gnupg_setarmor</refname>
|
|
|
|
<refpurpose>Toggle armored output</refpurpose>
|
|
|
|
</refnamediv>
|
2005-10-30 06:34:39 +00:00
|
|
|
|
2005-10-29 16:08:09 +00:00
|
|
|
<refsect1 role="description">
|
|
|
|
&reftitle.description;
|
|
|
|
<methodsynopsis>
|
|
|
|
<type>bool</type><methodname>gnupg_setarmor</methodname>
|
|
|
|
<methodparam><type>resource</type><parameter>identifier</parameter></methodparam>
|
|
|
|
<methodparam><type>int</type><parameter>armor</parameter></methodparam>
|
|
|
|
</methodsynopsis>
|
|
|
|
<para>
|
2008-05-21 21:06:43 +00:00
|
|
|
Toggle the armored output.
|
2005-10-29 16:08:09 +00:00
|
|
|
</para>
|
|
|
|
</refsect1>
|
2008-05-21 21:06:43 +00:00
|
|
|
|
|
|
|
<refsect1 role="parameters">
|
|
|
|
&reftitle.parameters;
|
|
|
|
<para>
|
|
|
|
<variablelist>
|
|
|
|
<varlistentry>
|
|
|
|
<term><parameter>identifier</parameter></term>
|
|
|
|
<listitem>
|
|
|
|
&gnupg.identifier;
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
<varlistentry>
|
|
|
|
<term><parameter>armor</parameter></term>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
Pass a non-zero integer-value to this function to enable armored-output
|
|
|
|
(default).
|
|
|
|
Pass 0 to disable armored output.
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
</variablelist>
|
|
|
|
</para>
|
|
|
|
</refsect1>
|
|
|
|
|
2005-10-29 16:08:09 +00:00
|
|
|
<refsect1 role="returnvalues">
|
|
|
|
&reftitle.returnvalues;
|
|
|
|
<para>
|
2005-10-30 06:34:39 +00:00
|
|
|
&return.success;
|
2005-10-29 16:08:09 +00:00
|
|
|
</para>
|
|
|
|
</refsect1>
|
2005-10-30 06:34:39 +00:00
|
|
|
|
2005-10-29 16:08:09 +00:00
|
|
|
<refsect1 role="examples">
|
|
|
|
&reftitle.examples;
|
|
|
|
<para>
|
|
|
|
<example>
|
2005-10-30 06:34:39 +00:00
|
|
|
<title>Procedural <function>gnupg_setarmor</function> example</title>
|
2005-10-29 16:08:09 +00:00
|
|
|
<programlisting role="php">
|
|
|
|
<![CDATA[
|
|
|
|
<?php
|
|
|
|
$res = gnupg_init();
|
2005-10-29 18:51:50 +00:00
|
|
|
gnupg_setarmor($res,1); // enable armored output;
|
2005-10-29 16:08:09 +00:00
|
|
|
gnupg_setarmor($res,0); // disable armored output;
|
|
|
|
?>
|
|
|
|
]]>
|
|
|
|
</programlisting>
|
|
|
|
</example>
|
|
|
|
<example>
|
2005-10-30 06:34:39 +00:00
|
|
|
<title>OO <function>gnupg_setarmor</function> example</title>
|
|
|
|
<programlisting role="php">
|
2005-10-29 16:08:09 +00:00
|
|
|
<![CDATA[
|
|
|
|
<?php
|
|
|
|
$gpg = new gnupg();
|
|
|
|
$gpg -> setarmor(1); // enable armored output;
|
|
|
|
$gpg -> setarmor(0); // disable armored output;
|
|
|
|
?>
|
|
|
|
]]>
|
2005-10-30 06:34:39 +00:00
|
|
|
</programlisting>
|
2005-10-29 16:08:09 +00:00
|
|
|
</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
|
2009-09-25 07:04:39 +00:00
|
|
|
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
|
2005-10-29 16:08:09 +00:00
|
|
|
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
|
|
|
|
-->
|