<?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 => 'uk',
  ),
  'this' => 
  array (
    0 => 'function.svn-checkout.php',
    1 => 'svn_checkout',
    2 => 'Checks out a working copy from the repository',
  ),
  'up' => 
  array (
    0 => 'ref.svn.php',
    1 => 'SVN Функції',
  ),
  'prev' => 
  array (
    0 => 'function.svn-cat.php',
    1 => 'svn_cat',
  ),
  'next' => 
  array (
    0 => 'function.svn-cleanup.php',
    1 => 'svn_cleanup',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/svn/functions/svn-checkout.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.svn-checkout" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">svn_checkout</h1>
  <p class="verinfo">(PECL svn &gt;= 0.1.0)</p><p class="refpurpose"><span class="refname">svn_checkout</span> &mdash; <span class="dc-title">Checks out a working copy from the repository</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-function.svn-checkout-description">
  <h3 class="title">Опис</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>svn_checkout</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">$repos</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">$targetpath</code></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</code><span class="initializer"> = ?</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">$flags</code><span class="initializer"> = 0</span></span><br>): <span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span></div>

  <p class="para rdfs-comment">
   Checks out a working copy from the repository at <code class="parameter">repos</code>
   to <code class="parameter">targetpath</code> at revision <code class="parameter">revision</code>.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.svn-checkout-parameters">
  <h3 class="title">Параметри</h3>
  <p class="para">
   <dl>
    
     <dt><code class="parameter">repos</code></dt>
     <dd>
      <p class="para">
       String URL path to directory in repository to check out.
      </p>
     </dd>
    
    
     <dt><code class="parameter">targetpath</code></dt>
     <dd>
      <p class="para">
       String local path to directory to check out in to
      </p>
      <blockquote class="note"><p><strong class="note">Зауваження</strong>: <span class="simpara">Відносні шляхи
розкриваються так, ніби поточною текою є та, що містить виконуваний файл PHP.
Щоб використовувати теку, в якій виконується скрипт, застосовується функція
<span class="function"><a href="function.realpath.php" class="function">realpath()</a></span> або dirname(__FILE__).</span></p></blockquote>
     </dd>
    
    
     <dt><code class="parameter">revision</code></dt>
     <dd>
      <p class="para">
       Integer revision number of repository to check out. Default is
       HEAD, the most recent revision.
      </p>
     </dd>
    
    
     <dt><code class="parameter">flags</code></dt>
     <dd>
      <p class="para">
       Any combination of <strong><code>SVN_NON_RECURSIVE</code></strong> and
       <strong><code>SVN_IGNORE_EXTERNALS</code></strong>.
      </p>
     </dd>
    
   </dl>
  </p>

 </div>

 <div class="refsect1 returnvalues" id="refsect1-function.svn-checkout-returnvalues">
  <h3 class="title">Значення, що повертаються</h3>
  <p class="para">
   Повертає <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-checkout-examples">
  <h3 class="title">Приклади</h3>
  <p class="para">
   <div class="example" id="example-1">
    <p><strong>Приклад #1 Basic example</strong></p>
    <div class="example-contents"><p>
     This example demonstrates how to check out a directory from
     a repository to a directory named calc:
    </p></div>
    <div class="example-contents">
<div class="phpcode"><code><span style="color: #000000"><span style="color: #0000BB">&lt;?php<br />svn_checkout</span><span style="color: #007700">(</span><span style="color: #DD0000">'http://www.example.com/svnroot/calc/trunk'</span><span style="color: #007700">, </span><span style="color: #0000BB">dirname</span><span style="color: #007700">(</span><span style="color: #0000BB">__FILE__</span><span style="color: #007700">) . </span><span style="color: #DD0000">'/calc'</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">?&gt;</span></span></code></div>
    </div>

    <div class="example-contents"><p>
     The <code class="literal">dirname(__FILE__)</code> call is necessary in order
     to convert the calc relative path into an absolute one. If calc
     exists, you can also use <span class="function"><a href="function.realpath.php" class="function">realpath()</a></span> to retrieve
     an absolute path.
    </p></div>
   </div>
  </p>
 </div>


 <div class="refsect1 notes" id="refsect1-function.svn-checkout-notes">
  <h3 class="title">Примітки</h3>
  <div class="warning"><strong class="warning">Увага</strong><p class="simpara">Ця функція —
<em>ЕКСПЕРИМЕНТАЛЬНА</em>. Її поведінка, назва та документація
можуть бути змінені без попередження в майбутніх випусках PHP. Використання цієї
функції є ризикованим для розробника.</p></div>
 </div>


 <div class="refsect1 seealso" id="refsect1-function.svn-checkout-seealso">
  <h3 class="title">Прогляньте також</h3>
  <p class="para">
   <ul class="simplelist">
    <li><span class="function"><a href="function.svn-add.php" class="function" rel="rdfs-seeAlso">svn_add()</a> - Schedules the addition of an item in a working directory</span></li>
    <li><span class="function"><a href="function.svn-commit.php" class="function" rel="rdfs-seeAlso">svn_commit()</a> - Sends changes from the local working copy to the repository</span></li>
    <li><span class="function"><a href="function.svn-status.php" class="function" rel="rdfs-seeAlso">svn_status()</a> - Returns the status of working copy files and directories</span></li>
    <li><span class="function"><a href="function.svn-update.php" class="function" rel="rdfs-seeAlso">svn_update()</a> - Update working copy</span></li>
    <li><a href="http://svnbook.red-bean.com/en/1.2/svn.ref.svn.c.checkout.html" class="link external">&raquo;&nbsp;SVN documentation on svn checkout</a></li>
   </ul>
  </p>
 </div>


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