uTools-Manuals/docs/php/svn_delete.html
2019-04-28 19:00:34 +08:00

96 lines
3.7 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title>Delete items from a working copy or repository</title>
</head>
<body class="docs"><div id="layout">
<div id="layout-content"><div id="function.svn-delete" class="refentry">
<div class="refnamediv">
<h1 class="refname">svn_delete</h1>
<p class="verinfo">(PECL svn &gt;= 0.4.0)</p><p class="refpurpose"><span class="refname">svn_delete</span> &mdash; <span class="dc-title">Delete items from a working copy or repository</span></p>
</div>
<div class="refsect1 description" id="refsect1-function.svn-delete-description">
<h3 class="title">说明</h3>
<div class="methodsynopsis dc-description">
<span class="methodname"><strong>svn_delete</strong></span>
( <span class="methodparam"><span class="type">string</span> <code class="parameter">$path</code></span>
[, <span class="methodparam"><span class="type">bool</span> <code class="parameter">$force</code><span class="initializer"> = <strong><code>FALSE</code></strong></span></span>
] ) : <span class="type">bool</span></div>
<p class="para rdfs-comment">
Deletes the file, directory or symbolic link at <code class="parameter">path</code>
from the working directory. The item will be deleted from the repository
the next time you call <span class="function"><a href="svn_commit.html" class="function">svn_commit()</a></span> on the working
copy.
</p>
</div>
<div class="refsect1 parameters" id="refsect1-function.svn-delete-parameters">
<h3 class="title">参数</h3>
<p class="para">
<dl>
<dt>
<code class="parameter">path</code></dt>
<dd>
<p class="para">
Path of item to delete.
</p>
<blockquote class="note"><p><strong class="note">Note</strong>: <span class="simpara">相对路径将会以PHP执行文件所在目录作为当前工作目录进行解析。如果希望依据脚本所在目录解析, 使用<span class="function"><a href="realpath.html" class="function">realpath()</a></span> 或 dirname(__FILE__)。</span></p></blockquote>
</dd>
<dt>
<code class="parameter">force</code></dt>
<dd>
<p class="para">
If <strong><code>TRUE</code></strong>, the file will be deleted even if it has local modifications.
Otherwise, local modifications will result in a failure. Default is
<strong><code>FALSE</code></strong>
</p>
</dd>
</dl>
</p>
</div>
<div class="refsect1 returnvalues" id="refsect1-function.svn-delete-returnvalues">
<h3 class="title">返回值</h3>
<p class="para">
成功时返回 <strong><code>TRUE</code></strong> 或者在失败时返回 <strong><code>FALSE</code></strong>
</p>
</div>
<div class="refsect1 notes" id="refsect1-function.svn-delete-notes">
<h3 class="title">注释</h3>
<div class="warning"><strong class="warning">Warning</strong><p class="simpara">此函数是<em class="emphasis">实验性</em>的。此函数的表象,包括名称及其相关文档都可能在未来的
PHP 发布版本中未通知就被修改。使用本函数风险自担 。</p></div>
</div>
<div class="refsect1 seealso" id="refsect1-function.svn-delete-seealso">
<h3 class="title">参见</h3>
<p class="para">
<ul class="simplelist">
<li class="member"><a href="http://svnbook.red_bean.com/en/1.2/svn.ref.svn.c.delete.html" class="link external">&raquo;&nbsp;SVN documentation on svn
delete</a></li>
</ul>
</p>
</div>
</div></div></div></body></html>