<?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-add.php',
    1 => 'svn_add',
    2 => 'Schedules the addition of an item in a working directory',
  ),
  'up' => 
  array (
    0 => 'ref.svn.php',
    1 => 'SVN Функції',
  ),
  'prev' => 
  array (
    0 => 'ref.svn.php',
    1 => 'SVN Функції',
  ),
  'next' => 
  array (
    0 => 'function.svn-auth-get-parameter.php',
    1 => 'svn_auth_get_parameter',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/svn/functions/svn-add.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.svn-add" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">svn_add</h1>
  <p class="verinfo">(PECL svn &gt;= 0.1.0)</p><p class="refpurpose"><span class="refname">svn_add</span> &mdash; <span class="dc-title">Schedules the addition of an item in a working directory</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-function.svn-add-description">
  <h3 class="title">Опис</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>svn_add</strong></span>(<span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$path</code></span>, <span class="methodparam"><span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span> <code class="parameter">$recursive</code><span class="initializer"> = <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong></span></span>, <span class="methodparam"><span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span> <code class="parameter">$force</code><span class="initializer"> = <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></span></span>): <span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span></div>

  <p class="para rdfs-comment">
   Adds the file, directory or symbolic link at <code class="parameter">path</code>
   to the working directory. The item will be added to the repository
   the next time you call <span class="function"><a href="function.svn-commit.php" class="function">svn_commit()</a></span> on the working
   copy.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.svn-add-parameters">
  <h3 class="title">Параметри</h3>
  <p class="para">
   <dl>
    
     <dt><code class="parameter">path</code></dt>
     <dd>
      <p class="para">
       Path of item to add.
      </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">recursive</code></dt>
     <dd>
      <p class="para">
       If item is directory, whether or not to recursively add
       all of its contents. Default is <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong>
      </p>
     </dd>
    
    
     <dt><code class="parameter">force</code></dt>
     <dd>
      <p class="para">
       If true, Subversion will recurse into already versioned directories
       in order to add unversioned files that may be hiding in those
       directories. Default is <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong>
      </p>
     </dd>
    
   </dl>
  </p>

 </div>

 <div class="refsect1 returnvalues" id="refsect1-function.svn-add-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-add-examples">
  <h3 class="title">Приклади</h3>
  <p class="para">
   <div class="example" id="example-1">
    <p><strong>Приклад #1 <span class="function"><strong>svn_add()</strong></span> example</strong></p>
    <div class="example-contents"><p>
     In a working directory where <strong class="userinput"><code>svn status</code></strong>
     returns:
    </p></div>
    <div class="example-contents screen">
<div class="examplescode"><pre class="examplescode">$ svn status
?      foobar.txt</pre>
</div>
    </div>
    <div class="example-contents"><p>...this code:</p></div>
    <div class="example-contents">
<div class="phpcode"><code><span style="color: #000000"><span style="color: #0000BB">&lt;?php<br />svn_add</span><span style="color: #007700">(</span><span style="color: #DD0000">'foobar.txt'</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">?&gt;</span></span></code></div>
    </div>

    <div class="example-contents"><p>
     ...will schedule <var class="filename">foobar.txt</var> for addition into
     the repository.
    </p></div>
   </div>
  </p>
 </div>


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


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