Location: PHPKode > projects > PHP Toolbox > apidoc/CDBTable.html
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

<HTML>
<HEAD>
   <TITLE>class CDBTable</TITLE>
   <META NAME="GENERATOR" CONTENT="DOC++ 3.4.8">
   <LINK REL="stylesheet" TYPE="text/css" HREF="docxx.css">
</HEAD>
 <body>
<h1>PHP/Toolbox#2</h1>
<a name=top>&nbsp;</a>
<div class="navbar">
=[<a href="index.html">Contents</a>]=[<a href="HIER.html">Class Tree</a>]=[<a href="#bottom">Bottom</a>]=
</div>
<br>
In file cdbtable.phps:<H2>class <A HREF="#DOC.DOCU">CDBTable</A></H2></H2><BLOCKQUOTE>The basic db-driven html table snippet class.</BLOCKQUOTE>
<HR>
<H2>Documentation</H2>
<BLOCKQUOTE>The basic db-driven html table snippet class.
The class can be rendered as a table with all #1 features:
<ul>
<li>	the split bar that allows table pagination;
<li>	the header that allows sorting by given field in ascending/descending order;
<li>	the insert text 'button' that invokes the edit script;
<li>	the set of data rows with by edit/delete text 'buttons' that also invokes the edit script.
<li>	and much more as #2 :)
</ul>
<xmp>
|	$table = new CDBTable("T1",
|		"select * from table_1",
|		array(
|			"FIELD_DESCR" => array(
|				new CField(array(
|					…
|				)),
|				…
|			),
|			…
|		)
|	);
|	…
|	$table->render();
</xmp>
Note, that just like CDBTabForm you HAVE NOT TO specify ALL cfields
while building but only SPECIFIC instead. E.g. you may specify some special
representation formats, or so.
@package	PHP/Toolbox::Table</BLOCKQUOTE>

<A NAME="DOC.DOCU"></A>
<HR>

<H2>Inheritance:</H2>
<H3>CDBTable
- <A HREF="CSplitBar.html">CSplitBar</A>
- <A HREF="CSnippet.html">CSnippet</A>
</H3>
<HR>

<DL>
<P><DL>
<DT><H3>Public Fields</H3><DD><DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif> <B><A HREF="#DOC.11.3">FIELD_DESCR</A></B>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif> <B><A HREF="#DOC.11.2">FORMFILE</A></B>
<DD><I> Script file that provides the record editing functionality.</I>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif> <B><A HREF="#DOC.11.1">QUERY</A></B>
</DL></P>

<P><DL>
<DT><H3>Public Methods</H3><DD><DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>function <B><A HREF="#DOC.11.15">ACTION_BUTTON</A></B>(&amp;$rec, $action, $label, $<!1><A HREF="CMarkup.html#DOC.20.1">attrs</A>=)
<DD><I> Returns HTML code for action button.</I>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>function <B><A HREF="#DOC.11.14">ACTION_URI</A></B>(&amp;$rec, $action)
<DD><I> Returns URI for action button when the concrete row need to be identified.</I>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>function <B><A HREF="#DOC.11.4">CDBTable</A></B>($<!1><A HREF="CSnippet.html#DOC.23.1">id</A>, $<!1><A HREF="CDBTable.html#DOC.11.1">QUERY</A>, $<!1><A HREF="CMarkup.html#DOC.20.1">attrs</A> = NULL)
<DD><I>Constructs the table: </I>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>function <B><A HREF="#DOC.11.12">FIELD</A></B>(&amp;$rec, $col)
<DD><I> Returns field from data record by column.</I>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>function <B><A HREF="#DOC.11.11">FIELDS_EACH</A></B>(&amp;$rec)
<DD><I> Returns <i>next</i> field from data record.</I>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>function <B><A HREF="#DOC.11.13">FIELD_VALUE</A></B>(&amp;$rec, $col)
<DD><I> Shortcut for <code>$field = $this->FIELD($rec, $col); $field->VALUE;</code></I>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>function <B><A HREF="#DOC.11.7">HEADER</A></B>($col)
<DD><I> Returns field header by column.</I>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>function <B><A HREF="#DOC.11.6">HEADERS_EACH</A></B>()
<DD><I> Returns next field header.</I>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>function <B><A HREF="#DOC.11.8">HEADER_BUTTON</A></B>($col, $label=)
<DD><I> Returns field header HTML code by column.</I>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>function <B><A HREF="#DOC.11.9">INS_URI</A></B>($action=)
<DD><I> Returns URI for 'INSERT'-like action button.</I>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>function <B><A HREF="#DOC.11.16">PAGE_END</A></B>($rset)
<DD><I> Ends the page rendering.</I>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>function <B><A HREF="#DOC.11.5">PAGE_START</A></B>(&amp;$rset)
<DD><I> Starts the page and sets recordset handle.</I>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>function <B><A HREF="#DOC.11.10">ROWS_EACH</A></B>($rset)
<DD><I> Returns next data record for current page.</I>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>function <B><A HREF="#DOC.11.20">do_query_page</A></B>(&amp;$rset, $sort, $sdir)
<DD><I> The helper function.</I>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>function <B><A HREF="#DOC.11.19">do_query_size</A></B>($<!1><A HREF="CDBTable.html#DOC.11.1">QUERY</A> = )
<DD><I> The helper function.</I>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>function <B><A HREF="#DOC.11.21">fetch_fields</A></B>($rset)
<DD><I> The helper function.</I>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>function <B><A HREF="#DOC.11.17">getFieldHeader</A></B>($field)
<DD><I> The helper function.</I>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>function <B><A HREF="#DOC.11.18">getFieldValue</A></B>($field, &amp;$rec)
<DD><I> The helper function.</I>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>function <B><A HREF="#DOC.11.24">getPrimaryKeys</A></B>(&amp;$rec)
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>function <B><A HREF="#DOC.11.22">identify</A></B>($action, &amp;$<!1><A HREF="CDBQueryForm.html#DOC.9.2">where</A>)
<DD><I> The helper function.</I>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>function <B><A HREF="#DOC.11.23">process_specially</A></B>(&amp;$fd, &amp;$value)
<DD><I> The helper function.</I>
</DL></P>

</DL>
<HR><H3>Inherited from <A HREF="CSplitBar.html">CSplitBar</A>:</H3>
<DL>
<P><DL>
<DT><H3>Public Fields</H3><DD><DT>
<IMG ALT="o" SRC=icon2.gif> <B>ITEM_COUNT</B>
<DT>
<IMG ALT="o" SRC=icon2.gif> <B>ITEM_END</B>
<DT>
<IMG ALT="o" SRC=icon2.gif> <B>ITEM_START</B>
<DT>
<IMG ALT="o" SRC=icon2.gif> <B>PAGE</B>
<DT>
<IMG ALT="o" SRC=icon2.gif> <B>PAGE_COUNT</B>
<DT>
<IMG ALT="o" SRC=icon2.gif> <B>PAGE_SIZE</B>
</DL></P>

<P><DL>
<DT><H3>Public Methods</H3><DD><DT>
<IMG ALT="o" SRC=icon2.gif>function <B>BUTTON</B>($<!1><A HREF="CTextarea.html#DOC.53.1">type</A>, $label, $<!1><A HREF="CMarkup.html#DOC.20.1">attrs</A>=)
<DT>
<IMG ALT="o" SRC=icon2.gif>function <B>FIRST_URI</B>()
<DT>
<IMG ALT="o" SRC=icon2.gif>function <B>LAST_URI</B>()
<DT>
<IMG ALT="o" SRC=icon2.gif>function <B>NEXT_URI</B>()
<DT>
<IMG ALT="o" SRC=icon2.gif>function <B>PAGE_LIST</B>($sep = , $<!1><A HREF="CMarkup.html#DOC.20.1">attrs</A>=array(,)
<DT>
<IMG ALT="o" SRC=icon2.gif>function <B>PAGE_LIST_EACH</B>(&amp;$i)
<DT>
<IMG ALT="o" SRC=icon2.gif>function <B>PAGE_LIST_START</B>(&amp;$i)
<DT>
<IMG ALT="o" SRC=icon2.gif>function <B>PREV_URI</B>()
<DT>
<IMG ALT="o" SRC=icon2.gif>function <B>START</B>($<!1><A HREF="CSplitBar.html#DOC.52.2">ITEM_COUNT</A>)
</DL></P>

</DL>
<HR><H3>Inherited from <A HREF="CSnippet.html">CSnippet</A>:</H3>
<DL>
<P><DL>
<DT><H3>Public Fields</H3><DD><DT>
<IMG ALT="o" SRC=icon2.gif> <B>buffer</B>
<DT>
<IMG ALT="o" SRC=icon2.gif> <B>class</B>
<DT>
<IMG ALT="o" SRC=icon2.gif> <B>id</B>
</DL></P>

<P><DL>
<DT><H3>Public Methods</H3><DD><DT>
<IMG ALT="o" SRC=icon2.gif>function <B>append</B>($fields)
<DT>
<IMG ALT="o" SRC=icon2.gif>function <B>buffer</B>($str)
<DT>
<IMG ALT="o" SRC=icon2.gif>function <B>flush</B>()
<DT>
<IMG ALT="o" SRC=icon2.gif>function <B>getExternal</B>($varName, $default = , $globalArrayName=)
<DT>
<IMG ALT="o" SRC=icon2.gif>function <B>getGlobal</B>($varName, $default = )
<DT>
<IMG ALT="o" SRC=icon2.gif>function <B>getVar</B>($varName)
<DT>
<IMG ALT="o" SRC=icon2.gif>function <B>qualify</B>($varName)
<DT>
<IMG ALT="o" SRC=icon2.gif>function <B>reset_buffer</B>($str=)
<DT>
<IMG ALT="o" SRC=icon2.gif>function <B>reset_class_vars</B>()
<DT>
<IMG ALT="o" SRC=icon2.gif>function <B>setExternal</B>($varName, $value, $globalArrayName=)
<DT>
<IMG ALT="o" SRC=icon2.gif>function <B>setGlobal</B>($varName, $value)
<DT>
<IMG ALT="o" SRC=icon2.gif>function <B>write</B>($str)
<DT>
<IMG ALT="o" SRC=icon2.gif>function <B>writeCode</B>($<!1><A HREF="CTextarea.html#DOC.53.3">code</A>, $eval=FALSE)
</DL></P>

</DL>
<DL>

<A NAME="QUERY"></A>
<A NAME="DOC.11.1"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B> QUERY</B></TT>
<DL><DT><DD></DL><P>
<A NAME="FORMFILE"></A>
<A NAME="DOC.11.2"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B> FORMFILE</B></TT>
<DD>
Script file that provides the record editing functionality.
Note that conctructor sets this field to $PHP_SELF by default.

<DL><DT><DT><B>See Also:</B><DD><!1><A HREF="CDBTable.html">CDBTable</A>()
<BR><!1><A HREF="CForm.html">CForm</A><BR><DD></DL><P>
<A NAME="FIELD_DESCR"></A>
<A NAME="DOC.11.3"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B> FIELD_DESCR</B></TT>
<DL><DT><DD></DL><P>
<A NAME="CDBTable"></A>
<A NAME="DOC.11.4"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>function CDBTable($<!1><A HREF="CSnippet.html#DOC.23.1">id</A>, $<!1><A HREF="CDBTable.html#DOC.11.1">QUERY</A>, $<!1><A HREF="CMarkup.html#DOC.20.1">attrs</A> = NULL)</B></TT>
<DD>Constructs the table:

<DL><DT><DT><B>Parameters:</B><DD><B>string</B> -  $<!1><A HREF="CSnippet.html#DOC.23.1">id</A>
<BR><B>string</B> -  $<!1><A HREF="CDBTable.html#DOC.11.1">QUERY</A>	- <!1><A HREF="CDBQueryForm.html#DOC.9.1">sql</A>-statement to get the data.
<BR><B>array</B> -   $<!1><A HREF="CMarkup.html#DOC.20.1">attrs</A>	- optional fields (see <!1><A HREF="CSnippet.html">CSnippet</A>).
<BR><DT><B>See Also:</B><DD>$<!1><A HREF="CDBTable.html#DOC.11.2">FORMFILE</A>
<BR><!1><A HREF="CSnippet.html">CSnippet</A><BR><DD></DL><P>
<A NAME="PAGE_START"></A>
<A NAME="DOC.11.5"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>function PAGE_START(&amp;$rset)</B></TT>
<DD>
Starts the page and sets recordset handle.
You use it in a table template before any other functions.

<DL><DT><DT><B>Parameters:</B><DD><B>resource</B> -  #	- [out] the page recordset.
<BR><DT><B>Returns:</B><DD>  int	- field count on success or false otherwise.<BR><DD></DL><P>
<A NAME="HEADERS_EACH"></A>
<A NAME="DOC.11.6"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>function HEADERS_EACH()</B></TT>
<DD>
Returns next field header.
You use it in a table template to render the field header.

<DL><DT><DT><B>Returns:</B><DD>  mixed	- field on success, false if there is no more field.
<BR><DT><B>See Also:</B><DD><!1><A HREF="CDBTable.html#DOC.11.7">HEADER</A>(), <!1><A HREF="CDBTable.html#DOC.11.17">getFieldHeader</A>()<BR><DD></DL><P>
<A NAME="HEADER"></A>
<A NAME="DOC.11.7"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>function HEADER($col)</B></TT>
<DD>
Returns field header by column.
You use it in a table template to render the field header.

<DL><DT><DT><B>Parameters:</B><DD><B>string</B> -  $col	- the column name.
<BR><DT><B>Returns:</B><DD>  mixed	- field on success, false if there is no such field.
<BR><DT><B>See Also:</B><DD><!1><A HREF="CDBTable.html#DOC.11.8">HEADER_BUTTON</A>(), <!1><A HREF="CDBTable.html#DOC.11.6">HEADERS_EACH</A>(), <!1><A HREF="CDBTable.html#DOC.11.17">getFieldHeader</A>()<BR><DD></DL><P>
<A NAME="HEADER_BUTTON"></A>
<A NAME="DOC.11.8"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>function HEADER_BUTTON($col, $label=)</B></TT>
<DD>
Returns field header HTML code by column.
You often use it in a table template to simplify the localization
of field header rendering.

<DL><DT><DT><B>Parameters:</B><DD><B>string</B> -  $col	- the column name.
<BR><B>string</B> -  $label	- the header label; if it is not specified,
field->LABEL is used.
<BR><DT><B>Returns:</B><DD>  string - HTML code.
<BR><DT><B>See Also:</B><DD><!1><A HREF="CDBTable.html#DOC.11.7">HEADER</A>()<BR><DD></DL><P>
<A NAME="INS_URI"></A>
<A NAME="DOC.11.9"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>function INS_URI($action=)</B></TT>
<DD>
Returns URI for 'INSERT'-like action button.
Note, the concrete row need not to be identified in this case.
You use it in a table template to set up the 'href' attribute of action links.

<DL><DT><DT><B>Parameters:</B><DD><B>string</B> - 	- the action.
<BR><DT><B>Returns:</B><DD>  string	- URI with action == 'INS' by default.<BR><DD></DL><P>
<A NAME="ROWS_EACH"></A>
<A NAME="DOC.11.10"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>function ROWS_EACH($rset)</B></TT>
<DD>
Returns next data record for current page.
It also prepare the next data row rendering.
You use it in a table template before any other row functions.

<DL><DT><DT><B>Parameters:</B><DD><B>resource</B> -  # $rset	- [in] the page recordset handle.
<BR><DT><B>Returns:</B><DD>  array	- data record.<BR><DD></DL><P>
<A NAME="FIELDS_EACH"></A>
<A NAME="DOC.11.11"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>function FIELDS_EACH(&amp;$rec)</B></TT>
<DD>
Returns <i>next</i> field from data record.
You use it in a table template to render the field value.

<DL><DT><DT><B>Parameters:</B><DD><B>array</B> - 	- [in] data record.
<BR><DT><B>Returns:</B><DD>  mixed	- field on success, false if there are no more fields.<BR><DD></DL><P>
<A NAME="FIELD"></A>
<A NAME="DOC.11.12"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>function FIELD(&amp;$rec, $col)</B></TT>
<DD>
Returns field from data record by column.
You use it in a table template to render the field value.

<DL><DT><DT><B>Parameters:</B><DD><B>array</B> - 	- data record.
<BR><B>string</B> - 	- column name.
<BR><DT><B>Returns:</B><DD>  mixed	- field on success, false if there are no more fields.<BR><DD></DL><P>
<A NAME="FIELD_VALUE"></A>
<A NAME="DOC.11.13"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>function FIELD_VALUE(&amp;$rec, $col)</B></TT>
<DD>
Shortcut for
<code>$field = $this->FIELD($rec, $col); $field->VALUE;</code>
<DL><DT><DD></DL><P>
<A NAME="ACTION_URI"></A>
<A NAME="DOC.11.14"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>function ACTION_URI(&amp;$rec, $action)</B></TT>
<DD>
Returns URI for action button when the concrete row need to be identified.
The recordset primary keys are used for this purpose.
You use it in a table template to set up the 'href' attribute of action links.

<DL><DT><DT><B>Parameters:</B><DD><B>array</B> - 	- [in] data record.
<BR><B>string</B> - 	- the action.
<BR><DT><B>Returns:</B><DD>  string	- action URI, or empty string if no primary keys are found.<BR><DD></DL><P>
<A NAME="ACTION_BUTTON"></A>
<A NAME="DOC.11.15"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>function ACTION_BUTTON(&amp;$rec, $action, $label, $<!1><A HREF="CMarkup.html#DOC.20.1">attrs</A>=)</B></TT>
<DD>
Returns HTML code for action button. E.g. 'EDIT', 'DELETE', etc.,
when the concrete row need to be identified; the recordset primary
keys are used for this purpose.
You often use it in a table template to simplify the localization
of field row controls rendering.

<DL><DT><DT><B>Parameters:</B><DD><B>array</B> - 	- [in] data record.
<BR><B>string</B> - 	- the action.
<BR><B>string</B> - 	- label.
<BR><B>string</B> - 	- additional <!1><A HREF="CMarkup.html#DOC.20.1">attrs</A>, e.g. 'class=smthspecial'.
<BR><DT><B>Returns:</B><DD>  string	- HTML code.<BR><DD></DL><P>
<A NAME="PAGE_END"></A>
<A NAME="DOC.11.16"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>function PAGE_END($rset)</B></TT>
<DD>
Ends the page rendering.
You use it in a table template after all other functions.
<DL><DT><DD></DL><P>
<A NAME="getFieldHeader"></A>
<A NAME="DOC.11.17"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>function getFieldHeader($field)</B></TT>
<DD>
The helper function.
Sets up (in addition to common field meta-info) the field header data:
<ul>
<li> LABEL - header label from FIELD_DESCR's 'label' or 'name'
(to provide compatibility with #1).
<li> SORT_URI - sorting uri.
<li> IGNORE - if the 'ignore' field in FIELD_DESCR is set.
</ul>
<DL><DT><DD></DL><P>
<A NAME="getFieldValue"></A>
<A NAME="DOC.11.18"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>function getFieldValue($field, &amp;$rec)</B></TT>
<DD>
The helper function.
Sets up (in addition to common field meta-info) the field data:
<ul>
<li> VALUE - processed field value.
<li> IGNORE - if the 'ignore' field in FIELD_DESCR is set.
</ul>
<DL><DT><DD></DL><P>
<A NAME="do_query_size"></A>
<A NAME="DOC.11.19"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>function do_query_size($<!1><A HREF="CDBTable.html#DOC.11.1">QUERY</A> = )</B></TT>
<DD>
The helper function.
It queries the dataset size.
Use it to get this size in advance.

<DL><DT><DT><B>Parameters:</B><DD><B>string</B> - 	- if it is NOT set then <!1><A HREF="CSplitBar.html#DOC.52.2">ITEM_COUNT</A> just recalculated,
otherwise new <!1><A HREF="CDBQueryForm.html#DOC.9.1">sql</A>-statement and field set is set up as well.
<BR><DT><B>Returns:</B><DD>  int	- ITEM_COUNT
<BR><DT><B>See Also:</B><DD>$<!1><A HREF="CSplitBar.html#DOC.52.2">ITEM_COUNT</A>
@access	public<BR><DD></DL><P>
<A NAME="do_query_page"></A>
<A NAME="DOC.11.20"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>function do_query_page(&amp;$rset, $sort, $sdir)</B></TT>
<DD>
The helper function.
Queries the page.

<DL><DT><DT><B>Parameters:</B><DD><B>resource</B> -  - [out] the recordset.
<BR><B>string</B> - 	- sorting field
<BR><B>bool</B> - 	- sorting direction (descendant if TRUE).
<BR><DT><B>Returns:</B><DD>  resource - the recordset.<BR><DD></DL><P>
<A NAME="fetch_fields"></A>
<A NAME="DOC.11.21"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>function fetch_fields($rset)</B></TT>
<DD>
The helper function.
Fetches the field set (meta-info)
from given recordset.

<DL><DT><DT><B>Parameters:</B><DD><B>resource</B> -  - recordset.
<BR><DT><B>Returns:</B><DD>  int	- field count.<BR><DD></DL><P>
<A NAME="identify"></A>
<A NAME="DOC.11.22"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>function identify($action, &amp;$<!1><A HREF="CDBQueryForm.html#DOC.9.2">where</A>)</B></TT>
<DD>
The helper function.
Returns http query string that identifies the dataset row.

<DL><DT><DT><B>Parameters:</B><DD><B>array</B> - 	- [in] '<!1><A HREF="CDBQueryForm.html#DOC.9.2">where</A>' clause condition list.
<BR><DT><B>Returns:</B><DD>  string	- http query string<BR><DD></DL><P>
<A NAME="process_specially"></A>
<A NAME="DOC.11.23"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>function process_specially(&amp;$fd, &amp;$value)</B></TT>
<DD>
The helper function.
Performs the custom processing of field value.
Use it to override the default behavior that is
the invokation of field descriptor process method.

<DL><DT><DT><B>See Also:</B><DD>CField.<BR><DD></DL><P>
<A NAME="getPrimaryKeys"></A>
<A NAME="DOC.11.24"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>function getPrimaryKeys(&amp;$rec)</B></TT>
<DL><DT><DD></DL><P></DL>

<HR><DL><DT><B>This class has no child classes.</B></DL>

<DL><DT><DD></DL><P> <a name=bottom>&nbsp;</a>
<div class="navbar">
=[<a href="index.html">Contents</a>]=[<a href="HIER.html">Class Tree</a>]=[<a href="#top">Top</a>]=
</div><HR>
<BR>
This page was generated with the help of <A HREF="http://docpp.sourceforge.net">DOC++</A>.
</BODY>
</HTML>
Return current item: PHP Toolbox