<?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-cleanup.php',
    1 => 'svn_cleanup',
    2 => 'Recursively cleanup a working copy directory, finishing incomplete operations and removing locks',
  ),
  'up' => 
  array (
    0 => 'ref.svn.php',
    1 => 'SVN Функції',
  ),
  'prev' => 
  array (
    0 => 'function.svn-checkout.php',
    1 => 'svn_checkout',
  ),
  'next' => 
  array (
    0 => 'function.svn-client-version.php',
    1 => 'svn_client_version',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/svn/functions/svn-cleanup.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.svn-cleanup" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">svn_cleanup</h1>
  <p class="verinfo">(PECL svn &gt;= 0.1.0)</p><p class="refpurpose"><span class="refname">svn_cleanup</span> &mdash; <span class="dc-title">Recursively cleanup a working copy directory, finishing incomplete operations and removing locks</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-function.svn-cleanup-description">
  <h3 class="title">Опис</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>svn_cleanup</strong></span>(<span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$workingdir</code></span>): <span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span></div>

  <p class="para rdfs-comment">
   Recursively cleanup working copy directory <code class="parameter">workingdir</code>,
   finishing any incomplete operations and removing working copy locks. Use
   when a working copy is in limbo and needs to be usable again.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.svn-cleanup-parameters">
  <h3 class="title">Параметри</h3>
  <p class="para">
   <dl>
    
     <dt><code class="parameter">workingdir</code></dt>
     <dd>
      <p class="para">
       String path to local working directory to cleanup
      </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>
    
   </dl>
  </p>

 </div>

 <div class="refsect1 returnvalues" id="refsect1-function.svn-cleanup-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-cleanup-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 clean up of a working copy in a
     directory named help-me:
    </p></div>
    <div class="example-contents">
<div class="phpcode"><code><span style="color: #000000"><span style="color: #0000BB">&lt;?php<br />svn_cleanup</span><span style="color: #007700">(</span><span style="color: #0000BB">realpath</span><span style="color: #007700">(</span><span style="color: #DD0000">'help-me'</span><span style="color: #007700">));<br /></span><span style="color: #0000BB">?&gt;</span></span></code></div>
    </div>

    <div class="example-contents"><p>
     The <span class="function"><a href="function.realpath.php" class="function">realpath()</a></span> call is necessary due to
     SVN&#039;s quirky handling of relative paths.
    </p></div>
   </div>
  </p>
 </div>


 <div class="refsect1 notes" id="refsect1-function.svn-cleanup-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-cleanup-seealso">
  <h3 class="title">Прогляньте також</h3>
  <p class="para">
   <ul class="simplelist">
    <li><span class="function"><strong>update()</strong></span></li>
    <li><a href="http://svnbook.red-bean.com/en/1.2/svn.ref.svn.c.cleanup.html" class="link external">&raquo;&nbsp;SVN documentation on svn cleanup</a></li>
   </ul>
  </p>
 </div>


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