<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/class.oauth.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'zh',
  ),
  'this' => 
  array (
    0 => 'oauth.setcapath.php',
    1 => 'OAuth::setCAPath',
    2 => '设置 CA 路径和信息',
  ),
  'up' => 
  array (
    0 => 'class.oauth.php',
    1 => 'OAuth',
  ),
  'prev' => 
  array (
    0 => 'oauth.setauthtype.php',
    1 => 'OAuth::setAuthType',
  ),
  'next' => 
  array (
    0 => 'oauth.setnonce.php',
    1 => 'OAuth::setNonce',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'zh',
    'path' => 'reference/oauth/oauth/setcapath.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="oauth.setcapath" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">OAuth::setCAPath</h1>
  <p class="verinfo">(PECL OAuth &gt;= 0.99.8)</p><p class="refpurpose"><span class="refname">OAuth::setCAPath</span> &mdash; <span class="dc-title">设置 CA 路径和信息</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-oauth.setcapath-description">
  <h3 class="title">说明</h3>
  <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="methodname"><strong>OAuth::setCAPath</strong></span>(<span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$ca_path</code><span class="initializer"> = ?</span></span>, <span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$ca_info</code><span class="initializer"> = ?</span></span>): <span class="type"><a href="language.types.mixed.php" class="type mixed">mixed</a></span></div>

  <p class="simpara">
   设置证书授权中心（<abbr title="Certificate Authority">CA</abbr> ）的路径和信息。
  </p>

  <div class="warning"><strong class="warning">警告</strong><p class="simpara">本函数还未编写文档，仅有参数列表。</p></div>

 </div>


 <div class="refsect1 parameters" id="refsect1-oauth.setcapath-parameters">
  <h3 class="title">参数</h3>
  <dl>
   
    <dt><code class="parameter">ca_path</code></dt>
    <dd>
     <span class="simpara">
      要设置的 CA 路径。
     </span>
    </dd>
   
   
    <dt><code class="parameter">ca_info</code></dt>
    <dd>
     <span class="simpara">
      要设置的 CA 信息。
     </span>
    </dd>
   
  </dl>

 </div>


 <div class="refsect1 returnvalues" id="refsect1-oauth.setcapath-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="simpara">
   成功则返回 <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong> ，如果 <code class="parameter">ca_path</code> 或 <code class="parameter">ca_info</code> 其中之一被认为无效则返回   <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> 。
  </p>
 </div>


 <div class="refsect1 changelog" id="refsect1-oauth.setcapath-changelog">
  <h3 class="title">更新日志</h3>
  <table class="doctable informaltable">
   
    <thead>
     <tr>
      <th>版本</th>
      <th>说明</th>
     </tr>

    </thead>

    <tbody class="tbody">
     <tr>
      <td>PECL oauth 1.0.0</td>
      <td>
       以前失败时返回 <strong><code><a href="reserved.constants.php#constant.null">null</a></code></strong>，而不是 <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong>。
      </td>
     </tr>

    </tbody>
   
  </table>

 </div>


 <div class="refsect1 seealso" id="refsect1-oauth.setcapath-seealso">
  <h3 class="title">参见</h3>
  <ul class="simplelist">
   <li><span class="methodname"><a href="oauth.getcapath.php" class="methodname" rel="rdfs-seeAlso">OAuth::getCaPath()</a> - 获取 CA 信息</span></li>
  </ul>
 </div>


</div><?php manual_footer($setup); ?>