mirror of
https://github.com/fofolee/uTools-Manuals.git
synced 2025-06-18 05:26:57 +08:00
161 lines
5.5 KiB
HTML
161 lines
5.5 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>Fetch a result field</title>
|
|
</head>
|
|
<body class="docs"><div id="layout">
|
|
<div id="layout-content"><div id="function.udm-get-res-field" class="refentry">
|
|
<div class="refnamediv">
|
|
<h1 class="refname">udm_get_res_field</h1>
|
|
<p class="verinfo">(PHP 4 >= 4.0.5, PHP 5 < 5.1.0, PECL mnogosearch >= 1.0.0)</p><p class="refpurpose"><span class="refname">udm_get_res_field</span> — <span class="dc-title">Fetch a result field</span></p>
|
|
|
|
</div>
|
|
|
|
<div class="refsect1 description" id="refsect1-function.udm-get-res-field-description">
|
|
<h3 class="title">说明</h3>
|
|
<div class="methodsynopsis dc-description">
|
|
<span class="methodname"><strong>udm_get_res_field</strong></span>
|
|
( <span class="methodparam"><span class="type">resource</span> <code class="parameter">$res</code></span>
|
|
, <span class="methodparam"><span class="type">int</span> <code class="parameter">$row</code></span>
|
|
, <span class="methodparam"><span class="type">int</span> <code class="parameter">$field</code></span>
|
|
) : <span class="type">string</span></div>
|
|
|
|
<p class="para rdfs-comment">
|
|
Fetch a mnoGoSearch result field.
|
|
</p>
|
|
</div>
|
|
|
|
|
|
<div class="refsect1 parameters" id="refsect1-function.udm-get-res-field-parameters">
|
|
<h3 class="title">参数</h3>
|
|
<p class="para">
|
|
<dl>
|
|
|
|
|
|
<dt>
|
|
<code class="parameter">res</code></dt>
|
|
|
|
<dd>
|
|
|
|
<p class="para">
|
|
<code class="parameter">res</code> - a link to result identifier, received
|
|
after call to <span class="function"><a href="udm_find.html" class="function">udm_find()</a></span>.
|
|
</p>
|
|
</dd>
|
|
|
|
|
|
|
|
<dt>
|
|
<code class="parameter">row</code></dt>
|
|
|
|
<dd>
|
|
|
|
<p class="para">
|
|
<code class="parameter">row</code> - the number of the link on the current page.
|
|
May have values from 0 to
|
|
<code class="parameter">UDM_PARAM_NUM_ROWS-1</code>.
|
|
</p>
|
|
</dd>
|
|
|
|
|
|
|
|
<dt>
|
|
<code class="parameter">field</code></dt>
|
|
|
|
<dd>
|
|
|
|
<p class="para">
|
|
<code class="parameter">field</code> - field identifier, may have the following values:
|
|
<ul class="itemizedlist">
|
|
<li class="listitem">
|
|
<span class="simpara">
|
|
<strong><code>UDM_FIELD_URL</code></strong> - document URL field
|
|
</span>
|
|
</li>
|
|
<li class="listitem">
|
|
<span class="simpara">
|
|
<strong><code>UDM_FIELD_CONTENT</code></strong> - document
|
|
<em>Content-type</em> field (for example, <em>text/html</em>).
|
|
</span>
|
|
</li>
|
|
<li class="listitem">
|
|
<span class="simpara">
|
|
<strong><code>UDM_FIELD_CATEGORY</code></strong> - document category field. Use
|
|
<span class="function"><a href="udm_cat_path.html" class="function">udm_cat_path()</a></span> to get full path to current category
|
|
from the categories tree root. (This parameter is available only in PHP
|
|
4.0.6 or later).
|
|
</span>
|
|
</li>
|
|
<li class="listitem">
|
|
<span class="simpara">
|
|
<strong><code>UDM_FIELD_TITLE</code></strong> - document title field.
|
|
</span>
|
|
</li>
|
|
<li class="listitem">
|
|
<span class="simpara">
|
|
<strong><code>UDM_FIELD_KEYWORDS</code></strong> - document keywords field (from META KEYWORDS tag).
|
|
</span>
|
|
</li>
|
|
<li class="listitem">
|
|
<span class="simpara">
|
|
<strong><code>UDM_FIELD_DESC</code></strong> - document description field (from META DESCRIPTION tag).
|
|
</span>
|
|
</li>
|
|
<li class="listitem">
|
|
<span class="simpara">
|
|
<strong><code>UDM_FIELD_TEXT</code></strong> - document body text (the first couple of lines to give an
|
|
idea of what the document is about).
|
|
</span>
|
|
</li>
|
|
<li class="listitem">
|
|
<span class="simpara">
|
|
<strong><code>UDM_FIELD_SIZE</code></strong> - document size.
|
|
</span>
|
|
</li>
|
|
<li class="listitem">
|
|
<span class="simpara">
|
|
<strong><code>UDM_FIELD_URLID</code></strong> - unique URL ID of the link.
|
|
</span>
|
|
</li>
|
|
<li class="listitem">
|
|
<span class="simpara">
|
|
<strong><code>UDM_FIELD_RATING</code></strong> - page rating (as calculated by mnoGoSearch).
|
|
</span>
|
|
</li>
|
|
<li class="listitem">
|
|
<span class="simpara">
|
|
<strong><code>UDM_FIELD_MODIFIED</code></strong> - last-modified field in unixtime format.
|
|
</span>
|
|
</li>
|
|
<li class="listitem">
|
|
<span class="simpara">
|
|
<strong><code>UDM_FIELD_ORDER</code></strong> - the number of the current document in set of found documents.
|
|
</span>
|
|
</li>
|
|
<li class="listitem">
|
|
<span class="simpara">
|
|
<strong><code>UDM_FIELD_CRC</code></strong> - document CRC.
|
|
</span>
|
|
</li>
|
|
</ul>
|
|
</p>
|
|
</dd>
|
|
|
|
|
|
</dl>
|
|
|
|
</p>
|
|
</div>
|
|
|
|
|
|
<div class="refsect1 returnvalues" id="refsect1-function.udm-get-res-field-returnvalues">
|
|
<h3 class="title">返回值</h3>
|
|
<p class="para">
|
|
<span class="function"><strong>udm_get_res_field()</strong></span> returns result field value on
|
|
success, <strong><code>FALSE</code></strong> on error.
|
|
</p>
|
|
</div>
|
|
|
|
|
|
</div></div></div></body></html> |