<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/ref.svn.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'zh',
  ),
  'this' => 
  array (
    0 => 'function.svn-export.php',
    1 => 'svn_export',
    2 => 'Export the contents of a SVN directory',
  ),
  'up' => 
  array (
    0 => 'ref.svn.php',
    1 => 'SVN 函数',
  ),
  'prev' => 
  array (
    0 => 'function.svn-diff.php',
    1 => 'svn_diff',
  ),
  'next' => 
  array (
    0 => 'function.svn-fs-abort-txn.php',
    1 => 'svn_fs_abort_txn',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/svn/functions/svn-export.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.svn-export" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">svn_export</h1>
  <p class="verinfo">(PECL svn &gt;= 0.3.0)</p><p class="refpurpose"><span class="refname">svn_export</span> &mdash; <span class="dc-title">Export the contents of a SVN directory</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-function.svn-export-description">
  <h3 class="title">说明</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>svn_export</strong></span>(<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$frompath</code></span>,<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$topath</code></span>,<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam"><span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span> <code class="parameter">$working_copy</code><span class="initializer"> = <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong></span></span>,<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter">$revision_no</code><span class="initializer"> = -1</span></span><br>): <span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span></div>

  <p class="simpara">
   Export the contents of either a working copy or repository into a
   &#039;clean&#039; directory.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.svn-export-parameters">
  <h3 class="title">参数</h3>
  <dl>
   
    <dt><code class="parameter">frompath</code></dt>
    <dd>
     <span class="simpara">
      The path to the current repository.
     </span>
    </dd>
   
   
    <dt><code class="parameter">topath</code></dt>
    <dd>
     <span class="simpara">
      The path to the new repository.
     </span>
    </dd>
   
   
    <dt><code class="parameter">working_copy</code></dt>
    <dd>
     <span class="simpara">
      If <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong>, it will export uncommitted files from the working copy.
     </span>
    </dd>
   
  </dl>
 </div>



 <div class="refsect1 returnvalues" id="refsect1-function.svn-export-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="simpara">
   成功时返回 <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong>， 或者在失败时返回 <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong>。
  </p>
 </div>


 <div class="refsect1 examples" id="refsect1-function.svn-export-examples">
  <h3 class="title">示例</h3>
  <div class="example" id="example-1">
   <p><strong>示例 #1 <span class="function"><strong>svn_export()</strong></span> example</strong></p>
   <div class="example-contents">
<div class="phpcode"><code><span style="color: #000000"><span style="color: #0000BB">&lt;?php<br />$working_dir     </span><span style="color: #007700">= </span><span style="color: #DD0000">'../'</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">$new_working_dir </span><span style="color: #007700">= </span><span style="color: #DD0000">'/home/user/devel/foo/trunk'</span><span style="color: #007700">;<br /><br /></span><span style="color: #0000BB">svn_export</span><span style="color: #007700">(</span><span style="color: #0000BB">$working_dir</span><span style="color: #007700">, </span><span style="color: #0000BB">$new_working_dir</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">?&gt;</span></span></code></div>
   </div>

  </div>
 </div>


 <div class="refsect1 seealso" id="refsect1-function.svn-export-seealso">
  <h3 class="title">参见</h3>
  <ul class="simplelist">
   <li><span class="function"><a href="function.svn-import.php" class="function" rel="rdfs-seeAlso">svn_import()</a> - Imports an unversioned path into a repository</span></li>
  </ul>
 </div>


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