Location: PHPKode > projects > PHP on Trax > johnpipi-trax-f599562/trax/doc/PHPonTraxTest/DB_result.html
<html>
<head>
<title>Docs For Class DB_result</title>
<link rel="stylesheet" type="text/css" href="../media/style.css">
</head>
<body>

<table border="0" cellspacing="0" cellpadding="0" height="48" width="100%">
  <tr>
    <td class="header_top">PHPonTraxTest</td>
  </tr>
  <tr><td class="header_line"><img src="../media/empty.png" width="1" height="1" border="0" alt=""  /></td></tr>
  <tr>
    <td class="header_menu">
  		  [ <a href="../classtrees_PHPonTraxTest.html" class="menu">class tree: PHPonTraxTest</a> ]
		  [ <a href="../elementindex_PHPonTraxTest.html" class="menu">index: PHPonTraxTest</a> ]
		  [ <a href="../elementindex.html" class="menu">all elements</a> ]
    </td>
  </tr>
  <tr><td class="header_line"><img src="../media/empty.png" width="1" height="1" border="0" alt=""  /></td></tr>
</table>

<table width="100%" border="0" cellpadding="0" cellspacing="0">
  <tr valign="top">
    <td width="200" class="menu">
	<div id="todolist">
			<p><a href="../todolist.html">Todo List</a></p>
	</div>
      <b>Packages:</b><br />
              <a href="../li_PHPonTrax.html">PHPonTrax</a><br />
              <a href="../li_PHPonTraxTest.html">PHPonTraxTest</a><br />
            <br /><br />
		<b>Tutorials/Manuals:</b><br />
					<strong>Package-level:</strong>
							<ul>
	<li type="square"><a href="../PHPonTraxTest/tutorial_PHPonTraxTest.pkg.html">PHP On Trax Test</a>
</ul>


									                        <b>Files:</b><br />
      	  <div class="package">
			<a href="../PHPonTraxTest/_test_ActionControllerErrorTest_php.html">		ActionControllerErrorTest.php
		</a><br>
			<a href="../PHPonTraxTest/_test_ActionControllerTest_php.html">		ActionControllerTest.php
		</a><br>
			<a href="../PHPonTraxTest/_test_ActionMailerTest_php.html">		ActionMailerTest.php
		</a><br>
			<a href="../PHPonTraxTest/_test_mockActionController_action_controller_php.html">		action_controller.php
		</a><br>
			<a href="../PHPonTraxTest/_test_ActiveRecordErrorTest_php.html">		ActiveRecordErrorTest.php
		</a><br>
			<a href="../PHPonTraxTest/_test_ActiveRecordHelperTest_php.html">		ActiveRecordHelperTest.php
		</a><br>
			<a href="../PHPonTraxTest/_test_ActiveRecordTest_php.html">		ActiveRecordTest.php
		</a><br>
			<a href="../PHPonTraxTest/_test_mockActiveRecord_active_record_php.html">		active_record.php
		</a><br>
			<a href="../PHPonTraxTest/_test_controllers_application_php.html">		application.php
		</a><br>
			<a href="../PHPonTraxTest/_test_ApplicationControllerTest_php.html">		ApplicationControllerTest.php
		</a><br>
			<a href="../PHPonTraxTest/_test_ApplicationMailerTest_php.html">		ApplicationMailerTest.php
		</a><br>
			<a href="../PHPonTraxTest/_test_AssetTagHelperTest_php.html">		AssetTagHelperTest.php
		</a><br>
			<a href="../PHPonTraxTest/_test_controllers_catalog_controller_php.html">		catalog_controller.php
		</a><br>
			<a href="../PHPonTraxTest/_test_DateHelperTest_php.html">		DateHelperTest.php
		</a><br>
			<a href="../PHPonTraxTest/_test_mockDB_DB_php.html">		DB.php
		</a><br>
			<a href="../PHPonTraxTest/_test_DispatcherTest_php.html">		DispatcherTest.php
		</a><br>
			<a href="../PHPonTraxTest/_test_FormHelperTest_php.html">		FormHelperTest.php
		</a><br>
			<a href="../PHPonTraxTest/_test_FormOptionsHelperTest_php.html">		FormOptionsHelperTest.php
		</a><br>
			<a href="../PHPonTraxTest/_test_FormTagHelperTest_php.html">		FormTagHelperTest.php
		</a><br>
			<a href="../PHPonTraxTest/_test_HelpersTest_php.html">		HelpersTest.php
		</a><br>
			<a href="../PHPonTraxTest/_test_InflectorTest_php.html">		InflectorTest.php
		</a><br>
			<a href="../PHPonTraxTest/_test_InputFilterTest_php.html">		InputFilterTest.php
		</a><br>
			<a href="../PHPonTraxTest/_test_JavaScriptHelperTest_php.html">		JavaScriptHelperTest.php
		</a><br>
			<a href="../PHPonTraxTest/_test_controllers_noclass_controller_php.html">		noclass_controller.php
		</a><br>
			<a href="../PHPonTraxTest/_test_RouterTest_php.html">		RouterTest.php
		</a><br>
			<a href="../PHPonTraxTest/_test_config_routes_php.html">		routes.php
		</a><br>
			<a href="../PHPonTraxTest/_test_runtests_php.html">		runtests.php
		</a><br>
			<a href="../PHPonTraxTest/_test_ScaffoldControllerTest_php.html">		ScaffoldControllerTest.php
		</a><br>
			<a href="../PHPonTraxTest/_test_SessionTest_php.html">		SessionTest.php
		</a><br>
			<a href="../PHPonTraxTest/_test_testenv_php.html">		testenv.php
		</a><br>
			<a href="../PHPonTraxTest/_test_TraxErrorTest_php.html">		TraxErrorTest.php
		</a><br>
			<a href="../PHPonTraxTest/_test_TraxGeneratorTest_php.html">		TraxGeneratorTest.php
		</a><br>
			<a href="../PHPonTraxTest/_test_UrlHelperTest_php.html">		UrlHelperTest.php
		</a><br>
	  </div><br />

      
            <b>Classes:</b><br />
        <div class="package">
		    		<a href="../PHPonTraxTest/ActionController.html">ActionController</a><br />
	    		<a href="../PHPonTraxTest/ActionControllerErrorTest.html">ActionControllerErrorTest</a><br />
	    		<a href="../PHPonTraxTest/ActionControllerTest.html">ActionControllerTest</a><br />
	    		<a href="../PHPonTraxTest/ActionMailerTest.html">ActionMailerTest</a><br />
	    		<a href="../PHPonTraxTest/ActiveRecord.html">ActiveRecord</a><br />
	    		<a href="../PHPonTraxTest/ActiveRecordErrorTest.html">ActiveRecordErrorTest</a><br />
	    		<a href="../PHPonTraxTest/ActiveRecordHelperTest.html">ActiveRecordHelperTest</a><br />
	    		<a href="../PHPonTraxTest/ActiveRecordTest.html">ActiveRecordTest</a><br />
	    		<a href="../PHPonTraxTest/ApplicationControllerTest.html">ApplicationControllerTest</a><br />
	    		<a href="../PHPonTraxTest/ApplicationMailerTest.html">ApplicationMailerTest</a><br />
	    		<a href="../PHPonTraxTest/AssetTagHelperTest.html">AssetTagHelperTest</a><br />
	    		<a href="../PHPonTraxTest/CatalogController.html">CatalogController</a><br />
	    		<a href="../PHPonTraxTest/DataType.html">DataType</a><br />
	    		<a href="../PHPonTraxTest/DateHelperTest.html">DateHelperTest</a><br />
	    		<a href="../PHPonTraxTest/DB.html">DB</a><br />
	    		<a href="../PHPonTraxTest/DB_common.html">DB_common</a><br />
	    		<a href="../PHPonTraxTest/DB_Error.html">DB_Error</a><br />
	    		<a href="../PHPonTraxTest/DB_find_all_result.html">DB_find_all_result</a><br />
	    		<a href="../PHPonTraxTest/DB_mysql.html">DB_mysql</a><br />
	    		<a href="../PHPonTraxTest/DB_result.html">DB_result</a><br />
	    		<a href="../PHPonTraxTest/DB_row.html">DB_row</a><br />
	    		<a href="../PHPonTraxTest/DispatcherTest.html">DispatcherTest</a><br />
	    		<a href="../PHPonTraxTest/DummyController.html">DummyController</a><br />
	    		<a href="../PHPonTraxTest/ExDateHelper.html">ExDateHelper</a><br />
	    		<a href="../PHPonTraxTest/ExtHelpers.html">ExtHelpers</a><br />
	    		<a href="../PHPonTraxTest/FormHelperTest.html">FormHelperTest</a><br />
	    		<a href="../PHPonTraxTest/FormOptionsHelperTest.html">FormOptionsHelperTest</a><br />
	    		<a href="../PHPonTraxTest/FormTagHelperTest.html">FormTagHelperTest</a><br />
	    		<a href="../PHPonTraxTest/HelpersTest.html">HelpersTest</a><br />
	    		<a href="../PHPonTraxTest/InflectorTest.html">InflectorTest</a><br />
	    		<a href="../PHPonTraxTest/InputFilterTest.html">InputFilterTest</a><br />
	    		<a href="../PHPonTraxTest/JavaScriptHelperTest.html">JavaScriptHelperTest</a><br />
	    		<a href="../PHPonTraxTest/PersonName.html">PersonName</a><br />
	    		<a href="../PHPonTraxTest/RouterTest.html">RouterTest</a><br />
	    		<a href="../PHPonTraxTest/ScaffoldControllerTest.html">ScaffoldControllerTest</a><br />
	    		<a href="../PHPonTraxTest/SessionTest.html">SessionTest</a><br />
	    		<a href="../PHPonTraxTest/TraxErrorTest.html">TraxErrorTest</a><br />
	    		<a href="../PHPonTraxTest/TraxGeneratorTest.html">TraxGeneratorTest</a><br />
	    		<a href="../PHPonTraxTest/UrlHelperTest.html">UrlHelperTest</a><br />
	  </div>

                </td>
    <td>
      <table cellpadding="10" cellspacing="0" width="100%" border="0"><tr><td valign="top">

<h1>Class: DB_result</h1>
Source Location: /test/mockDB/DB.php<br /><br />


<table width="100%" border="0">
<tr><td valign="top">

<h3><a href="#class_details">Class Overview</a></h3>
<pre></pre><br />
<div class="description">Mock DB_result</div><br /><br />
<h4>Author(s):</h4>
<ul>
        </ul>




    


</td>



<td valign="top">
<h3><a href="#class_methods">Methods</a></h3>
<ul>
    <li><a href="../PHPonTraxTest/DB_result.html#methodDB_result">DB_result</a></li>
    <li><a href="../PHPonTraxTest/DB_result.html#methodfetchInto">fetchInto</a></li>
    <li><a href="../PHPonTraxTest/DB_result.html#methodfetchRow">fetchRow</a></li>
    <li><a href="../PHPonTraxTest/DB_result.html#methodfree">free</a></li>
    <li><a href="../PHPonTraxTest/DB_result.html#methodgetQuery">getQuery</a></li>
    <li><a href="../PHPonTraxTest/DB_result.html#methodgetRowCounter">getRowCounter</a></li>
    <li><a href="../PHPonTraxTest/DB_result.html#methodnextResult">nextResult</a></li>
    <li><a href="../PHPonTraxTest/DB_result.html#methodnumCols">numCols</a></li>
    <li><a href="../PHPonTraxTest/DB_result.html#methodnumRows">numRows</a></li>
    <li><a href="../PHPonTraxTest/DB_result.html#methodsetOption">setOption</a></li>
  </ul>
</td>

</tr></table>
<hr />

<table width="100%" border="0"><tr>


<td valign="top">
<h3>Child classes:</h3>
<div class="tags">
<dl>
<dt><a href="../PHPonTraxTest/DB_find_all_result.html">DB_find_all_result</a></dt>
	<dd>Mock DB_result</dd>
</dl>
</div>
</td>




</tr></table>
<hr />

<a name="class_details"></a>
<h3>Class Details</h3>
<div class="tags">
[line <a href="..//__filesource/fsource_PHPonTraxTest__testmockDBDB.php.html#a2315">2315</a>]<br />
Mock DB_result<br /><br /><br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><b>todo:</b>&nbsp;&nbsp;</td><td>Implement mock DB_result</td>
  </tr>
</table>
</div>
</div><br /><br />
<div class="top">[ <a href="#top">Top</a> ]</div><br />


<hr />
<a name="class_methods"></a>
<h3>Class Methods</h3>
<div class="tags">
  <hr />
	<a name="methodDB_result"></a>
	<h3>constructor DB_result <span class="smalllinenumber">[line <a href="..//__filesource/fsource_PHPonTraxTest__testmockDBDB.php.html#a2327">2327</a>]</span></h3>
	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">
		<code>void DB_result(
object
&$dbh, resource
$result, [array
$options = array()])</code>
    </td></tr></table>
    </td></tr></table><br />
	
		This constructor sets the object's properties<br /><br /><br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><b>todo:</b>&nbsp;&nbsp;</td><td>Implement mock DB_result::constructor</td>
  </tr>
</table>
</div>
<br /><br />


        <h4>Parameters:</h4>
    <div class="tags">
    <table border="0" cellspacing="0" cellpadding="0">
          <tr>
        <td class="type">object&nbsp;&nbsp;</td>
        <td><b>&$dbh</b>&nbsp;&nbsp;</td>
        <td>the DB object reference</td>
      </tr>
          <tr>
        <td class="type">resource&nbsp;&nbsp;</td>
        <td><b>$result</b>&nbsp;&nbsp;</td>
        <td>the result resource id</td>
      </tr>
          <tr>
        <td class="type">array&nbsp;&nbsp;</td>
        <td><b>$options</b>&nbsp;&nbsp;</td>
        <td>an associative array with result options</td>
      </tr>
        </table>
    </div><br />
        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methodfetchInto"></a>
	<h3>method fetchInto <span class="smalllinenumber">[line <a href="..//__filesource/fsource_PHPonTraxTest__testmockDBDB.php.html#a2427">2427</a>]</span></h3>
	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">
		<code>mixed fetchInto(
array
&$arr, [int
$fetchmode = DB_FETCHMODE_DEFAULT], [int
$rownum = null])</code>
    </td></tr></table>
    </td></tr></table><br />
	
		Fetch a row of data into an array which is passed by reference<br /><br /><br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><b>return:</b>&nbsp;&nbsp;</td><td>DB_OK if a row is processed, NULL when the end of the                  result set is reached or a DB_Error object on failure</td>
  </tr>
  <tr>
    <td><b>todo:</b>&nbsp;&nbsp;</td><td>Implement mock DB_result::fetchInto()</td>
  </tr>
  <tr>
    <td><b>see:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTraxTest/DB_common.html#methodsetOption">DB_common::setOption()</a>, <a href="../PHPonTraxTest/DB_common.html#methodsetFetchMode">DB_common::setFetchMode()</a></td>
  </tr>
</table>
</div>
<br /><br />


        <h4>Parameters:</h4>
    <div class="tags">
    <table border="0" cellspacing="0" cellpadding="0">
          <tr>
        <td class="type">array&nbsp;&nbsp;</td>
        <td><b>&$arr</b>&nbsp;&nbsp;</td>
        <td>the variable where the data should be placed</td>
      </tr>
          <tr>
        <td class="type">int&nbsp;&nbsp;</td>
        <td><b>$fetchmode</b>&nbsp;&nbsp;</td>
        <td>the constant indicating how to format the data</td>
      </tr>
          <tr>
        <td class="type">int&nbsp;&nbsp;</td>
        <td><b>$rownum</b>&nbsp;&nbsp;</td>
        <td>the row number to fetch (index starts at 0)</td>
      </tr>
        </table>
    </div><br />
        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methodfetchRow"></a>
	<h3>method fetchRow <span class="smalllinenumber">[line <a href="..//__filesource/fsource_PHPonTraxTest__testmockDBDB.php.html#a2363">2363</a>]</span></h3>
	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">
		<code>mixed &amp;fetchRow(
[int
$fetchmode = DB_FETCHMODE_DEFAULT], [int
$rownum = null])</code>
    </td></tr></table>
    </td></tr></table><br />
	
		Fetch a row of data and return it by reference into an array<br /><br /><br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><b>return:</b>&nbsp;&nbsp;</td><td>an array or object containing the row's data,                  NULL when the end of the result set is reached                  or a DB_Error object on failure.</td>
  </tr>
  <tr>
    <td><b>todo:</b>&nbsp;&nbsp;</td><td>Implement mock DB_result::fetchRow()</td>
  </tr>
  <tr>
    <td><b>see:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTraxTest/DB_common.html#methodsetOption">DB_common::setOption()</a>, <a href="../PHPonTraxTest/DB_common.html#methodsetFetchMode">DB_common::setFetchMode()</a></td>
  </tr>
</table>
</div>
<br /><br />

	<p>Overridden in child classes as:<br />
		<dl>
	<dt><a href="../PHPonTraxTest/DB_find_all_result.html#methodfetchRow">DB_find_all_result::fetchRow()</a></dt>
		<dd></dd>
	</dl>
	</p>

        <h4>Parameters:</h4>
    <div class="tags">
    <table border="0" cellspacing="0" cellpadding="0">
          <tr>
        <td class="type">int&nbsp;&nbsp;</td>
        <td><b>$fetchmode</b>&nbsp;&nbsp;</td>
        <td>the constant indicating how to format the data</td>
      </tr>
          <tr>
        <td class="type">int&nbsp;&nbsp;</td>
        <td><b>$rownum</b>&nbsp;&nbsp;</td>
        <td>the row number to fetch (index starts at 0)</td>
      </tr>
        </table>
    </div><br />
        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methodfree"></a>
	<h3>method free <span class="smalllinenumber">[line <a href="..//__filesource/fsource_PHPonTraxTest__testmockDBDB.php.html#a2537">2537</a>]</span></h3>
	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">
		<code>bool free(
)</code>
    </td></tr></table>
    </td></tr></table><br />
	
		Frees the resources allocated for this result set<br /><br /><br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><b>return:</b>&nbsp;&nbsp;</td><td>true on success.  A DB_Error object on failure.</td>
  </tr>
  <tr>
    <td><b>todo:</b>&nbsp;&nbsp;</td><td>Implement mock DB_result::free()</td>
  </tr>
</table>
</div>
<br /><br />


        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methodgetQuery"></a>
	<h3>method getQuery <span class="smalllinenumber">[line <a href="..//__filesource/fsource_PHPonTraxTest__testmockDBDB.php.html#a2554">2554</a>]</span></h3>
	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">
		<code>string getQuery(
)</code>
    </td></tr></table>
    </td></tr></table><br />
	
		Determine the query string that created this result<br /><br /><br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><b>return:</b>&nbsp;&nbsp;</td><td>the query string</td>
  </tr>
  <tr>
    <td><b>todo:</b>&nbsp;&nbsp;</td><td>Implement mock DB_result::getQuery()</td>
  </tr>
</table>
</div>
<br /><br />


        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methodgetRowCounter"></a>
	<h3>method getRowCounter <span class="smalllinenumber">[line <a href="..//__filesource/fsource_PHPonTraxTest__testmockDBDB.php.html#a2565">2565</a>]</span></h3>
	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">
		<code>integer getRowCounter(
)</code>
    </td></tr></table>
    </td></tr></table><br />
	
		Tells which row number is currently being processed<br /><br /><br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><b>return:</b>&nbsp;&nbsp;</td><td>the current row being looked at.  Starts at 1.</td>
  </tr>
  <tr>
    <td><b>todo:</b>&nbsp;&nbsp;</td><td>Implement mock DB_result::getRowCounter()</td>
  </tr>
</table>
</div>
<br /><br />


        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methodnextResult"></a>
	<h3>method nextResult <span class="smalllinenumber">[line <a href="..//__filesource/fsource_PHPonTraxTest__testmockDBDB.php.html#a2526">2526</a>]</span></h3>
	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">
		<code>bool nextResult(
)</code>
    </td></tr></table>
    </td></tr></table><br />
	
		Get the next result if a batch of queries was executed<br /><br /><br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><b>return:</b>&nbsp;&nbsp;</td><td>true if a new result is available or false if not</td>
  </tr>
  <tr>
    <td><b>todo:</b>&nbsp;&nbsp;</td><td>Implement mock DB_result::nextResult()</td>
  </tr>
</table>
</div>
<br /><br />


        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methodnumCols"></a>
	<h3>method numCols <span class="smalllinenumber">[line <a href="..//__filesource/fsource_PHPonTraxTest__testmockDBDB.php.html#a2486">2486</a>]</span></h3>
	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">
		<code>int numCols(
)</code>
    </td></tr></table>
    </td></tr></table><br />
	
		Get the the number of columns in a result set<br /><br /><br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><b>return:</b>&nbsp;&nbsp;</td><td>the number of columns.  A DB_Error object on failure.</td>
  </tr>
  <tr>
    <td><b>todo:</b>&nbsp;&nbsp;</td><td>Implement mock DB_result::numCols()</td>
  </tr>
</table>
</div>
<br /><br />


        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methodnumRows"></a>
	<h3>method numRows <span class="smalllinenumber">[line <a href="..//__filesource/fsource_PHPonTraxTest__testmockDBDB.php.html#a2497">2497</a>]</span></h3>
	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">
		<code>int numRows(
)</code>
    </td></tr></table>
    </td></tr></table><br />
	
		Get the number of rows in a result set<br /><br /><br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><b>return:</b>&nbsp;&nbsp;</td><td>the number of rows.  A DB_Error object on failure.</td>
  </tr>
  <tr>
    <td><b>todo:</b>&nbsp;&nbsp;</td><td>Implement mock DB_result::numRows()</td>
  </tr>
</table>
</div>
<br /><br />


        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methodsetOption"></a>
	<h3>method setOption <span class="smalllinenumber">[line <a href="..//__filesource/fsource_PHPonTraxTest__testmockDBDB.php.html#a2339">2339</a>]</span></h3>
	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">
		<code>void setOption(
string
$key, [mixed
$value = null])</code>
    </td></tr></table>
    </td></tr></table><br />
	
		Set options for the DB_result object<br /><br /><br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><b>todo:</b>&nbsp;&nbsp;</td><td>Implement mock DB_result::setOption()</td>
  </tr>
</table>
</div>
<br /><br />


        <h4>Parameters:</h4>
    <div class="tags">
    <table border="0" cellspacing="0" cellpadding="0">
          <tr>
        <td class="type">string&nbsp;&nbsp;</td>
        <td><b>$key</b>&nbsp;&nbsp;</td>
        <td>the option to set</td>
      </tr>
          <tr>
        <td class="type">mixed&nbsp;&nbsp;</td>
        <td><b>$value</b>&nbsp;&nbsp;</td>
        <td>the value to set the option to</td>
      </tr>
        </table>
    </div><br />
        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
</div><br />


        <div class="credit">
		    <hr />
		    Documentation generated on Thu, 04 May 2006 19:47:32 -0600 by <a href="http://www.phpdoc.org">phpDocumentor 1.3.0RC4</a>
	      </div>
      </td></tr></table>
    </td>
  </tr>
</table>

</body>
</html>
Return current item: PHP on Trax