Updating docs to include new debug functions in pecl/oauth-0.99.3, updating fetch documentation for pending release

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@278319 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
John Jawed 2009-04-06 18:25:57 +00:00
parent 4f2932990a
commit c9531e5537
3 changed files with 193 additions and 2 deletions

View file

@ -0,0 +1,63 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision: 1.1 $ -->
<refentry xml:id="oauth.disabledebug" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<refnamediv>
<refname>OAuth::disableDebug</refname>
<refpurpose>Turn off verbose debugging</refpurpose>
</refnamediv>
<refsect1 role="description">
&reftitle.description;
<methodsynopsis>
<modifier>public</modifier> <type>bool</type><methodname>OAuth::disableDebug</methodname>
<void />
</methodsynopsis>
<para>
Turns off verbose request information (off by default).
</para>
</refsect1>
<refsect1 role="parameters">
&reftitle.parameters;
&no.function.parameters;
</refsect1>
<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
&return.success;
</para>
</refsect1>
<refsect1 role="seealso">
&reftitle.seealso;
<para>
<simplelist>
<member><methodname>OAuth::enableDebug</methodname></member>
</simplelist>
</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:"../../../../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
-->

View file

@ -0,0 +1,63 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision: 1.1 $ -->
<refentry xml:id="oauth.enabledebug" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<refnamediv>
<refname>OAuth::enableDebug</refname>
<refpurpose>Turn on verbose debugging</refpurpose>
</refnamediv>
<refsect1 role="description">
&reftitle.description;
<methodsynopsis>
<modifier>public</modifier> <type>bool</type><methodname>OAuth::enableDebug</methodname>
<void />
</methodsynopsis>
<para>
Turns on verbose request information useful for debugging, this is not for production use.
</para>
</refsect1>
<refsect1 role="parameters">
&reftitle.parameters;
&no.function.parameters;
</refsect1>
<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
&return.success;
</para>
</refsect1>
<refsect1 role="seealso">
&reftitle.seealso;
<para>
<simplelist>
<member><methodname>OAuth::disableDebug</methodname></member>
</simplelist>
</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:"../../../../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
-->

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision: 1.3 $ -->
<!-- $Revision: 1.4 $ -->
<refentry xml:id="oauth.fetch" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<refnamediv>
@ -13,9 +13,10 @@
<modifier>public</modifier> <type>bool</type><methodname>OAuth::fetch</methodname>
<methodparam><type>string</type><parameter>protected_resource_url</parameter></methodparam>
<methodparam choice="opt"><type>array</type><parameter role="reference">extra_parameters</parameter></methodparam>
<methodparam choice="opt"><type>int</type><parameter role="reference">http_method</parameter></methodparam>
</methodsynopsis>
<para>
Fetch a resource protected by OAuth.
Fetch a resource.
</para>
</refsect1>
@ -39,6 +40,46 @@
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><parameter>http_method</parameter></term>
<listitem>
<para>
<parameter>http_method</parameter> can be one of the following:
<variablelist>
<varlistentry>
<term><constant>OAUTH_HTTP_METHOD_GET</constant></term>
<listitem>
<simpara>
Set the request method to <literal>GET</literal>.
</simpara>
</listitem>
</varlistentry>
<varlistentry>
<term><constant>OAUTH_HTTP_METHOD_POST</constant></term>
<listitem>
<simpara>
Set the request method to <literal>POST</literal>.
</simpara>
</listitem>
</varlistentry>
<varlistentry>
<term><constant>OAUTH_HTTP_METHOD_PUT</constant></term>
<listitem>
<simpara>
Set the request method to <literal>PUT</literal>.
</simpara>
</listitem>
</varlistentry>
<varlistentry>
<term><constant>OAUTH_HTTP_METHOD_HEAD</constant></term>
<listitem>
<simpara>
Set the request method to <literal>HEAD</literal>, this can be useful for
discovering information prior to the request (if OAuth credentials are
in the Authorization header).
</simpara>
</listitem>
</varlistentry>
</variablelist>
</para>
</refsect1>
@ -89,6 +130,30 @@ try {
</para>
</refsect1>
<refsect1 role="changelog">
&reftitle.changelog;
<para>
<informaltable>
<tgroup cols="2">
<thead>
<row>
<entry>&Version;</entry>
<entry>&Description;</entry>
</row>
</thead>
<tbody>
<row>
<entry>CVS / 0.99.5</entry>
<entry>
Added an additional parameter to set the HTTP method for the request.
</entry>
</row>
</tbody>
</tgroup>
</informaltable>
</para>
</refsect1>
</refentry>
<!-- Keep this comment at the end of the file