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

126 lines
4.5 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>Write full DTD tag</title>
</head>
<body class="docs"><div id="layout">
<div id="layout-content"><div id="function.xmlwriter-write-dtd" class="refentry">
<div class="refnamediv">
<h1 class="refname">XMLWriter::writeDtd</h1>
<h1 class="refname">xmlwriter_write_dtd</h1>
<p class="verinfo">(PHP 5 &gt;= 5.1.2, PHP 7, PECL xmlwriter &gt;= 0.1.0)</p><p class="refpurpose"><span class="refname">XMLWriter::writeDtd</span> -- <span class="refname">xmlwriter_write_dtd</span> &mdash; <span class="dc-title">Write full DTD tag</span></p>
</div>
<div class="refsect1 description" id="refsect1-function.xmlwriter-write-dtd-description">
<h3 class="title">说明</h3>
<p class="para">面向对象风格</p>
<div class="methodsynopsis dc-description">
<span class="methodname"><strong>XMLWriter::writeDtd</strong></span>
( <span class="methodparam"><span class="type">string</span> <code class="parameter">$name</code></span>
[, <span class="methodparam"><span class="type">string</span> <code class="parameter">$publicId</code></span>
[, <span class="methodparam"><span class="type">string</span> <code class="parameter">$systemId</code></span>
[, <span class="methodparam"><span class="type">string</span> <code class="parameter">$subset</code></span>
]]] ) : <span class="type">bool</span></div>
<p class="para rdfs-comment">过程化风格</p>
<div class="methodsynopsis dc-description">
<span class="methodname"><strong>xmlwriter_write_dtd</strong></span>
( <span class="methodparam"><span class="type">resource</span> <code class="parameter">$xmlwriter</code></span>
, <span class="methodparam"><span class="type">string</span> <code class="parameter">$name</code></span>
[, <span class="methodparam"><span class="type">string</span> <code class="parameter">$publicId</code></span>
[, <span class="methodparam"><span class="type">string</span> <code class="parameter">$systemId</code></span>
[, <span class="methodparam"><span class="type">string</span> <code class="parameter">$subset</code></span>
]]] ) : <span class="type">bool</span></div>
<p class="para rdfs-comment">
Writes a full DTD.
</p>
</div>
<div class="refsect1 parameters" id="refsect1-function.xmlwriter-write-dtd-parameters">
<h3 class="title">参数</h3>
<p class="para">
<dl>
<dt>
<code class="parameter">
xmlwriter</code></dt>
<dd>
<p class="para">仅用于过程调用。被修改的 XMLWriter <span class="type"><a href="language.types.resource.html" class="type resource">resource</a></span>。此资源来自于对 <span class="function"><a href="xmlwriter_open_uri.html" class="function">xmlwriter_open_uri()</a></span>
<span class="function"><a href="xmlwriter_open_memory.html" class="function">xmlwriter_open_memory()</a></span> 的调用。</p></dd>
<dt>
<code class="parameter">name</code></dt>
<dd>
<p class="para">
The DTD name.
</p>
</dd>
<dt>
<code class="parameter">publicId</code></dt>
<dd>
<p class="para">
The external subset public identifier.
</p>
</dd>
<dt>
<code class="parameter">systemId</code></dt>
<dd>
<p class="para">
The external subset system identifier.
</p>
</dd>
<dt>
<code class="parameter">subset</code></dt>
<dd>
<p class="para">
The content of the DTD.
</p>
</dd>
</dl>
</p>
</div>
<div class="refsect1 returnvalues" id="refsect1-function.xmlwriter-write-dtd-returnvalues">
<h3 class="title">返回值</h3>
<p class="para">
成功时返回 <strong><code>TRUE</code></strong> 或者在失败时返回 <strong><code>FALSE</code></strong>
</p>
</div>
<div class="refsect1 seealso" id="refsect1-function.xmlwriter-write-dtd-seealso">
<h3 class="title">参见</h3>
<p class="para">
<ul class="simplelist">
<li class="member"><span class="methodname"><a href="xmlwriter_start_dtd.html" class="methodname" rel="rdfs-seeAlso">XMLWriter::startDtd()</a> - Create start DTD tag</span></li>
<li class="member"><span class="methodname"><a href="xmlwriter_end_dtd.html" class="methodname" rel="rdfs-seeAlso">XMLWriter::endDtd()</a> - End current DTD</span></li>
</ul>
</p>
</div>
</div></div></div></body></html>