mirror of
https://github.com/fofolee/uTools-Manuals.git
synced 2025-06-18 05:26:57 +08:00
115 lines
4.1 KiB
HTML
115 lines
4.1 KiB
HTML
<!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>Returns record of paradox database</title>
|
|
</head>
|
|
<body class="docs"><div id="layout">
|
|
<div id="layout-content"><div id="function.px-retrieve-record" class="refentry">
|
|
<div class="refnamediv">
|
|
<h1 class="refname">px_retrieve_record</h1>
|
|
<p class="verinfo">(PECL paradox >= 1.4.0)</p><p class="refpurpose"><span class="refname">px_retrieve_record</span> — <span class="dc-title">Returns record of paradox database</span></p>
|
|
|
|
</div>
|
|
|
|
<div class="refsect1 description" id="refsect1-function.px-retrieve-record-description">
|
|
<h3 class="title">说明</h3>
|
|
<div class="methodsynopsis dc-description">
|
|
<span class="methodname"><strong>px_retrieve_record</strong></span>
|
|
( <span class="methodparam"><span class="type">resource</span> <code class="parameter">$pxdoc</code></span>
|
|
, <span class="methodparam"><span class="type">int</span> <code class="parameter">$num</code></span>
|
|
[, <span class="methodparam"><span class="type">int</span> <code class="parameter">$mode</code><span class="initializer"> = 0</span></span>
|
|
] ) : <span class="type">array</span></div>
|
|
|
|
<p class="para rdfs-comment">
|
|
This function is very similar to <span class="function"><a href="px_get_record.html" class="function">px_get_record()</a></span>
|
|
but uses internally a different approach to retrieve the data. It
|
|
relies on pxlib for reading each single field value, which usually
|
|
results in support for more field types.
|
|
</p>
|
|
<blockquote class="note"><p><strong class="note">Note</strong>:
|
|
<p class="para">
|
|
This function is only available if pxlib >= 0.6.0 is used.
|
|
</p>
|
|
</p></blockquote>
|
|
</div>
|
|
|
|
|
|
<div class="refsect1 parameters" id="refsect1-function.px-retrieve-record-parameters">
|
|
<h3 class="title">参数</h3>
|
|
<p class="para">
|
|
<dl>
|
|
|
|
|
|
<dt>
|
|
<code class="parameter">pxdoc</code></dt>
|
|
|
|
<dd>
|
|
|
|
<p class="para">
|
|
Resource identifier of the paradox database
|
|
as returned by <span class="function"><a href="px_new.html" class="function">px_new()</a></span>.
|
|
</p>
|
|
</dd>
|
|
|
|
|
|
|
|
<dt>
|
|
<code class="parameter">num</code></dt>
|
|
|
|
<dd>
|
|
|
|
<p class="para">
|
|
The record number is an artificial number counting records in the order
|
|
as they are stored in the database. The first record has number 0.
|
|
</p>
|
|
</dd>
|
|
|
|
|
|
|
|
<dt>
|
|
<code class="parameter">mode</code></dt>
|
|
|
|
<dd>
|
|
|
|
<p class="para">
|
|
The optional <code class="parameter">mode</code> can be
|
|
<strong><code>PX_KEYTOLOWER</code></strong> or <strong><code>PX_KEYTOUPPER</code></strong>
|
|
in order to convert the keys into lower or upper case. If
|
|
<code class="parameter">mode</code> is not passed or is 0, then the key will be
|
|
exactly like the field name. The element values will contain the field
|
|
values. NULL values will be retained and are different from 0.0, 0 or
|
|
the empty string. Fields of type <strong><code>PX_FIELD_TIME</code></strong>
|
|
will be returned as an integer counting the number of milliseconds
|
|
starting at midnight. A timestamp is a floating point value also
|
|
counting milliseconds starting at the beginning of julian calendar.
|
|
</p>
|
|
</dd>
|
|
|
|
|
|
</dl>
|
|
|
|
</p>
|
|
</div>
|
|
|
|
|
|
<div class="refsect1 returnvalues" id="refsect1-function.px-retrieve-record-returnvalues">
|
|
<h3 class="title">返回值</h3>
|
|
<p class="para">
|
|
Returns the <code class="parameter">num</code>'th record from the paradox
|
|
database. The record is returned as an associated array with its keys
|
|
being the field names.
|
|
</p>
|
|
</div>
|
|
|
|
|
|
<div class="refsect1 seealso" id="refsect1-function.px-retrieve-record-seealso">
|
|
<h3 class="title">参见</h3>
|
|
<p class="para">
|
|
<ul class="simplelist">
|
|
<li class="member"><span class="function"><a href="px_get_record.html" class="function" rel="rdfs-seeAlso">px_get_record()</a> - Returns record of paradox database</span></li>
|
|
</ul>
|
|
</p>
|
|
</div>
|
|
|
|
</div></div></div></body></html> |