Location: PHPKode > projects > PHP on Trax > johnpipi-trax-f599562/trax/doc/PHPonTraxTest/DB_common.html
<html>
<head>
<title>Docs For Class DB_common</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_common</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>PEAR
   |
   --DB_common</pre><br />
<div class="description">Mock DB_common for testing</div><br /><br />
<h4>Author(s):</h4>
<ul>
        </ul>




    


</td>

<td valign="top">
<h3><a href="#class_vars">Variables</a></h3>
<ul>
    <li><a href="../PHPonTraxTest/DB_common.html#var$database">$database</a></li>
    <li><a href="../PHPonTraxTest/DB_common.html#var$expected_list">$expected_list</a></li>
    <li><a href="../PHPonTraxTest/DB_common.html#var$expected_list_cursor">$expected_list_cursor</a></li>
    <li><a href="../PHPonTraxTest/DB_common.html#var$expected_query">$expected_query</a></li>
    <li><a href="../PHPonTraxTest/DB_common.html#var$expected_result">$expected_result</a></li>
    <li><a href="../PHPonTraxTest/DB_common.html#var$options">$options</a></li>
  </ul>
</td>


<td valign="top">
<h3><a href="#class_methods">Methods</a></h3>
<ul>
    <li><a href="../PHPonTraxTest/DB_common.html#methodDB_common">DB_common</a></li>
    <li><a href="../PHPonTraxTest/DB_common.html#methodaffectedRows">affectedRows</a></li>
    <li><a href="../PHPonTraxTest/DB_common.html#methodautoCommit">autoCommit</a></li>
    <li><a href="../PHPonTraxTest/DB_common.html#methodautoExecute">autoExecute</a></li>
    <li><a href="../PHPonTraxTest/DB_common.html#methodautoPrepare">autoPrepare</a></li>
    <li><a href="../PHPonTraxTest/DB_common.html#methodbuildManipSQL">buildManipSQL</a></li>
    <li><a href="../PHPonTraxTest/DB_common.html#methodcommit">commit</a></li>
    <li><a href="../PHPonTraxTest/DB_common.html#methodcreateSequence">createSequence</a></li>
    <li><a href="../PHPonTraxTest/DB_common.html#methoddropSequence">dropSequence</a></li>
    <li><a href="../PHPonTraxTest/DB_common.html#methoderrorCode">errorCode</a></li>
    <li><a href="../PHPonTraxTest/DB_common.html#methoderrorMessage">errorMessage</a></li>
    <li><a href="../PHPonTraxTest/DB_common.html#methoderrorNative">errorNative</a></li>
    <li><a href="../PHPonTraxTest/DB_common.html#methodescapeSimple">escapeSimple</a></li>
    <li><a href="../PHPonTraxTest/DB_common.html#methodexecute">execute</a></li>
    <li><a href="../PHPonTraxTest/DB_common.html#methodexecuteEmulateQuery">executeEmulateQuery</a></li>
    <li><a href="../PHPonTraxTest/DB_common.html#methodexecuteMultiple">executeMultiple</a></li>
    <li><a href="../PHPonTraxTest/DB_common.html#methodexpect_queries">expect_queries</a></li>
    <li><a href="../PHPonTraxTest/DB_common.html#methodexpect_query">expect_query</a></li>
    <li><a href="../PHPonTraxTest/DB_common.html#methodfreePrepared">freePrepared</a></li>
    <li><a href="../PHPonTraxTest/DB_common.html#methodgetAll">getAll</a></li>
    <li><a href="../PHPonTraxTest/DB_common.html#methodgetAssoc">getAssoc</a></li>
    <li><a href="../PHPonTraxTest/DB_common.html#methodgetCol">getCol</a></li>
    <li><a href="../PHPonTraxTest/DB_common.html#methodgetListOf">getListOf</a></li>
    <li><a href="../PHPonTraxTest/DB_common.html#methodgetOne">getOne</a></li>
    <li><a href="../PHPonTraxTest/DB_common.html#methodgetOption">getOption</a></li>
    <li><a href="../PHPonTraxTest/DB_common.html#methodgetRow">getRow</a></li>
    <li><a href="../PHPonTraxTest/DB_common.html#methodgetSequenceName">getSequenceName</a></li>
    <li><a href="../PHPonTraxTest/DB_common.html#methodgetSpecialQuery">getSpecialQuery</a></li>
    <li><a href="../PHPonTraxTest/DB_common.html#methodlimitQuery">limitQuery</a></li>
    <li><a href="../PHPonTraxTest/DB_common.html#methodmodifyLimitQuery">modifyLimitQuery</a></li>
    <li><a href="../PHPonTraxTest/DB_common.html#methodmodifyQuery">modifyQuery</a></li>
    <li><a href="../PHPonTraxTest/DB_common.html#methodnextId">nextId</a></li>
    <li><a href="../PHPonTraxTest/DB_common.html#methodnumRows">numRows</a></li>
    <li><a href="../PHPonTraxTest/DB_common.html#methodprepare">prepare</a></li>
    <li><a href="../PHPonTraxTest/DB_common.html#methodprovides">provides</a></li>
    <li><a href="../PHPonTraxTest/DB_common.html#methodquery">query</a></li>
    <li><a href="../PHPonTraxTest/DB_common.html#methodquoteIdentifier">quoteIdentifier</a></li>
    <li><a href="../PHPonTraxTest/DB_common.html#methodquoteSmart">quoteSmart</a></li>
    <li><a href="../PHPonTraxTest/DB_common.html#methodraiseError">raiseError</a></li>
    <li><a href="../PHPonTraxTest/DB_common.html#methodrollback">rollback</a></li>
    <li><a href="../PHPonTraxTest/DB_common.html#methodsetFetchMode">setFetchMode</a></li>
    <li><a href="../PHPonTraxTest/DB_common.html#methodsetOption">setOption</a></li>
    <li><a href="../PHPonTraxTest/DB_common.html#methodtableInfo">tableInfo</a></li>
    <li><a href="../PHPonTraxTest/DB_common.html#methodtally_queries">tally_queries</a></li>
    <li><a href="../PHPonTraxTest/DB_common.html#method_convertNullArrayValuesToEmpty">_convertNullArrayValuesToEmpty</a></li>
    <li><a href="../PHPonTraxTest/DB_common.html#method_rtrimArrayValues">_rtrimArrayValues</a></li>
    <li><a href="../PHPonTraxTest/DB_common.html#method__sleep">__sleep</a></li>
    <li><a href="../PHPonTraxTest/DB_common.html#method__toString">__toString</a></li>
    <li><a href="../PHPonTraxTest/DB_common.html#method__wakeup">__wakeup</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_mysql.html">DB_mysql</a></dt>
	<dd>Mock DB_mysql class</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#a650">650</a>]<br />
Mock DB_common for testing<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_common class</td>
  </tr>
</table>
</div>
</div><br /><br />
<div class="top">[ <a href="#top">Top</a> ]</div><br />

<hr />
<a name="class_vars"></a>
<h3>Class Variables</h3>
<div class="tags">
	<a name="var$database"></a>
	<p></p>
	<h4>$database = <span class="value">array('person_names'&nbsp;=&gt;
<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//&nbsp;&nbsp;Description
<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;array('info'&nbsp;=&gt;
<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;array(array('table'&nbsp;=&gt;&nbsp;'person_names',
<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'name'&nbsp;&nbsp;=&gt;&nbsp;'id',
<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'type'&nbsp;&nbsp;=&gt;&nbsp;'int',
<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'len'&nbsp;&nbsp;&nbsp;=&gt;&nbsp;'11',
<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'flags'&nbsp;=&gt;&nbsp;'primary_key&nbsp;not_null'),array('table'=&gt;'person_names','name'=&gt;'prefix','type'=&gt;'string','len'=&gt;'20','flags'=&gt;''),array('table'=&gt;'person_names','name'=&gt;'first_name','type'=&gt;'string','len'=&gt;'40','flags'=&gt;''),array('table'=&gt;'person_names','name'=&gt;'mi','type'=&gt;'string','len'=&gt;'1','flags'=&gt;''),array('table'=&gt;'person_names','name'=&gt;'last_name','type'=&gt;'string','len'=&gt;'40','flags'=&gt;''),array('table'=&gt;'person_names','name'=&gt;'suffix','type'=&gt;'string','len'=&gt;'20','flags'=&gt;''),),'data'=&gt;array()),//&nbsp;&nbsp;Data&nbsp;types&nbsp;table
<br>
'data_types'=&gt;//&nbsp;&nbsp;Description
<br>
array('info'=&gt;array(array(&quot;table&quot;=&gt;&quot;data_types&quot;,&quot;name&quot;=&gt;&quot;id&quot;,&quot;type&quot;=&gt;&quot;int&quot;,&quot;len&quot;=&gt;'11',&quot;flags&quot;=&gt;&quot;not_null&nbsp;primary_key&nbsp;auto_increment&quot;),array(&quot;table&quot;=&gt;&quot;data_types&quot;,&quot;name&quot;=&gt;&quot;bit_type&quot;,&quot;type&quot;=&gt;&quot;int&quot;,&quot;len&quot;=&gt;'1',&quot;flags&quot;=&gt;&quot;&quot;),array(&quot;table&quot;=&gt;&quot;data_types&quot;,&quot;name&quot;=&gt;&quot;tinyint_type&quot;,&quot;type&quot;=&gt;&quot;int&quot;,&quot;len&quot;=&gt;'4',&quot;flags&quot;=&gt;&quot;&quot;),array(&quot;table&quot;=&gt;&quot;data_types&quot;,&quot;name&quot;=&gt;&quot;bool_type&quot;,&quot;type&quot;=&gt;&quot;int&quot;,&quot;len&quot;=&gt;'1',&quot;flags&quot;=&gt;&quot;&quot;),array(&quot;table&quot;=&gt;&quot;data_types&quot;,&quot;name&quot;=&gt;&quot;boolean_type&quot;,&quot;type&quot;=&gt;&quot;int&quot;,&quot;len&quot;=&gt;'1',&quot;flags&quot;=&gt;&quot;&quot;),array(&quot;table&quot;=&gt;&quot;data_types&quot;,&quot;name&quot;=&gt;&quot;smallint_type&quot;,&quot;type&quot;=&gt;&quot;int&quot;,&quot;len&quot;=&gt;'6',&quot;flags&quot;=&gt;&quot;&quot;),array(&quot;table&quot;=&gt;&quot;data_types&quot;,&quot;name&quot;=&gt;&quot;mediumint_type&quot;,&quot;type&quot;=&gt;&quot;int&quot;,&quot;len&quot;=&gt;'9',&quot;flags&quot;=&gt;&quot;&quot;),array(&quot;table&quot;=&gt;&quot;data_types&quot;,&quot;name&quot;=&gt;&quot;int_type&quot;,&quot;type&quot;=&gt;&quot;int&quot;,&quot;len&quot;=&gt;'11',&quot;flags&quot;=&gt;&quot;&quot;),array(&quot;table&quot;=&gt;&quot;data_types&quot;,&quot;name&quot;=&gt;&quot;integer_type&quot;,&quot;type&quot;=&gt;&quot;int&quot;,&quot;len&quot;=&gt;'11',&quot;flags&quot;=&gt;&quot;&quot;),array(&quot;table&quot;=&gt;&quot;data_types&quot;,&quot;name&quot;=&gt;&quot;bigint_type&quot;,&quot;type&quot;=&gt;&quot;int&quot;,&quot;len&quot;=&gt;'20',&quot;flags&quot;=&gt;&quot;&quot;),array(&quot;table&quot;=&gt;&quot;data_types&quot;,&quot;name&quot;=&gt;&quot;float_type&quot;,&quot;type&quot;=&gt;&quot;real&quot;,&quot;len&quot;=&gt;'12',&quot;flags&quot;=&gt;&quot;&quot;),array(&quot;table&quot;=&gt;&quot;data_types&quot;,&quot;name&quot;=&gt;&quot;double_type&quot;,&quot;type&quot;=&gt;&quot;real&quot;,&quot;len&quot;=&gt;'22',&quot;flags&quot;=&gt;&quot;&quot;),array(&quot;table&quot;=&gt;&quot;data_types&quot;,&quot;name&quot;=&gt;&quot;double_precision_type&quot;,&quot;type&quot;=&gt;&quot;real&quot;,&quot;len&quot;=&gt;'22',&quot;flags&quot;=&gt;&quot;&quot;),array(&quot;table&quot;=&gt;&quot;data_types&quot;,&quot;name&quot;=&gt;&quot;decimal_type&quot;,&quot;type&quot;=&gt;&quot;real&quot;,&quot;len&quot;=&gt;'11',&quot;flags&quot;=&gt;&quot;&quot;),array(&quot;table&quot;=&gt;&quot;data_types&quot;,&quot;name&quot;=&gt;&quot;dec_type&quot;,&quot;type&quot;=&gt;&quot;real&quot;,&quot;len&quot;=&gt;'11',&quot;flags&quot;=&gt;&quot;&quot;),array(&quot;table&quot;=&gt;&quot;data_types&quot;,&quot;name&quot;=&gt;&quot;numeric_type&quot;,&quot;type&quot;=&gt;&quot;real&quot;,&quot;len&quot;=&gt;'11',&quot;flags&quot;=&gt;&quot;&quot;),array(&quot;table&quot;=&gt;&quot;data_types&quot;,&quot;name&quot;=&gt;&quot;fixed_type&quot;,&quot;type&quot;=&gt;&quot;real&quot;,&quot;len&quot;=&gt;'11',&quot;flags&quot;=&gt;&quot;&quot;),array(&quot;table&quot;=&gt;&quot;data_types&quot;,&quot;name&quot;=&gt;&quot;date_type&quot;,&quot;type&quot;=&gt;&quot;date&quot;,&quot;len&quot;=&gt;'10',&quot;flags&quot;=&gt;&quot;binary&quot;),array(&quot;table&quot;=&gt;&quot;data_types&quot;,&quot;name&quot;=&gt;&quot;datetime_type&quot;,&quot;type&quot;=&gt;&quot;datetime&quot;,&quot;len&quot;=&gt;'19',&quot;flags&quot;=&gt;&quot;binary&quot;),array(&quot;table&quot;=&gt;&quot;data_types&quot;,&quot;name&quot;=&gt;&quot;timestamp_type&quot;,&quot;type&quot;=&gt;&quot;timestamp&quot;,&quot;len&quot;=&gt;'19',&quot;flags&quot;=&gt;&quot;unsigned&nbsp;zerofill&nbsp;binary&quot;),array(&quot;table&quot;=&gt;&quot;data_types&quot;,&quot;name&quot;=&gt;&quot;time_type&quot;,&quot;type&quot;=&gt;&quot;time&quot;,&quot;len&quot;=&gt;'8',&quot;flags&quot;=&gt;&quot;binary&quot;),array(&quot;table&quot;=&gt;&quot;data_types&quot;,&quot;name&quot;=&gt;&quot;year_type&quot;,&quot;type&quot;=&gt;&quot;year&quot;,&quot;len&quot;=&gt;'4',&quot;flags&quot;=&gt;&quot;unsigned&nbsp;zerofill&quot;),array(&quot;table&quot;=&gt;&quot;data_types&quot;,&quot;name&quot;=&gt;&quot;char_type&quot;,&quot;type&quot;=&gt;&quot;string&quot;,&quot;len&quot;=&gt;'20',&quot;flags&quot;=&gt;&quot;&quot;),array(&quot;table&quot;=&gt;&quot;data_types&quot;,&quot;name&quot;=&gt;&quot;varchar_type&quot;,&quot;type&quot;=&gt;&quot;string&quot;,&quot;len&quot;=&gt;'20',&quot;flags&quot;=&gt;&quot;&quot;),array(&quot;table&quot;=&gt;&quot;data_types&quot;,&quot;name&quot;=&gt;&quot;nchar_type&quot;,&quot;type&quot;=&gt;&quot;string&quot;,&quot;len&quot;=&gt;'20',&quot;flags&quot;=&gt;&quot;&quot;),array(&quot;table&quot;=&gt;&quot;data_types&quot;,&quot;name&quot;=&gt;&quot;binary_type&quot;,&quot;type&quot;=&gt;&quot;string&quot;,&quot;len&quot;=&gt;'20',&quot;flags&quot;=&gt;&quot;binary&quot;),array(&quot;table&quot;=&gt;&quot;data_types&quot;,&quot;name&quot;=&gt;&quot;varbinary_type&quot;,&quot;type&quot;=&gt;&quot;string&quot;,&quot;len&quot;=&gt;'20',&quot;flags&quot;=&gt;&quot;binary&quot;),array(&quot;table&quot;=&gt;&quot;data_types&quot;,&quot;name&quot;=&gt;&quot;tinyblob_type&quot;,&quot;type&quot;=&gt;&quot;blob&quot;,&quot;len&quot;=&gt;'255',&quot;flags&quot;=&gt;&quot;blob&nbsp;binary&quot;),array(&quot;table&quot;=&gt;&quot;data_types&quot;,&quot;name&quot;=&gt;&quot;tinytext_type&quot;,&quot;type&quot;=&gt;&quot;blob&quot;,&quot;len&quot;=&gt;'255',&quot;flags&quot;=&gt;&quot;blob&quot;),array(&quot;table&quot;=&gt;&quot;data_types&quot;,&quot;name&quot;=&gt;&quot;blob_type&quot;,&quot;type&quot;=&gt;&quot;blob&quot;,&quot;len&quot;=&gt;'65535',&quot;flags&quot;=&gt;&quot;blob&nbsp;binary&quot;),array(&quot;table&quot;=&gt;&quot;data_types&quot;,&quot;name&quot;=&gt;&quot;text_type&quot;,&quot;type&quot;=&gt;&quot;blob&quot;,&quot;len&quot;=&gt;'65535',&quot;flags&quot;=&gt;&quot;blob&quot;),array(&quot;table&quot;=&gt;&quot;data_types&quot;,&quot;name&quot;=&gt;&quot;mediumblob_type&quot;,&quot;type&quot;=&gt;&quot;blob&quot;,&quot;len&quot;=&gt;'16777215',&quot;flags&quot;=&gt;&quot;blob&nbsp;binary&quot;),array(&quot;table&quot;=&gt;&quot;data_types&quot;,&quot;name&quot;=&gt;&quot;mediumtext_type&quot;,&quot;type&quot;=&gt;&quot;blob&quot;,&quot;len&quot;=&gt;'16777215',&quot;flags&quot;=&gt;&quot;blob&quot;),array(&quot;table&quot;=&gt;&quot;data_types&quot;,&quot;name&quot;=&gt;&quot;longblob_type&quot;,&quot;type&quot;=&gt;&quot;blob&quot;,&quot;len&quot;=&gt;'-1',&quot;flags&quot;=&gt;&quot;blob&nbsp;binary&quot;),array(&quot;table&quot;=&gt;&quot;data_types&quot;,&quot;name&quot;=&gt;&quot;longtext_type&quot;,&quot;type&quot;=&gt;&quot;blob&quot;,&quot;len&quot;=&gt;'-1',&quot;flags&quot;=&gt;&quot;blob&quot;),array(&quot;table&quot;=&gt;&quot;data_types&quot;,&quot;name&quot;=&gt;&quot;enum_type&quot;,&quot;type&quot;=&gt;&quot;string&quot;,&quot;len&quot;=&gt;'3',&quot;flags&quot;=&gt;&quot;enum&quot;),array(&quot;table&quot;=&gt;&quot;data_types&quot;,&quot;name&quot;=&gt;&quot;set_type&quot;,&quot;type&quot;=&gt;&quot;string&quot;,&quot;len&quot;=&gt;'7',&quot;flags&quot;=&gt;&quot;set&quot;),),'data'=&gt;array()),)</span></h4>
	<p>[line <a href="..//__filesource/fsource_PHPonTraxTest__testmockDBDB.php.html#a655">655</a>]</p>
  Mock Database<br /><br /><br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><b>static:</b>&nbsp;&nbsp;</td><td></td>
  </tr>
  <tr>
    <td><b>access:</b>&nbsp;&nbsp;</td><td>protected</td>
  </tr>
</table>
</div>

  <br />
	<div class="tags">
  <table border="0" cellspacing="0" cellpadding="0">
    <tr>
      <td><b>Type:</b>&nbsp;&nbsp;</td>
      <td>mixed</td>
    </tr>
      </table>
	</div><br /><br />
	<div class="top">[ <a href="#top">Top</a> ]</div><br />
	<a name="var$expected_list"></a>
	<p></p>
	<h4>$expected_list = <span class="value">&nbsp;null</span></h4>
	<p>[line <a href="..//__filesource/fsource_PHPonTraxTest__testmockDBDB.php.html#a911">911</a>]</p>
  List of expected queries and returns<br /><br /><br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><b>access:</b>&nbsp;&nbsp;</td><td>private</td>
  </tr>
</table>
</div>

  <br />
	<div class="tags">
  <table border="0" cellspacing="0" cellpadding="0">
    <tr>
      <td><b>Type:</b>&nbsp;&nbsp;</td>
      <td>mixed</td>
    </tr>
      </table>
	</div><br /><br />
	<div class="top">[ <a href="#top">Top</a> ]</div><br />
	<a name="var$expected_list_cursor"></a>
	<p></p>
	<h4>$expected_list_cursor = <span class="value">&nbsp;null</span></h4>
	<p>[line <a href="..//__filesource/fsource_PHPonTraxTest__testmockDBDB.php.html#a916">916</a>]</p>
  Cursor in list of expected queries and returns<br /><br /><br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><b>access:</b>&nbsp;&nbsp;</td><td>private</td>
  </tr>
</table>
</div>

  <br />
	<div class="tags">
  <table border="0" cellspacing="0" cellpadding="0">
    <tr>
      <td><b>Type:</b>&nbsp;&nbsp;</td>
      <td>mixed</td>
    </tr>
      </table>
	</div><br /><br />
	<div class="top">[ <a href="#top">Top</a> ]</div><br />
	<a name="var$expected_query"></a>
	<p></p>
	<h4>$expected_query = <span class="value">&nbsp;null</span></h4>
	<p>[line <a href="..//__filesource/fsource_PHPonTraxTest__testmockDBDB.php.html#a922">922</a>]</p>
  Expected query<br /><br /><br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><b>access:</b>&nbsp;&nbsp;</td><td>private</td>
  </tr>
</table>
</div>

  <br />
	<div class="tags">
  <table border="0" cellspacing="0" cellpadding="0">
    <tr>
      <td><b>Type:</b>&nbsp;&nbsp;</td>
      <td>string</td>
    </tr>
      </table>
	</div><br /><br />
	<div class="top">[ <a href="#top">Top</a> ]</div><br />
	<a name="var$expected_result"></a>
	<p></p>
	<h4>$expected_result = <span class="value">&nbsp;null</span></h4>
	<p>[line <a href="..//__filesource/fsource_PHPonTraxTest__testmockDBDB.php.html#a928">928</a>]</p>
  Result to be returned from expected query<br /><br /><br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><b>access:</b>&nbsp;&nbsp;</td><td>private</td>
  </tr>
</table>
</div>

  <br />
	<div class="tags">
  <table border="0" cellspacing="0" cellpadding="0">
    <tr>
      <td><b>Type:</b>&nbsp;&nbsp;</td>
      <td>string</td>
    </tr>
      </table>
	</div><br /><br />
	<div class="top">[ <a href="#top">Top</a> ]</div><br />
	<a name="var$options"></a>
	<p></p>
	<h4>$options = <span class="value">array(
<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'result_buffering'&nbsp;=&gt;&nbsp;500,
<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'persistent'&nbsp;=&gt;&nbsp;false,
<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'ssl'&nbsp;=&gt;&nbsp;false,
<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'debug'&nbsp;=&gt;&nbsp;0,
<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'seqname_format'&nbsp;=&gt;&nbsp;'%s_seq',
<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'autofree'&nbsp;=&gt;&nbsp;false,
<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'portability'&nbsp;=&gt;&nbsp;DB_PORTABILITY_NONE,
<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'optimize'&nbsp;=&gt;&nbsp;'performance',&nbsp;&nbsp;//&nbsp;Deprecated.&nbsp;&nbsp;Use&nbsp;'portability'.
<br>
&nbsp;&nbsp;&nbsp;&nbsp;)</span></h4>
	<p>[line <a href="..//__filesource/fsource_PHPonTraxTest__testmockDBDB.php.html#a897">897</a>]</p>
  Run-time configuration options<br /><br /><br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><b>see:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTraxTest/DB_common.html#methodsetOption">DB_common::setOption()</a></td>
  </tr>
</table>
</div>

  <br />
	<div class="tags">
  <table border="0" cellspacing="0" cellpadding="0">
    <tr>
      <td><b>Type:</b>&nbsp;&nbsp;</td>
      <td>array</td>
    </tr>
      </table>
	</div><br /><br />
	<div class="top">[ <a href="#top">Top</a> ]</div><br />
</div><br />

<hr />
<a name="class_methods"></a>
<h3>Class Methods</h3>
<div class="tags">
  <hr />
	<a name="methodDB_common"></a>
	<h3>constructor DB_common <span class="smalllinenumber">[line <a href="..//__filesource/fsource_PHPonTraxTest__testmockDBDB.php.html#a935">935</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_common(
)</code>
    </td></tr></table>
    </td></tr></table><br />
	
		This constructor calls <kbd>$this-&gt;PEAR('DB_Error')</kbd><br /><br /><br /><br />


        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methodaffectedRows"></a>
	<h3>method affectedRows <span class="smalllinenumber">[line <a href="..//__filesource/fsource_PHPonTraxTest__testmockDBDB.php.html#a2008">2008</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 affectedRows(
)</code>
    </td></tr></table>
    </td></tr></table><br />
	
		Determines the number of rows affected by a data maniuplation query<br /><br /><p><ol><li>is returned for queries that don't manipulate data.</li></ol></p><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>access:</b>&nbsp;&nbsp;</td><td>public</td>
  </tr>
  <tr>
    <td><b>todo:</b>&nbsp;&nbsp;</td><td>Implement mock DB_common::affectedRows</td>
  </tr>
</table>
</div>
<br /><br />

	<p>Overridden in child classes as:<br />
		<dl>
	<dt><a href="../PHPonTraxTest/DB_mysql.html#methodaffectedRows">DB_mysql::affectedRows()</a></dt>
		<dd>Determines the number of rows affected by a data maniuplation query</dd>
	</dl>
	</p>

        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methodautoCommit"></a>
	<h3>method autoCommit <span class="smalllinenumber">[line <a href="..//__filesource/fsource_PHPonTraxTest__testmockDBDB.php.html#a1961">1961</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 autoCommit(
[bool
$onoff = false])</code>
    </td></tr></table>
    </td></tr></table><br />
	
		Enables or disables automatic commits<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 on success.  A DB_Error object if the driver                doesn't support auto-committing transactions.</td>
  </tr>
  <tr>
    <td><b>access:</b>&nbsp;&nbsp;</td><td>public</td>
  </tr>
  <tr>
    <td><b>todo:</b>&nbsp;&nbsp;</td><td>Implement mock DB_common::autoCommit</td>
  </tr>
</table>
</div>
<br /><br />

	<p>Overridden in child classes as:<br />
		<dl>
	<dt><a href="../PHPonTraxTest/DB_mysql.html#methodautoCommit">DB_mysql::autoCommit()</a></dt>
		<dd>Enables or disables automatic commits</dd>
	</dl>
	</p>

        <h4>Parameters:</h4>
    <div class="tags">
    <table border="0" cellspacing="0" cellpadding="0">
          <tr>
        <td class="type">bool&nbsp;&nbsp;</td>
        <td><b>$onoff</b>&nbsp;&nbsp;</td>
        <td>true turns it on, false turns it off</td>
      </tr>
        </table>
    </div><br />
        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methodautoExecute"></a>
	<h3>method autoExecute <span class="smalllinenumber">[line <a href="..//__filesource/fsource_PHPonTraxTest__testmockDBDB.php.html#a1220">1220</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 autoExecute(
string
$table, array
$fields_values, [int
$mode = DB_AUTOQUERY_INSERT], [string
$where = false])</code>
    </td></tr></table>
    </td></tr></table><br />
	
		Automaticaly generates an insert or update query and call prepare()  and execute() with it<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>a new DB_result object for successful SELECT queries                  or DB_OK for successul data manipulation queries.                  A DB_Error object on failure.</td>
  </tr>
  <tr>
    <td><b>access:</b>&nbsp;&nbsp;</td><td>public</td>
  </tr>
  <tr>
    <td><b>todo:</b>&nbsp;&nbsp;</td><td>Implement mock DB_common::autoExecute</td>
  </tr>
  <tr>
    <td><b>uses:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTraxTest/DB_common.html#methodautoPrepare">DB_common::autoPrepare()</a>, <a href="../PHPonTrax/.html"></a> - DB_common::execute()</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>$table</b>&nbsp;&nbsp;</td>
        <td>the table name</td>
      </tr>
          <tr>
        <td class="type">array&nbsp;&nbsp;</td>
        <td><b>$fields_values</b>&nbsp;&nbsp;</td>
        <td>the associative array where $key is a                                field name and $value its value</td>
      </tr>
          <tr>
        <td class="type">int&nbsp;&nbsp;</td>
        <td><b>$mode</b>&nbsp;&nbsp;</td>
        <td>a type of query to make:                                DB_AUTOQUERY_INSERT or DB_AUTOQUERY_UPDATE</td>
      </tr>
          <tr>
        <td class="type">string&nbsp;&nbsp;</td>
        <td><b>$where</b>&nbsp;&nbsp;</td>
        <td>for update queries: the WHERE clause to                                append to the SQL statement.  Don't                                include the &quot;WHERE&quot; keyword.</td>
      </tr>
        </table>
    </div><br />
        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methodautoPrepare"></a>
	<h3>method autoPrepare <span class="smalllinenumber">[line <a href="..//__filesource/fsource_PHPonTraxTest__testmockDBDB.php.html#a1190">1190</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>resource autoPrepare(
string
$table, array
$table_fields, [int
$mode = DB_AUTOQUERY_INSERT], [string
$where = false])</code>
    </td></tr></table>
    </td></tr></table><br />
	
		Automaticaly generates an insert or update query and pass it to  prepare()<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 handle</td>
  </tr>
  <tr>
    <td><b>access:</b>&nbsp;&nbsp;</td><td>public</td>
  </tr>
  <tr>
    <td><b>todo:</b>&nbsp;&nbsp;</td><td>Implement mock DB_common::autoPrepare</td>
  </tr>
  <tr>
    <td><b>uses:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTraxTest/DB_common.html#methodprepare">DB_common::prepare()</a>, <a href="../PHPonTrax/.html"></a> - DB_common::buildManipSQL()</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>$table</b>&nbsp;&nbsp;</td>
        <td>the table name</td>
      </tr>
          <tr>
        <td class="type">array&nbsp;&nbsp;</td>
        <td><b>$table_fields</b>&nbsp;&nbsp;</td>
        <td>the array of field names</td>
      </tr>
          <tr>
        <td class="type">int&nbsp;&nbsp;</td>
        <td><b>$mode</b>&nbsp;&nbsp;</td>
        <td>a type of query to make:                                DB_AUTOQUERY_INSERT or DB_AUTOQUERY_UPDATE</td>
      </tr>
          <tr>
        <td class="type">string&nbsp;&nbsp;</td>
        <td><b>$where</b>&nbsp;&nbsp;</td>
        <td>for update queries: the WHERE clause to                                append to the SQL statement.  Don't                                include the &quot;WHERE&quot; keyword.</td>
      </tr>
        </table>
    </div><br />
        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methodbuildManipSQL"></a>
	<h3>method buildManipSQL <span class="smalllinenumber">[line <a href="..//__filesource/fsource_PHPonTraxTest__testmockDBDB.php.html#a1249">1249</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 buildManipSQL(
string
$table, array
$table_fields, int
$mode, [string
$where = false])</code>
    </td></tr></table>
    </td></tr></table><br />
	
		Produces an SQL query string for autoPrepare()<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 sql query for autoPrepare()</td>
  </tr>
  <tr>
    <td><b>access:</b>&nbsp;&nbsp;</td><td>public</td>
  </tr>
  <tr>
    <td><b>todo:</b>&nbsp;&nbsp;</td><td>Implement mock DB_common::buildManipSQL</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>$table</b>&nbsp;&nbsp;</td>
        <td>the table name</td>
      </tr>
          <tr>
        <td class="type">array&nbsp;&nbsp;</td>
        <td><b>$table_fields</b>&nbsp;&nbsp;</td>
        <td>the array of field names</td>
      </tr>
          <tr>
        <td class="type">int&nbsp;&nbsp;</td>
        <td><b>$mode</b>&nbsp;&nbsp;</td>
        <td>a type of query to make:                                DB_AUTOQUERY_INSERT or DB_AUTOQUERY_UPDATE</td>
      </tr>
          <tr>
        <td class="type">string&nbsp;&nbsp;</td>
        <td><b>$where</b>&nbsp;&nbsp;</td>
        <td>for update queries: the WHERE clause to                                append to the SQL statement.  Don't                                include the &quot;WHERE&quot; keyword.</td>
      </tr>
        </table>
    </div><br />
        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methodcommit"></a>
	<h3>method commit <span class="smalllinenumber">[line <a href="..//__filesource/fsource_PHPonTraxTest__testmockDBDB.php.html#a1972">1972</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 commit(
)</code>
    </td></tr></table>
    </td></tr></table><br />
	
		Commits the current transaction<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 on success.  A DB_Error object on failure.</td>
  </tr>
  <tr>
    <td><b>access:</b>&nbsp;&nbsp;</td><td>public</td>
  </tr>
  <tr>
    <td><b>todo:</b>&nbsp;&nbsp;</td><td>Implement mock DB_common::commit</td>
  </tr>
</table>
</div>
<br /><br />

	<p>Overridden in child classes as:<br />
		<dl>
	<dt><a href="../PHPonTraxTest/DB_mysql.html#methodcommit">DB_mysql::commit()</a></dt>
		<dd>Commits the current transaction</dd>
	</dl>
	</p>

        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methodcreateSequence"></a>
	<h3>method createSequence <span class="smalllinenumber">[line <a href="..//__filesource/fsource_PHPonTraxTest__testmockDBDB.php.html#a2056">2056</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 createSequence(
string
$seq_name)</code>
    </td></tr></table>
    </td></tr></table><br />
	
		Creates a new sequence<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 on success.  A DB_Error object on failure.</td>
  </tr>
  <tr>
    <td><b>access:</b>&nbsp;&nbsp;</td><td>public</td>
  </tr>
  <tr>
    <td><b>todo:</b>&nbsp;&nbsp;</td><td>Implement mock DB_common::createSequence</td>
  </tr>
  <tr>
    <td><b>see:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTraxTest/DB_common.html#methoddropSequence">DB_common::dropSequence()</a>, <a href="../PHPonTraxTest/DB_common.html#methodgetSequenceName">DB_common::getSequenceName()</a>, DB_common::nextID()</td>
  </tr>
</table>
</div>
<br /><br />

	<p>Overridden in child classes as:<br />
		<dl>
	<dt><a href="../PHPonTraxTest/DB_mysql.html#methodcreateSequence">DB_mysql::createSequence()</a></dt>
		<dd>Creates a new sequence</dd>
	</dl>
	</p>

        <h4>Parameters:</h4>
    <div class="tags">
    <table border="0" cellspacing="0" cellpadding="0">
          <tr>
        <td class="type">string&nbsp;&nbsp;</td>
        <td><b>$seq_name</b>&nbsp;&nbsp;</td>
        <td>name of the new sequence</td>
      </tr>
        </table>
    </div><br />
        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methoddropSequence"></a>
	<h3>method dropSequence <span class="smalllinenumber">[line <a href="..//__filesource/fsource_PHPonTraxTest__testmockDBDB.php.html#a2070">2070</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 dropSequence(
string
$seq_name)</code>
    </td></tr></table>
    </td></tr></table><br />
	
		Deletes a sequence<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 on success.  A DB_Error object on failure.</td>
  </tr>
  <tr>
    <td><b>access:</b>&nbsp;&nbsp;</td><td>public</td>
  </tr>
  <tr>
    <td><b>todo:</b>&nbsp;&nbsp;</td><td>Implement mock DB_common::dropSequence</td>
  </tr>
  <tr>
    <td><b>see:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTraxTest/DB_common.html#methodcreateSequence">DB_common::createSequence()</a>, <a href="../PHPonTraxTest/DB_common.html#methodgetSequenceName">DB_common::getSequenceName()</a>, DB_common::nextID()</td>
  </tr>
</table>
</div>
<br /><br />

	<p>Overridden in child classes as:<br />
		<dl>
	<dt><a href="../PHPonTraxTest/DB_mysql.html#methoddropSequence">DB_mysql::dropSequence()</a></dt>
		<dd>Deletes a sequence</dd>
	</dl>
	</p>

        <h4>Parameters:</h4>
    <div class="tags">
    <table border="0" cellspacing="0" cellpadding="0">
          <tr>
        <td class="type">string&nbsp;&nbsp;</td>
        <td><b>$seq_name</b>&nbsp;&nbsp;</td>
        <td>name of the sequence to be deleted</td>
      </tr>
        </table>
    </div><br />
        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methoderrorCode"></a>
	<h3>method errorCode <span class="smalllinenumber">[line <a href="..//__filesource/fsource_PHPonTraxTest__testmockDBDB.php.html#a2153">2153</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 errorCode(
string|int
$nativecode)</code>
    </td></tr></table>
    </td></tr></table><br />
	
		Maps native error codes to DB's portable ones<br /><br /><p>Uses the <var>$errorcode_map</var> property defined in each driver.</p><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 portable DB error code.  Return DB_ERROR if the                current driver doesn't have a mapping for the                $nativecode submitted.</td>
  </tr>
  <tr>
    <td><b>access:</b>&nbsp;&nbsp;</td><td>public</td>
  </tr>
  <tr>
    <td><b>todo:</b>&nbsp;&nbsp;</td><td>Implement mock DB_common::errorCode</td>
  </tr>
</table>
</div>
<br /><br />


        <h4>Parameters:</h4>
    <div class="tags">
    <table border="0" cellspacing="0" cellpadding="0">
          <tr>
        <td class="type">string|int&nbsp;&nbsp;</td>
        <td><b>$nativecode</b>&nbsp;&nbsp;</td>
        <td>the error code returned by the DBMS</td>
      </tr>
        </table>
    </div><br />
        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methoderrorMessage"></a>
	<h3>method errorMessage <span class="smalllinenumber">[line <a href="..//__filesource/fsource_PHPonTraxTest__testmockDBDB.php.html#a2171">2171</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 errorMessage(
integer
$dbcode)</code>
    </td></tr></table>
    </td></tr></table><br />
	
		Maps a DB error code to a textual message<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 error message corresponding to the error code                   submitted.  FALSE if the error code is unknown.</td>
  </tr>
  <tr>
    <td><b>access:</b>&nbsp;&nbsp;</td><td>public</td>
  </tr>
  <tr>
    <td><b>todo:</b>&nbsp;&nbsp;</td><td>Implement mock DB_common::errorMessage</td>
  </tr>
  <tr>
    <td><b>see:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTraxTest/DB.html#methoderrorMessage">DB::errorMessage()</a></td>
  </tr>
</table>
</div>
<br /><br />


        <h4>Parameters:</h4>
    <div class="tags">
    <table border="0" cellspacing="0" cellpadding="0">
          <tr>
        <td class="type">integer&nbsp;&nbsp;</td>
        <td><b>$dbcode</b>&nbsp;&nbsp;</td>
        <td>the DB error code</td>
      </tr>
        </table>
    </div><br />
        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methoderrorNative"></a>
	<h3>method errorNative <span class="smalllinenumber">[line <a href="..//__filesource/fsource_PHPonTraxTest__testmockDBDB.php.html#a2136">2136</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 errorNative(
)</code>
    </td></tr></table>
    </td></tr></table><br />
	
		Gets the DBMS' native error code produced by the last query<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 DBMS' error code.  A DB_Error object on failure.</td>
  </tr>
  <tr>
    <td><b>access:</b>&nbsp;&nbsp;</td><td>public</td>
  </tr>
  <tr>
    <td><b>todo:</b>&nbsp;&nbsp;</td><td>Implement mock DB_common::errorNative</td>
  </tr>
</table>
</div>
<br /><br />

	<p>Overridden in child classes as:<br />
		<dl>
	<dt><a href="../PHPonTraxTest/DB_mysql.html#methoderrorNative">DB_mysql::errorNative()</a></dt>
		<dd>Gets the DBMS' native error code produced by the last query</dd>
	</dl>
	</p>

        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methodescapeSimple"></a>
	<h3>method escapeSimple <span class="smalllinenumber">[line <a href="..//__filesource/fsource_PHPonTraxTest__testmockDBDB.php.html#a1047">1047</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 escapeSimple(
string
$str)</code>
    </td></tr></table>
    </td></tr></table><br />
	
		Escapes a string according to the current DBMS's standards<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 escaped string</td>
  </tr>
  <tr>
    <td><b>access:</b>&nbsp;&nbsp;</td><td>public</td>
  </tr>
  <tr>
    <td><b>todo:</b>&nbsp;&nbsp;</td><td>Implement mock DB_common::escapeSimple</td>
  </tr>
  <tr>
    <td><b>see:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTraxTest/DB_common.html#methodquoteSmart">DB_common::quoteSmart()</a></td>
  </tr>
</table>
</div>
<br /><br />

	<p>Overridden in child classes as:<br />
		<dl>
	<dt><a href="../PHPonTraxTest/DB_mysql.html#methodescapeSimple">DB_mysql::escapeSimple()</a></dt>
		<dd>Escapes a string according to the current DBMS's standards</dd>
	</dl>
	</p>

        <h4>Parameters:</h4>
    <div class="tags">
    <table border="0" cellspacing="0" cellpadding="0">
          <tr>
        <td class="type">string&nbsp;&nbsp;</td>
        <td><b>$str</b>&nbsp;&nbsp;</td>
        <td>the string to be escaped</td>
      </tr>
        </table>
    </div><br />
        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methodexecute"></a>
	<h3>method execute <span class="smalllinenumber">[line <a href="..//__filesource/fsource_PHPonTraxTest__testmockDBDB.php.html#a1307">1307</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;execute(
resource
$stmt, [mixed
$data = array()])</code>
    </td></tr></table>
    </td></tr></table><br />
	
		Executes a DB statement prepared with prepare()<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>a new DB_result object for successful SELECT queries                  or DB_OK for successul data manipulation queries.                  A DB_Error object on failure.</td>
  </tr>
  <tr>
    <td><b>access:</b>&nbsp;&nbsp;</td><td>public</td>
  </tr>
  <tr>
    <td><b>todo:</b>&nbsp;&nbsp;</td><td>Implement mock DB_common::execute</td>
  </tr>
  <tr>
    <td><b>see:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTraxTest/DB_common.html#methodprepare">DB_common::prepare()</a></td>
  </tr>
</table>
</div>
<br /><br />


        <h4>Parameters:</h4>
    <div class="tags">
    <table border="0" cellspacing="0" cellpadding="0">
          <tr>
        <td class="type">resource&nbsp;&nbsp;</td>
        <td><b>$stmt</b>&nbsp;&nbsp;</td>
        <td>a DB statement resource returned from prepare()</td>
      </tr>
          <tr>
        <td class="type">mixed&nbsp;&nbsp;</td>
        <td><b>$data</b>&nbsp;&nbsp;</td>
        <td>array, string or numeric data to be used in                          execution of the statement.  Quantity of items                          passed must match quantity of placeholders in                          query:  meaning 1 placeholder for non-array                          parameters or 1 placeholder per array element.</td>
      </tr>
        </table>
    </div><br />
        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methodexecuteEmulateQuery"></a>
	<h3>method executeEmulateQuery <span class="smalllinenumber">[line <a href="..//__filesource/fsource_PHPonTraxTest__testmockDBDB.php.html#a1341">1341</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 executeEmulateQuery(
resource
$stmt, [mixed
$data = array()])</code>
    </td></tr></table>
    </td></tr></table><br />
	
		Emulates executing prepared statements if the DBMS not support them<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>a string containing the real query run when emulating                  prepare/execute.  A DB_Error object on failure.</td>
  </tr>
  <tr>
    <td><b>access:</b>&nbsp;&nbsp;</td><td>protected</td>
  </tr>
  <tr>
    <td><b>todo:</b>&nbsp;&nbsp;</td><td>Implement mock DB_common::executeEmulateQuery</td>
  </tr>
  <tr>
    <td><b>see:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTraxTest/DB_common.html#methodexecute">DB_common::execute()</a></td>
  </tr>
</table>
</div>
<br /><br />


        <h4>Parameters:</h4>
    <div class="tags">
    <table border="0" cellspacing="0" cellpadding="0">
          <tr>
        <td class="type">resource&nbsp;&nbsp;</td>
        <td><b>$stmt</b>&nbsp;&nbsp;</td>
        <td>a DB statement resource returned from execute()</td>
      </tr>
          <tr>
        <td class="type">mixed&nbsp;&nbsp;</td>
        <td><b>$data</b>&nbsp;&nbsp;</td>
        <td>array, string or numeric data to be used in                          execution of the statement.  Quantity of items                          passed must match quantity of placeholders in                          query:  meaning 1 placeholder for non-array                          parameters or 1 placeholder per array element.</td>
      </tr>
        </table>
    </div><br />
        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methodexecuteMultiple"></a>
	<h3>method executeMultiple <span class="smalllinenumber">[line <a href="..//__filesource/fsource_PHPonTraxTest__testmockDBDB.php.html#a1387">1387</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 executeMultiple(
resource
$stmt, array
$data)</code>
    </td></tr></table>
    </td></tr></table><br />
	
		Performs several execute() calls on the same statement handle<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 on success.  A DB_Error object on failure.</td>
  </tr>
  <tr>
    <td><b>todo:</b>&nbsp;&nbsp;</td><td>Implement mock DB_common::executeMultiple</td>
  </tr>
  <tr>
    <td><b>see:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTraxTest/DB_common.html#methodprepare">DB_common::prepare()</a>, <a href="../PHPonTraxTest/DB_common.html#methodexecute">DB_common::execute()</a></td>
  </tr>
</table>
</div>
<br /><br />


        <h4>Parameters:</h4>
    <div class="tags">
    <table border="0" cellspacing="0" cellpadding="0">
          <tr>
        <td class="type">resource&nbsp;&nbsp;</td>
        <td><b>$stmt</b>&nbsp;&nbsp;</td>
        <td>query handle from prepare()</td>
      </tr>
          <tr>
        <td class="type">array&nbsp;&nbsp;</td>
        <td><b>$data</b>&nbsp;&nbsp;</td>
        <td>numeric array containing the                          data to insert into the query</td>
      </tr>
        </table>
    </div><br />
        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methodexpect_queries"></a>
	<h3>method expect_queries <span class="smalllinenumber">[line <a href="..//__filesource/fsource_PHPonTraxTest__testmockDBDB.php.html#a1478">1478</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 expect_queries(
string
$list)</code>
    </td></tr></table>
    </td></tr></table><br />
	
		Set list of expected queries and returns<br /><br /><p>This is a test routine that does not exist in the PEAR DB package.</p><br /><br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><b>access:</b>&nbsp;&nbsp;</td><td>public</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>$list</b>&nbsp;&nbsp;</td>
        <td>Expected queries and returns</td>
      </tr>
        </table>
    </div><br />
        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methodexpect_query"></a>
	<h3>method expect_query <span class="smalllinenumber">[line <a href="..//__filesource/fsource_PHPonTraxTest__testmockDBDB.php.html#a1467">1467</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 expect_query(
string
$expected, string
$result)</code>
    </td></tr></table>
    </td></tr></table><br />
	
		Set expected query and return<br /><br /><p>This is a test routine that does not exist in the PEAR DB package.</p><br /><br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><b>access:</b>&nbsp;&nbsp;</td><td>public</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>$expected</b>&nbsp;&nbsp;</td>
        <td>Expected query</td>
      </tr>
          <tr>
        <td class="type">string&nbsp;&nbsp;</td>
        <td><b>$result</b>&nbsp;&nbsp;</td>
        <td>Result to be returned when expected   query is received.</td>
      </tr>
        </table>
    </div><br />
        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methodfreePrepared"></a>
	<h3>method freePrepared <span class="smalllinenumber">[line <a href="..//__filesource/fsource_PHPonTraxTest__testmockDBDB.php.html#a1411">1411</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 freePrepared(
resource
$stmt, [bool
$free_resource = true])</code>
    </td></tr></table>
    </td></tr></table><br />
	
		Frees the internal resources associated with a prepared query<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, FALSE if $result is invalid</td>
  </tr>
  <tr>
    <td><b>todo:</b>&nbsp;&nbsp;</td><td>Implement mock DB_common::freePrepared</td>
  </tr>
  <tr>
    <td><b>see:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTraxTest/DB_common.html#methodprepare">DB_common::prepare()</a></td>
  </tr>
</table>
</div>
<br /><br />


        <h4>Parameters:</h4>
    <div class="tags">
    <table border="0" cellspacing="0" cellpadding="0">
          <tr>
        <td class="type">resource&nbsp;&nbsp;</td>
        <td><b>$stmt</b>&nbsp;&nbsp;</td>
        <td>the prepared statement's PHP resource</td>
      </tr>
          <tr>
        <td class="type">bool&nbsp;&nbsp;</td>
        <td><b>$free_resource</b>&nbsp;&nbsp;</td>
        <td>should the PHP resource be freed too?                                   Use false if you need to get data                                   from the result set later.</td>
      </tr>
        </table>
    </div><br />
        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methodgetAll"></a>
	<h3>method getAll <span class="smalllinenumber">[line <a href="..//__filesource/fsource_PHPonTraxTest__testmockDBDB.php.html#a1896">1896</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>array &amp;getAll(
string
$query, [mixed
$params = array()], [int
$fetchmode = DB_FETCHMODE_DEFAULT])</code>
    </td></tr></table>
    </td></tr></table><br />
	
		Fetches all of the rows from a query 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 nested array.  A DB_Error object on failure.</td>
  </tr>
  <tr>
    <td><b>access:</b>&nbsp;&nbsp;</td><td>public</td>
  </tr>
  <tr>
    <td><b>todo:</b>&nbsp;&nbsp;</td><td>Implement mock DB_common::getAll</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>$query</b>&nbsp;&nbsp;</td>
        <td>the SQL query</td>
      </tr>
          <tr>
        <td class="type">mixed&nbsp;&nbsp;</td>
        <td><b>$params</b>&nbsp;&nbsp;</td>
        <td>array, string or numeric data to be used in                             execution of the statement.  Quantity of                             items passed must match quantity of                             placeholders in query:  meaning 1                             placeholder for non-array parameters or <ol><li>placeholder per array element.</li></ol></td>
      </tr>
          <tr>
        <td class="type">int&nbsp;&nbsp;</td>
        <td><b>$fetchmode</b>&nbsp;&nbsp;</td>
        <td>the fetch mode to use: <ul><li>DB_FETCHMODE_ORDERED</li><li>DB_FETCHMODE_ASSOC</li><li>DB_FETCHMODE_ORDERED | DB_FETCHMODE_FLIPPED</li><li>DB_FETCHMODE_ASSOC | DB_FETCHMODE_FLIPPED</li></ul></td>
      </tr>
        </table>
    </div><br />
        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methodgetAssoc"></a>
	<h3>method getAssoc <span class="smalllinenumber">[line <a href="..//__filesource/fsource_PHPonTraxTest__testmockDBDB.php.html#a1787">1787</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>array &amp;getAssoc(
string
$query, [bool
$force_array = false], [mixed
$params = array()], [int
$fetchmode = DB_FETCHMODE_DEFAULT], [bool
$group = false])</code>
    </td></tr></table>
    </td></tr></table><br />
	
		Fetches an entire query result and returns it as an  associative array using the first column as the key<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 associative array containing the query results.                 A DB_Error object on failure.</td>
  </tr>
  <tr>
    <td><b>access:</b>&nbsp;&nbsp;</td><td>public</td>
  </tr>
  <tr>
    <td><b>todo:</b>&nbsp;&nbsp;</td><td>Implement mock DB_common::getAssoc</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>$query</b>&nbsp;&nbsp;</td>
        <td>the SQL query</td>
      </tr>
          <tr>
        <td class="type">bool&nbsp;&nbsp;</td>
        <td><b>$force_array</b>&nbsp;&nbsp;</td>
        <td>used only when the query returns                               exactly two columns.  If true, the values                               of the returned array will be one-element                               arrays instead of scalars.</td>
      </tr>
          <tr>
        <td class="type">mixed&nbsp;&nbsp;</td>
        <td><b>$params</b>&nbsp;&nbsp;</td>
        <td>array, string or numeric data to be used in                               execution of the statement.  Quantity of                               items passed must match quantity of                               placeholders in query:  meaning 1                               placeholder for non-array parameters or <ol><li>placeholder per array element.</li></ol></td>
      </tr>
          <tr>
        <td class="type">int&nbsp;&nbsp;</td>
        <td><b>$fetchmode</b>&nbsp;&nbsp;</td>
        <td>the fetch mode to use</td>
      </tr>
          <tr>
        <td class="type">bool&nbsp;&nbsp;</td>
        <td><b>$group</b>&nbsp;&nbsp;</td>
        <td>if true, the values of the returned array                               is wrapped in another array.  If the same                               key value (in the first column) repeats                               itself, the values will be appended to                               this array instead of overwriting the                               existing values.</td>
      </tr>
        </table>
    </div><br />
        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methodgetCol"></a>
	<h3>method getCol <span class="smalllinenumber">[line <a href="..//__filesource/fsource_PHPonTraxTest__testmockDBDB.php.html#a1716">1716</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>array &amp;getCol(
string
$query, [mixed
$col = 0], [mixed
$params = array()])</code>
    </td></tr></table>
    </td></tr></table><br />
	
		Fetches a single column from a query result and returns it as an  indexed 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>the results as an array.  A DB_Error object on failure.</td>
  </tr>
  <tr>
    <td><b>access:</b>&nbsp;&nbsp;</td><td>public</td>
  </tr>
  <tr>
    <td><b>todo:</b>&nbsp;&nbsp;</td><td>Implement mock DB_common::getCol</td>
  </tr>
  <tr>
    <td><b>see:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTraxTest/DB_common.html#methodquery">DB_common::query()</a></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>$query</b>&nbsp;&nbsp;</td>
        <td>the SQL query</td>
      </tr>
          <tr>
        <td class="type">mixed&nbsp;&nbsp;</td>
        <td><b>$col</b>&nbsp;&nbsp;</td>
        <td>which column to return (integer [column number,                          starting at 0] or string [column name])</td>
      </tr>
          <tr>
        <td class="type">mixed&nbsp;&nbsp;</td>
        <td><b>$params</b>&nbsp;&nbsp;</td>
        <td>array, string or numeric data to be used in                          execution of the statement.  Quantity of items                          passed must match quantity of placeholders in                          query:  meaning 1 placeholder for non-array                          parameters or 1 placeholder per array element.</td>
      </tr>
        </table>
    </div><br />
        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methodgetListOf"></a>
	<h3>method getListOf <span class="smalllinenumber">[line <a href="..//__filesource/fsource_PHPonTraxTest__testmockDBDB.php.html#a2219">2219</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>array getListOf(
string
$type)</code>
    </td></tr></table>
    </td></tr></table><br />
	
		Lists internal database information<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 listing the items sought.                  A DB DB_Error object on failure.</td>
  </tr>
  <tr>
    <td><b>access:</b>&nbsp;&nbsp;</td><td>public</td>
  </tr>
  <tr>
    <td><b>todo:</b>&nbsp;&nbsp;</td><td>Implement mock DB_common::getListOf</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>$type</b>&nbsp;&nbsp;</td>
        <td>type of information being sought.                        Common items being sought are:                        tables, databases, users, views, functions                        Each DBMS's has its own capabilities.</td>
      </tr>
        </table>
    </div><br />
        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methodgetOne"></a>
	<h3>method getOne <span class="smalllinenumber">[line <a href="..//__filesource/fsource_PHPonTraxTest__testmockDBDB.php.html#a1609">1609</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;getOne(
string
$query, [mixed
$params = array()])</code>
    </td></tr></table>
    </td></tr></table><br />
	
		Fetches the first column of the first row from a query 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 returned value of the query.                  A DB_Error object on failure.</td>
  </tr>
  <tr>
    <td><b>todo:</b>&nbsp;&nbsp;</td><td>Implement mock DB_common::getOne</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>$query</b>&nbsp;&nbsp;</td>
        <td>the SQL query</td>
      </tr>
          <tr>
        <td class="type">mixed&nbsp;&nbsp;</td>
        <td><b>$params</b>&nbsp;&nbsp;</td>
        <td>array, string or numeric data to be used in                          execution of the statement.  Quantity of items                          passed must match quantity of placeholders in                          query:  meaning 1 placeholder for non-array                          parameters or 1 placeholder per array element.</td>
      </tr>
        </table>
    </div><br />
        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methodgetOption"></a>
	<h3>method getOption <span class="smalllinenumber">[line <a href="..//__filesource/fsource_PHPonTraxTest__testmockDBDB.php.html#a1120">1120</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 getOption(
string
$option)</code>
    </td></tr></table>
    </td></tr></table><br />
	
		Returns the value of an option<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 option's value</td>
  </tr>
  <tr>
    <td><b>access:</b>&nbsp;&nbsp;</td><td>public</td>
  </tr>
  <tr>
    <td><b>todo:</b>&nbsp;&nbsp;</td><td>Implement mock DB_common::getOption</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>$option</b>&nbsp;&nbsp;</td>
        <td>the option name you're curious about</td>
      </tr>
        </table>
    </div><br />
        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methodgetRow"></a>
	<h3>method getRow <span class="smalllinenumber">[line <a href="..//__filesource/fsource_PHPonTraxTest__testmockDBDB.php.html#a1652">1652</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>array &amp;getRow(
string
$query, [mixed
$params = array()], [int
$fetchmode = DB_FETCHMODE_DEFAULT])</code>
    </td></tr></table>
    </td></tr></table><br />
	
		Fetches the first row of data returned from a query 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 first row of results as an array.                  A DB_Error object on failure.</td>
  </tr>
  <tr>
    <td><b>access:</b>&nbsp;&nbsp;</td><td>public</td>
  </tr>
  <tr>
    <td><b>todo:</b>&nbsp;&nbsp;</td><td>Implement mock DB_common::getRow</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>$query</b>&nbsp;&nbsp;</td>
        <td>the SQL query</td>
      </tr>
          <tr>
        <td class="type">mixed&nbsp;&nbsp;</td>
        <td><b>$params</b>&nbsp;&nbsp;</td>
        <td>array, string or numeric data to be used in                          execution of the statement.  Quantity of items                          passed must match quantity of placeholders in                          query:  meaning 1 placeholder for non-array                          parameters or 1 placeholder per array element.</td>
      </tr>
          <tr>
        <td class="type">int&nbsp;&nbsp;</td>
        <td><b>$fetchmode</b>&nbsp;&nbsp;</td>
        <td>the fetch mode to use</td>
      </tr>
        </table>
    </div><br />
        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methodgetSequenceName"></a>
	<h3>method getSequenceName <span class="smalllinenumber">[line <a href="..//__filesource/fsource_PHPonTraxTest__testmockDBDB.php.html#a2022">2022</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 getSequenceName(
string
$sqn)</code>
    </td></tr></table>
    </td></tr></table><br />
	
		Generates the name used inside the database for a sequence<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 sequence's name in the backend</td>
  </tr>
  <tr>
    <td><b>access:</b>&nbsp;&nbsp;</td><td>protected</td>
  </tr>
  <tr>
    <td><b>todo:</b>&nbsp;&nbsp;</td><td>Implement mock DB_common::getSequenceName</td>
  </tr>
  <tr>
    <td><b>see:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTraxTest/DB_common.html#methodcreateSequence">DB_common::createSequence()</a>, <a href="../PHPonTraxTest/DB_common.html#methoddropSequence">DB_common::dropSequence()</a>, DB_common::nextID(), <a href="../PHPonTraxTest/DB_common.html#methodsetOption">DB_common::setOption()</a></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>$sqn</b>&nbsp;&nbsp;</td>
        <td>the sequence's public name</td>
      </tr>
        </table>
    </div><br />
        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methodgetSpecialQuery"></a>
	<h3>method getSpecialQuery <span class="smalllinenumber">[line <a href="..//__filesource/fsource_PHPonTraxTest__testmockDBDB.php.html#a2245">2245</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 getSpecialQuery(
string
$type)</code>
    </td></tr></table>
    </td></tr></table><br />
	
		Obtains the query string needed for listing a given type of objects<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 SQL query string or null if the driver doesn't                   support the object type requested</td>
  </tr>
  <tr>
    <td><b>access:</b>&nbsp;&nbsp;</td><td>protected</td>
  </tr>
  <tr>
    <td><b>todo:</b>&nbsp;&nbsp;</td><td>Implement mock DB_common::getSpecialQuery</td>
  </tr>
  <tr>
    <td><b>see:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTraxTest/DB_common.html#methodgetListOf">DB_common::getListOf()</a></td>
  </tr>
</table>
</div>
<br /><br />

	<p>Overridden in child classes as:<br />
		<dl>
	<dt><a href="../PHPonTraxTest/DB_mysql.html#methodgetSpecialQuery">DB_mysql::getSpecialQuery()</a></dt>
		<dd>Obtains the query string needed for listing a given type of objects</dd>
	</dl>
	</p>

        <h4>Parameters:</h4>
    <div class="tags">
    <table border="0" cellspacing="0" cellpadding="0">
          <tr>
        <td class="type">string&nbsp;&nbsp;</td>
        <td><b>$type</b>&nbsp;&nbsp;</td>
        <td>the kind of objects you want to retrieve</td>
      </tr>
        </table>
    </div><br />
        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methodlimitQuery"></a>
	<h3>method limitQuery <span class="smalllinenumber">[line <a href="..//__filesource/fsource_PHPonTraxTest__testmockDBDB.php.html#a1581">1581</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;limitQuery(
string
$query, intr
$from, int
$count, [mixed
$params = array()])</code>
    </td></tr></table>
    </td></tr></table><br />
	
		Generates and executes a LIMIT query<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>a new DB_result object for successful SELECT queries                  or DB_OK for successul data manipulation queries.                  A DB_Error object on failure.</td>
  </tr>
  <tr>
    <td><b>access:</b>&nbsp;&nbsp;</td><td>public</td>
  </tr>
  <tr>
    <td><b>todo:</b>&nbsp;&nbsp;</td><td>Implement mock DB_common::limitQuery</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>$query</b>&nbsp;&nbsp;</td>
        <td>the query</td>
      </tr>
          <tr>
        <td class="type">intr&nbsp;&nbsp;</td>
        <td><b>$from</b>&nbsp;&nbsp;</td>
        <td>the row to start to fetching (0 = the first row)</td>
      </tr>
          <tr>
        <td class="type">int&nbsp;&nbsp;</td>
        <td><b>$count</b>&nbsp;&nbsp;</td>
        <td>the numbers of rows to fetch</td>
      </tr>
          <tr>
        <td class="type">mixed&nbsp;&nbsp;</td>
        <td><b>$params</b>&nbsp;&nbsp;</td>
        <td>array, string or numeric data to be used in                          execution of the statement.  Quantity of items                          passed must match quantity of placeholders in                          query:  meaning 1 placeholder for non-array                          parameters or 1 placeholder per array element.</td>
      </tr>
        </table>
    </div><br />
        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methodmodifyLimitQuery"></a>
	<h3>method modifyLimitQuery <span class="smalllinenumber">[line <a href="..//__filesource/fsource_PHPonTraxTest__testmockDBDB.php.html#a1454">1454</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 modifyLimitQuery(
string
$query, int
$from, int
$count, [mixed
$params = array()])</code>
    </td></tr></table>
    </td></tr></table><br />
	
		Adds LIMIT clauses to a query string according to current DBMS standards<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 with LIMIT clauses added</td>
  </tr>
  <tr>
    <td><b>access:</b>&nbsp;&nbsp;</td><td>protected</td>
  </tr>
  <tr>
    <td><b>todo:</b>&nbsp;&nbsp;</td><td>Implement mock DB_common::modifyLimitQuery</td>
  </tr>
</table>
</div>
<br /><br />

	<p>Overridden in child classes as:<br />
		<dl>
	<dt><a href="../PHPonTraxTest/DB_mysql.html#methodmodifyLimitQuery">DB_mysql::modifyLimitQuery()</a></dt>
		<dd>Adds LIMIT clauses to a query string according to current DBMS standards</dd>
	</dl>
	</p>

        <h4>Parameters:</h4>
    <div class="tags">
    <table border="0" cellspacing="0" cellpadding="0">
          <tr>
        <td class="type">string&nbsp;&nbsp;</td>
        <td><b>$query</b>&nbsp;&nbsp;</td>
        <td>the query to modify</td>
      </tr>
          <tr>
        <td class="type">int&nbsp;&nbsp;</td>
        <td><b>$from</b>&nbsp;&nbsp;</td>
        <td>the row to start to fetching (0 = the first row)</td>
      </tr>
          <tr>
        <td class="type">int&nbsp;&nbsp;</td>
        <td><b>$count</b>&nbsp;&nbsp;</td>
        <td>the numbers of rows to fetch</td>
      </tr>
          <tr>
        <td class="type">mixed&nbsp;&nbsp;</td>
        <td><b>$params</b>&nbsp;&nbsp;</td>
        <td>array, string or numeric data to be used in                          execution of the statement.  Quantity of items                          passed must match quantity of placeholders in                          query:  meaning 1 placeholder for non-array                          parameters or 1 placeholder per array element.</td>
      </tr>
        </table>
    </div><br />
        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methodmodifyQuery"></a>
	<h3>method modifyQuery <span class="smalllinenumber">[line <a href="..//__filesource/fsource_PHPonTraxTest__testmockDBDB.php.html#a1434">1434</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 modifyQuery(
string
$query)</code>
    </td></tr></table>
    </td></tr></table><br />
	
		Changes a query string for various DBMS specific reasons<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 modified query string</td>
  </tr>
  <tr>
    <td><b>access:</b>&nbsp;&nbsp;</td><td>protected</td>
  </tr>
  <tr>
    <td><b>todo:</b>&nbsp;&nbsp;</td><td>Implement mock DB_common::modifyQuery</td>
  </tr>
  <tr>
    <td><b>see:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTraxTest/DB_mysql.html#methodmodifyQuery">DB_mysql::modifyQuery()</a>, DB_oci8::modifyQuery(), DB_sqlite::modifyQuery()</td>
  </tr>
</table>
</div>
<br /><br />

	<p>Overridden in child classes as:<br />
		<dl>
	<dt><a href="../PHPonTraxTest/DB_mysql.html#methodmodifyQuery">DB_mysql::modifyQuery()</a></dt>
		<dd>Changes a query string for various DBMS specific reasons</dd>
	</dl>
	</p>

        <h4>Parameters:</h4>
    <div class="tags">
    <table border="0" cellspacing="0" cellpadding="0">
          <tr>
        <td class="type">string&nbsp;&nbsp;</td>
        <td><b>$query</b>&nbsp;&nbsp;</td>
        <td>the query string to modify</td>
      </tr>
        </table>
    </div><br />
        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methodnextId"></a>
	<h3>method nextId <span class="smalllinenumber">[line <a href="..//__filesource/fsource_PHPonTraxTest__testmockDBDB.php.html#a2042">2042</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 nextId(
string
$seq_name, [boolean
$ondemand = true])</code>
    </td></tr></table>
    </td></tr></table><br />
	
		Returns the next free id in a sequence<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 next id number in the sequence.                A DB_Error object on failure.</td>
  </tr>
  <tr>
    <td><b>access:</b>&nbsp;&nbsp;</td><td>public</td>
  </tr>
  <tr>
    <td><b>todo:</b>&nbsp;&nbsp;</td><td>Implement mock DB_common::nextID</td>
  </tr>
  <tr>
    <td><b>see:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTraxTest/DB_common.html#methodcreateSequence">DB_common::createSequence()</a>, <a href="../PHPonTraxTest/DB_common.html#methoddropSequence">DB_common::dropSequence()</a>, <a href="../PHPonTraxTest/DB_common.html#methodgetSequenceName">DB_common::getSequenceName()</a></td>
  </tr>
</table>
</div>
<br /><br />

	<p>Overridden in child classes as:<br />
		<dl>
	<dt><a href="../PHPonTraxTest/DB_mysql.html#methodnextId">DB_mysql::nextId()</a></dt>
		<dd>Returns the next free id in a sequence</dd>
	</dl>
	</p>

        <h4>Parameters:</h4>
    <div class="tags">
    <table border="0" cellspacing="0" cellpadding="0">
          <tr>
        <td class="type">string&nbsp;&nbsp;</td>
        <td><b>$seq_name</b>&nbsp;&nbsp;</td>
        <td>name of the sequence</td>
      </tr>
          <tr>
        <td class="type">boolean&nbsp;&nbsp;</td>
        <td><b>$ondemand</b>&nbsp;&nbsp;</td>
        <td>when true, the seqence is automatically                             created if it does not exist</td>
      </tr>
        </table>
    </div><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#a1995">1995</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(
resource
$result)</code>
    </td></tr></table>
    </td></tr></table><br />
	
		Determines the number of rows in a query 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 number of rows.  A DB_Error object on failure.</td>
  </tr>
  <tr>
    <td><b>access:</b>&nbsp;&nbsp;</td><td>public</td>
  </tr>
  <tr>
    <td><b>todo:</b>&nbsp;&nbsp;</td><td>Implement mock DB_common::numRows</td>
  </tr>
</table>
</div>
<br /><br />

	<p>Overridden in child classes as:<br />
		<dl>
	<dt><a href="../PHPonTraxTest/DB_mysql.html#methodnumRows">DB_mysql::numRows()</a></dt>
		<dd>Gets the number of rows in a result set</dd>
	</dl>
	</p>

        <h4>Parameters:</h4>
    <div class="tags">
    <table border="0" cellspacing="0" cellpadding="0">
          <tr>
        <td class="type">resource&nbsp;&nbsp;</td>
        <td><b>$result</b>&nbsp;&nbsp;</td>
        <td>the query result idenifier produced by PHP</td>
      </tr>
        </table>
    </div><br />
        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methodprepare"></a>
	<h3>method prepare <span class="smalllinenumber">[line <a href="..//__filesource/fsource_PHPonTraxTest__testmockDBDB.php.html#a1137">1137</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 prepare(
string
$query)</code>
    </td></tr></table>
    </td></tr></table><br />
	
		Prepares a query for multiple execution with execute()<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 statement resource on success. A DB_Error object                  on failure.</td>
  </tr>
  <tr>
    <td><b>access:</b>&nbsp;&nbsp;</td><td>public</td>
  </tr>
  <tr>
    <td><b>todo:</b>&nbsp;&nbsp;</td><td>Implement mock DB_common::prepare</td>
  </tr>
  <tr>
    <td><b>see:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTraxTest/DB_common.html#methodexecute">DB_common::execute()</a></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>$query</b>&nbsp;&nbsp;</td>
        <td>the query to be prepared</td>
      </tr>
        </table>
    </div><br />
        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methodprovides"></a>
	<h3>method provides <span class="smalllinenumber">[line <a href="..//__filesource/fsource_PHPonTraxTest__testmockDBDB.php.html#a1059">1059</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 provides(
string
$feature)</code>
    </td></tr></table>
    </td></tr></table><br />
	
		Tells whether the present driver supports a given feature<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>whether this driver supports $feature</td>
  </tr>
  <tr>
    <td><b>access:</b>&nbsp;&nbsp;</td><td>public</td>
  </tr>
  <tr>
    <td><b>todo:</b>&nbsp;&nbsp;</td><td>Implement mock DB_common::provides</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>$feature</b>&nbsp;&nbsp;</td>
        <td>the feature you're curious about</td>
      </tr>
        </table>
    </div><br />
        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methodquery"></a>
	<h3>method query <span class="smalllinenumber">[line <a href="..//__filesource/fsource_PHPonTraxTest__testmockDBDB.php.html#a1514">1514</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;query(
string
$query, [mixed
$params = array()])</code>
    </td></tr></table>
    </td></tr></table><br />
	
		Sends a query to the database server<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>a new DB_result object for successful SELECT queries                  or DB_OK for successul data manipulation queries.                  A DB_Error object on failure.</td>
  </tr>
  <tr>
    <td><b>access:</b>&nbsp;&nbsp;</td><td>public</td>
  </tr>
  <tr>
    <td><b>todo:</b>&nbsp;&nbsp;</td><td>Implement mock DB_common::query</td>
  </tr>
  <tr>
    <td><b>see:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTraxTest/DB_result.html">DB_result</a>, <a href="../PHPonTraxTest/DB_common.html#methodprepare">DB_common::prepare()</a>, <a href="../PHPonTraxTest/DB_common.html#methodexecute">DB_common::execute()</a></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>$query</b>&nbsp;&nbsp;</td>
        <td>the SQL query or the statement to prepare</td>
      </tr>
          <tr>
        <td class="type">mixed&nbsp;&nbsp;</td>
        <td><b>$params</b>&nbsp;&nbsp;</td>
        <td>array, string or numeric data to be used in                          execution of the statement.  Quantity of items                          passed must match quantity of placeholders in                          query:  meaning 1 placeholder for non-array                          parameters or 1 placeholder per array element.</td>
      </tr>
        </table>
    </div><br />
        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methodquoteIdentifier"></a>
	<h3>method quoteIdentifier <span class="smalllinenumber">[line <a href="..//__filesource/fsource_PHPonTraxTest__testmockDBDB.php.html#a1015">1015</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 quoteIdentifier(
string
$str)</code>
    </td></tr></table>
    </td></tr></table><br />
	
		Quotes a string so it can be safely used as a table or column name<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 quoted identifier</td>
  </tr>
  <tr>
    <td><b>access:</b>&nbsp;&nbsp;</td><td>public</td>
  </tr>
</table>
</div>
<br /><br />

	<p>Overridden in child classes as:<br />
		<dl>
	<dt><a href="../PHPonTraxTest/DB_mysql.html#methodquoteIdentifier">DB_mysql::quoteIdentifier()</a></dt>
		<dd>Quotes a string so it can be safely used as a table or column name</dd>
	</dl>
	</p>

        <h4>Parameters:</h4>
    <div class="tags">
    <table border="0" cellspacing="0" cellpadding="0">
          <tr>
        <td class="type">string&nbsp;&nbsp;</td>
        <td><b>$str</b>&nbsp;&nbsp;</td>
        <td>the identifier name to be quoted</td>
      </tr>
        </table>
    </div><br />
        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methodquoteSmart"></a>
	<h3>method quoteSmart <span class="smalllinenumber">[line <a href="..//__filesource/fsource_PHPonTraxTest__testmockDBDB.php.html#a1026">1026</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 quoteSmart(
mixed
$in)</code>
    </td></tr></table>
    </td></tr></table><br />
	
		Formats input so it can be safely used in a query<br /><br /><br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><b>access:</b>&nbsp;&nbsp;</td><td>public</td>
  </tr>
  <tr>
    <td><b>todo:</b>&nbsp;&nbsp;</td><td>Implement mock DB_common::quoteSmart</td>
  </tr>
  <tr>
    <td><b>see:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTraxTest/DB_common.html#methodescapeSimple">DB_common::escapeSimple()</a></td>
  </tr>
</table>
</div>
<br /><br />


        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methodraiseError"></a>
	<h3>method raiseError <span class="smalllinenumber">[line <a href="..//__filesource/fsource_PHPonTraxTest__testmockDBDB.php.html#a2099">2099</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>object the &amp;raiseError(
[mixed
$code = DB_ERROR], [int
$mode = null], [mixed
$options = null], [string
$userinfo = null], [mixed
$nativecode = null])</code>
    </td></tr></table>
    </td></tr></table><br />
	
		Communicates an error and invoke error callbacks, etc<br /><br /><p>Basically a wrapper for PEAR::raiseError without the message string.</p><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>PEAR_Error object</td>
  </tr>
  <tr>
    <td><b>access:</b>&nbsp;&nbsp;</td><td>public</td>
  </tr>
  <tr>
    <td><b>todo:</b>&nbsp;&nbsp;</td><td>Implement mock DB_common::raiseError</td>
  </tr>
  <tr>
    <td><b>see:</b>&nbsp;&nbsp;</td><td>PEAR_Error</td>
  </tr>
</table>
</div>
<br /><br />


        <h4>Parameters:</h4>
    <div class="tags">
    <table border="0" cellspacing="0" cellpadding="0">
          <tr>
        <td class="type">mixed&nbsp;&nbsp;</td>
        <td><b>$code</b>&nbsp;&nbsp;</td>
        <td>integer error code, or a PEAR error object (all                  other parameters are ignored if this parameter is                  an object</td>
      </tr>
          <tr>
        <td class="type">int&nbsp;&nbsp;</td>
        <td><b>$mode</b>&nbsp;&nbsp;</td>
        <td>error mode, see PEAR_Error docs</td>
      </tr>
          <tr>
        <td class="type">mixed&nbsp;&nbsp;</td>
        <td><b>$options</b>&nbsp;&nbsp;</td>
        <td>if error mode is PEAR_ERROR_TRIGGER, this is the                  error level (E_USER_NOTICE etc).  If error mode is                  PEAR_ERROR_CALLBACK, this is the callback function,                  either as a function name, or as an array of an                  object and method name.  For other error modes this                  parameter is ignored.</td>
      </tr>
          <tr>
        <td class="type">string&nbsp;&nbsp;</td>
        <td><b>$userinfo</b>&nbsp;&nbsp;</td>
        <td>extra debug information.  Defaults to the last                  query and native error code.</td>
      </tr>
          <tr>
        <td class="type">mixed&nbsp;&nbsp;</td>
        <td><b>$nativecode</b>&nbsp;&nbsp;</td>
        <td>native error code, integer or string depending the                  backend</td>
      </tr>
        </table>
    </div><br />
        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methodrollback"></a>
	<h3>method rollback <span class="smalllinenumber">[line <a href="..//__filesource/fsource_PHPonTraxTest__testmockDBDB.php.html#a1983">1983</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 rollback(
)</code>
    </td></tr></table>
    </td></tr></table><br />
	
		Reverts the current transaction<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 on success.  A DB_Error object on failure.</td>
  </tr>
  <tr>
    <td><b>access:</b>&nbsp;&nbsp;</td><td>public</td>
  </tr>
  <tr>
    <td><b>todo:</b>&nbsp;&nbsp;</td><td>Implement mock DB_common::rollback</td>
  </tr>
</table>
</div>
<br /><br />

	<p>Overridden in child classes as:<br />
		<dl>
	<dt><a href="../PHPonTraxTest/DB_mysql.html#methodrollback">DB_mysql::rollback()</a></dt>
		<dd>Reverts the current transaction</dd>
	</dl>
	</p>

        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methodsetFetchMode"></a>
	<h3>method setFetchMode <span class="smalllinenumber">[line <a href="..//__filesource/fsource_PHPonTraxTest__testmockDBDB.php.html#a1080">1080</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 setFetchMode(
integer
$fetchmode, [string
$object_class = 'stdClass'])</code>
    </td></tr></table>
    </td></tr></table><br />
	
		Sets the fetch mode that should be used by default for query results<br /><br /><br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><b>access:</b>&nbsp;&nbsp;</td><td>public</td>
  </tr>
  <tr>
    <td><b>todo:</b>&nbsp;&nbsp;</td><td>Implement mock DB_common::setFetchMode</td>
  </tr>
  <tr>
    <td><b>see:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTraxTest/_test_mockDB_DB_php.html#defineDB_FETCHMODE_ORDERED">DB_FETCHMODE_ORDERED</a>, <a href="../PHPonTraxTest/_test_mockDB_DB_php.html#defineDB_FETCHMODE_ASSOC">DB_FETCHMODE_ASSOC</a>, <a href="../PHPonTraxTest/_test_mockDB_DB_php.html#defineDB_FETCHMODE_OBJECT">DB_FETCHMODE_OBJECT</a></td>
  </tr>
</table>
</div>
<br /><br />


        <h4>Parameters:</h4>
    <div class="tags">
    <table border="0" cellspacing="0" cellpadding="0">
          <tr>
        <td class="type">integer&nbsp;&nbsp;</td>
        <td><b>$fetchmode</b>&nbsp;&nbsp;</td>
        <td>DB_FETCHMODE_ORDERED, DB_FETCHMODE_ASSOC                                or DB_FETCHMODE_OBJECT</td>
      </tr>
          <tr>
        <td class="type">string&nbsp;&nbsp;</td>
        <td><b>$object_class</b>&nbsp;&nbsp;</td>
        <td>the class name of the object to be returned                                by the fetch methods when the                                DB_FETCHMODE_OBJECT mode is selected.                                If no class is specified by default a cast                                to object from the assoc array row will be                                done.  There is also the posibility to use                                and extend the 'DB_row' class.</td>
      </tr>
        </table>
    </div><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#a1103">1103</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 setOption(
string
$option, mixed
$value)</code>
    </td></tr></table>
    </td></tr></table><br />
	
		Sets run-time configuration options for PEAR DB<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 on success.  A DB_Error object on failure.</td>
  </tr>
  <tr>
    <td><b>access:</b>&nbsp;&nbsp;</td><td>public</td>
  </tr>
  <tr>
    <td><b>todo:</b>&nbsp;&nbsp;</td><td>Implement mock DB_common::setOption</td>
  </tr>
  <tr>
    <td><b>see:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTraxTest/DB_common.html#var$options">DB_common::$options</a></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>$option</b>&nbsp;&nbsp;</td>
        <td>option name</td>
      </tr>
          <tr>
        <td class="type">mixed&nbsp;&nbsp;</td>
        <td><b>$value</b>&nbsp;&nbsp;</td>
        <td>value for the option</td>
      </tr>
        </table>
    </div><br />
        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methodtableInfo"></a>
	<h3>method tableInfo <span class="smalllinenumber">[line <a href="..//__filesource/fsource_PHPonTraxTest__testmockDBDB.php.html#a2197">2197</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>array tableInfo(
object|string
$result, [int
$mode = null])</code>
    </td></tr></table>
    </td></tr></table><br />
	
		Returns information about a table or 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>an associative array with the information requested.                  A DB_Error object on failure.</td>
  </tr>
  <tr>
    <td><b>access:</b>&nbsp;&nbsp;</td><td>public</td>
  </tr>
  <tr>
    <td><b>todo:</b>&nbsp;&nbsp;</td><td>Implement mock DB_common::tableInfo</td>
  </tr>
  <tr>
    <td><b>see:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTraxTest/DB_common.html#methodsetOption">DB_common::setOption()</a></td>
  </tr>
</table>
</div>
<br /><br />

	<p>Overridden in child classes as:<br />
		<dl>
	<dt><a href="../PHPonTraxTest/DB_mysql.html#methodtableInfo">DB_mysql::tableInfo()</a></dt>
		<dd>Returns information about a table or a result set</dd>
	</dl>
	</p>

        <h4>Parameters:</h4>
    <div class="tags">
    <table border="0" cellspacing="0" cellpadding="0">
          <tr>
        <td class="type">object|string&nbsp;&nbsp;</td>
        <td><b>$result</b>&nbsp;&nbsp;</td>
        <td>DB_result object from a query or a                                 string containing the name of a table.                                 While this also accepts a query result                                 resource identifier, this behavior is                                 deprecated.</td>
      </tr>
          <tr>
        <td class="type">int&nbsp;&nbsp;</td>
        <td><b>$mode</b>&nbsp;&nbsp;</td>
        <td>either unused or one of the tableInfo modes:                      <kbd>DB_TABLEINFO_ORDERTABLE</kbd>,                      <kbd>DB_TABLEINFO_ORDER</kbd> or                      <kbd>DB_TABLEINFO_FULL</kbd> (which does both).                      These are bitwise, so the first two can be                      combined using <kbd>|</kbd>.</td>
      </tr>
        </table>
    </div><br />
        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methodtally_queries"></a>
	<h3>method tally_queries <span class="smalllinenumber">[line <a href="..//__filesource/fsource_PHPonTraxTest__testmockDBDB.php.html#a1490">1490</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 tally_queries(
)</code>
    </td></tr></table>
    </td></tr></table><br />
	
		Verify that all expected queries have been received<br /><br /><p>This is a test routine that does not exist in the PEAR DB package.</p><br /><br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><b>access:</b>&nbsp;&nbsp;</td><td>public</td>
  </tr>
</table>
</div>
<br /><br />


        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="method_convertNullArrayValuesToEmpty"></a>
	<h3>method _convertNullArrayValuesToEmpty <span class="smalllinenumber">[line <a href="..//__filesource/fsource_PHPonTraxTest__testmockDBDB.php.html#a2271">2271</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 _convertNullArrayValuesToEmpty(
array
&$array)</code>
    </td></tr></table>
    </td></tr></table><br />
	
		Converts all null values in an array to empty strings<br /><br /><br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><b>access:</b>&nbsp;&nbsp;</td><td>protected</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>$array</b>&nbsp;&nbsp;</td>
        <td>the array to be de-nullified (passed by reference)</td>
      </tr>
        </table>
    </div><br />
        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="method_rtrimArrayValues"></a>
	<h3>method _rtrimArrayValues <span class="smalllinenumber">[line <a href="..//__filesource/fsource_PHPonTraxTest__testmockDBDB.php.html#a2256">2256</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 _rtrimArrayValues(
array
&$array)</code>
    </td></tr></table>
    </td></tr></table><br />
	
		Right-trims all strings in an array<br /><br /><br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><b>access:</b>&nbsp;&nbsp;</td><td>protected</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>$array</b>&nbsp;&nbsp;</td>
        <td>the array to be trimmed (passed by reference)</td>
      </tr>
        </table>
    </div><br />
        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="method__sleep"></a>
	<h3>method __sleep <span class="smalllinenumber">[line <a href="..//__filesource/fsource_PHPonTraxTest__testmockDBDB.php.html#a947">947</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>array __sleep(
)</code>
    </td></tr></table>
    </td></tr></table><br />
	
		Automatically indicates which properties should be saved  when PHP's serialize() function is called<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 array of properties names that should be saved</td>
  </tr>
  <tr>
    <td><b>todo:</b>&nbsp;&nbsp;</td><td>Implement mock DB_common::__sleep</td>
  </tr>
</table>
</div>
<br /><br />


        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="method__toString"></a>
	<h3>method __toString <span class="smalllinenumber">[line <a href="..//__filesource/fsource_PHPonTraxTest__testmockDBDB.php.html#a997">997</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 __toString(
)</code>
    </td></tr></table>
    </td></tr></table><br />
	
		Automatic string conversion for PHP 5<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>a string describing the current PEAR DB object</td>
  </tr>
  <tr>
    <td><b>access:</b>&nbsp;&nbsp;</td><td>public</td>
  </tr>
  <tr>
    <td><b>todo:</b>&nbsp;&nbsp;</td><td>Implement mock DB_common::__toString</td>
  </tr>
</table>
</div>
<br /><br />


        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="method__wakeup"></a>
	<h3>method __wakeup <span class="smalllinenumber">[line <a href="..//__filesource/fsource_PHPonTraxTest__testmockDBDB.php.html#a984">984</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 __wakeup(
)</code>
    </td></tr></table>
    </td></tr></table><br />
	
		Automatically reconnects to the database when PHP's unserialize()  function is called<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_common::__wakeup</td>
  </tr>
</table>
</div>
<br /><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:30 -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