mirror of
https://github.com/fofolee/uTools-Manuals.git
synced 2025-10-26 14:42:56 +08:00
适配新版,更新uToolsAPI文档
This commit is contained in:
164
src/docs/php/yaml_emit_file.html
Normal file
164
src/docs/php/yaml_emit_file.html
Normal file
@@ -0,0 +1,164 @@
|
||||
<!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>Send the YAML representation of a value to a file</title>
|
||||
</head>
|
||||
<body class="docs"><div id="layout">
|
||||
<div id="layout-content"><div id="function.yaml-emit-file" class="refentry">
|
||||
<div class="refnamediv">
|
||||
<h1 class="refname">yaml_emit_file</h1>
|
||||
<p class="verinfo">(PECL yaml >= 0.5.0)</p><p class="refpurpose"><span class="refname">yaml_emit_file</span> — <span class="dc-title">Send the YAML representation of a value to a file</span></p>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="refsect1 description" id="refsect1-function.yaml-emit-file-description">
|
||||
<h3 class="title">说明</h3>
|
||||
<div class="methodsynopsis dc-description">
|
||||
<span class="methodname"><strong>yaml_emit_file</strong></span>
|
||||
( <span class="methodparam"><span class="type">string</span> <code class="parameter">$filename</code></span>
|
||||
, <span class="methodparam"><span class="type"><a href="language.pseudo-types.html#language.types.mixed" class="type mixed">mixed</a></span> <code class="parameter">$data</code></span>
|
||||
[, <span class="methodparam"><span class="type">int</span> <code class="parameter">$encoding</code><span class="initializer"> = YAML_ANY_ENCODING</span></span>
|
||||
[, <span class="methodparam"><span class="type">int</span> <code class="parameter">$linebreak</code><span class="initializer"> = YAML_ANY_BREAK</span></span>
|
||||
[, <span class="methodparam"><span class="type">array</span> <code class="parameter">$callbacks</code><span class="initializer"> = <strong><code>NULL</code></strong></span></span>
|
||||
]]] ) : <span class="type">bool</span></div>
|
||||
|
||||
<p class="para rdfs-comment">
|
||||
Generate a YAML representation of the provided <code class="parameter">data</code>
|
||||
in the <code class="parameter">filename</code>.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="refsect1 parameters" id="refsect1-function.yaml-emit-file-parameters">
|
||||
<h3 class="title">参数</h3>
|
||||
<p class="para">
|
||||
<dl>
|
||||
|
||||
|
||||
<dt>
|
||||
<code class="parameter">filename</code></dt>
|
||||
|
||||
<dd>
|
||||
|
||||
<p class="para">
|
||||
Path to the file.
|
||||
</p>
|
||||
</dd>
|
||||
|
||||
|
||||
|
||||
<dt>
|
||||
<code class="parameter">data</code></dt>
|
||||
|
||||
<dd>
|
||||
|
||||
<p class="para">
|
||||
The <code class="parameter">data</code> being encoded. Can be any type except
|
||||
a <span class="type"><a href="language.types.resource.html" class="type resource">resource</a></span>.
|
||||
</p>
|
||||
</dd>
|
||||
|
||||
|
||||
|
||||
<dt>
|
||||
<code class="parameter">encoding</code></dt>
|
||||
|
||||
<dd>
|
||||
|
||||
<p class="para">
|
||||
Output character encoding chosen from
|
||||
<strong><code>YAML_ANY_ENCODING</code></strong>,
|
||||
<strong><code>YAML_UTF8_ENCODING</code></strong>,
|
||||
<strong><code>YAML_UTF16LE_ENCODING</code></strong>,
|
||||
<strong><code>YAML_UTF16BE_ENCODING</code></strong>.
|
||||
</p>
|
||||
</dd>
|
||||
|
||||
|
||||
|
||||
<dt>
|
||||
<code class="parameter">linebreak</code></dt>
|
||||
|
||||
<dd>
|
||||
|
||||
<p class="para">
|
||||
Output linebreak style chosen from
|
||||
<strong><code>YAML_ANY_BREAK</code></strong>,
|
||||
<strong><code>YAML_CR_BREAK</code></strong>,
|
||||
<strong><code>YAML_LN_BREAK</code></strong>,
|
||||
<strong><code>YAML_CRLN_BREAK</code></strong>.
|
||||
</p>
|
||||
</dd>
|
||||
|
||||
|
||||
|
||||
<dt>
|
||||
<code class="parameter">callbacks</code></dt>
|
||||
|
||||
<dd>
|
||||
|
||||
<p class="para">
|
||||
Content handlers for emitting YAML nodes. Associative <span class="type"><a href="language.types.array.html" class="type array">array</a></span>
|
||||
of classname => <span class="type"><a href="language.types.callable.html" class="type callable">callable</a></span> mappings. See
|
||||
<a href="yaml.callbacks.emit.html" class="link">emit callbacks</a> for more
|
||||
details.
|
||||
</p>
|
||||
</dd>
|
||||
|
||||
|
||||
</dl>
|
||||
|
||||
</p>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="refsect1 returnvalues" id="refsect1-function.yaml-emit-file-returnvalues">
|
||||
<h3 class="title">返回值</h3>
|
||||
<p class="para">
|
||||
Returns <strong><code>TRUE</code></strong> on success.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="refsect1 changelog" id="refsect1-function.yaml-emit-file-changelog">
|
||||
<h3 class="title">更新日志</h3>
|
||||
<p class="para">
|
||||
<table class="doctable informaltable">
|
||||
|
||||
<thead>
|
||||
<tr>
|
||||
<th>版本</th>
|
||||
<th>说明</th>
|
||||
</tr>
|
||||
|
||||
</thead>
|
||||
|
||||
<tbody class="tbody">
|
||||
<tr>
|
||||
<td>1.1.0</td>
|
||||
<td>
|
||||
The <code class="parameter">callbacks</code> parameter was added.
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
</tbody>
|
||||
|
||||
</table>
|
||||
|
||||
</p>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="refsect1 seealso" id="refsect1-function.yaml-emit-file-seealso">
|
||||
<h3 class="title">参见</h3>
|
||||
<p class="para">
|
||||
<ul class="simplelist">
|
||||
<li class="member"><span class="function"><a href="yaml_emit.html" class="function" rel="rdfs-seeAlso">yaml_emit()</a> - Returns the YAML representation of a value</span></li>
|
||||
<li class="member"><span class="function"><a href="yaml_parse.html" class="function" rel="rdfs-seeAlso">yaml_parse()</a> - Parse a YAML stream</span></li>
|
||||
</ul>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
|
||||
</div></div></div></body></html>
|
||||
Reference in New Issue
Block a user