mirror of
https://github.com/macintoshplus/doc-fr.git
synced 2026-03-26 01:42:09 +01:00
git-svn-id: https://svn.php.net/repository/phpdoc/fr/trunk@322024 c90b9560-bf6c-de11-be94-00142212c4b1
111 lines
2.8 KiB
XML
111 lines
2.8 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- $Revision$ -->
|
|
<!-- EN-Revision: d8b968e63cba67a082e6e37aee1ebe7821b41258 Maintainer: yannick Status: ready -->
|
|
<!-- Reviewed: no -->
|
|
|
|
<refentry xml:id="oauthprovider.construct" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
|
|
<refnamediv>
|
|
<refname>OAuthProvider::__construct</refname>
|
|
<refpurpose>Construit un nouvel objet OAuthProvider</refpurpose>
|
|
</refnamediv>
|
|
|
|
<refsect1 role="description">
|
|
&reftitle.description;
|
|
<methodsynopsis>
|
|
<modifier>public</modifier> <methodname>OAuthProvider::__construct</methodname>
|
|
<methodparam choice="opt"><type>array</type><parameter>params_array</parameter></methodparam>
|
|
</methodsynopsis>
|
|
<para>
|
|
Initie un nouvel <type>object</type> <classname>OAuthProvider</classname>.
|
|
</para>
|
|
|
|
&warn.undocumented.func;
|
|
|
|
</refsect1>
|
|
|
|
<refsect1 role="parameters">
|
|
&reftitle.parameters;
|
|
<variablelist>
|
|
<varlistentry>
|
|
<term><parameter>params_array</parameter></term>
|
|
<listitem>
|
|
<para>
|
|
Le fait de définir des paramètres optionnels est limité au
|
|
<link linkend="features.commandline">SAPI CLI</link>.
|
|
</para>
|
|
</listitem>
|
|
</varlistentry>
|
|
</variablelist>
|
|
</refsect1>
|
|
|
|
<refsect1 role="returnvalues">
|
|
&reftitle.returnvalues;
|
|
<para>
|
|
Un <type>object</type> <classname>OAuthProvider</classname>.
|
|
</para>
|
|
</refsect1>
|
|
|
|
<refsect1 role="examples">
|
|
&reftitle.examples;
|
|
<example>
|
|
<title>Exemple avec <function>OAuthProvider::__construct</function></title>
|
|
<programlisting role="php">
|
|
<![CDATA[
|
|
<?php
|
|
try {
|
|
|
|
$op = new OAuthProvider();
|
|
|
|
// Utilisation des fonctions de rappel définies par l'utilisateur
|
|
$op->consumerHandler(array($this, 'lookupConsumer'));
|
|
$op->timestampNonceHandler(array($this, 'timestampNonceChecker'));
|
|
$op->tokenHandler(array($this, 'myTokenHandler'));
|
|
|
|
// Ignore le paramètre foo_uri
|
|
$op->setParam('foo_uri', NULL);
|
|
|
|
// Aucun jeton nécessaire pour ce point final
|
|
$op->setRequestTokenPath('/v1/oauth/request_token');
|
|
|
|
$op->checkOAuthRequest();
|
|
|
|
} catch (OAuthException $e) {
|
|
|
|
echo OAuthProvider::reportProblem($e);
|
|
}
|
|
?>
|
|
]]>
|
|
</programlisting>
|
|
</example>
|
|
</refsect1>
|
|
|
|
<refsect1 role="seealso">
|
|
&reftitle.seealso;
|
|
<simplelist>
|
|
<member><methodname>OAuthProvider::setParam</methodname></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
|
|
-->
|