<html>
<head>
<title>Docs For Class DB_mysql</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_mysql</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
|
--<a href="../PHPonTraxTest/DB_common.html">DB_common</a>
|
--DB_mysql</pre><br />
<div class="description">Mock DB_mysql class</div><br /><br />
</td>
<td valign="top">
<h3><a href="#class_methods">Methods</a></h3>
<ul>
<li><a href="../PHPonTraxTest/DB_mysql.html#methodDB_mysql">DB_mysql</a></li>
<li><a href="../PHPonTraxTest/DB_mysql.html#methodaffectedRows">affectedRows</a></li>
<li><a href="../PHPonTraxTest/DB_mysql.html#methodautoCommit">autoCommit</a></li>
<li><a href="../PHPonTraxTest/DB_mysql.html#methodcommit">commit</a></li>
<li><a href="../PHPonTraxTest/DB_mysql.html#methodconnect">connect</a></li>
<li><a href="../PHPonTraxTest/DB_mysql.html#methodcreateSequence">createSequence</a></li>
<li><a href="../PHPonTraxTest/DB_mysql.html#methoddisconnect">disconnect</a></li>
<li><a href="../PHPonTraxTest/DB_mysql.html#methoddropSequence">dropSequence</a></li>
<li><a href="../PHPonTraxTest/DB_mysql.html#methoderrorNative">errorNative</a></li>
<li><a href="../PHPonTraxTest/DB_mysql.html#methodescapeSimple">escapeSimple</a></li>
<li><a href="../PHPonTraxTest/DB_mysql.html#methodfetchInto">fetchInto</a></li>
<li><a href="../PHPonTraxTest/DB_mysql.html#methodfreeResult">freeResult</a></li>
<li><a href="../PHPonTraxTest/DB_mysql.html#methodgetSpecialQuery">getSpecialQuery</a></li>
<li><a href="../PHPonTraxTest/DB_mysql.html#methodmodifyLimitQuery">modifyLimitQuery</a></li>
<li><a href="../PHPonTraxTest/DB_mysql.html#methodmodifyQuery">modifyQuery</a></li>
<li><a href="../PHPonTraxTest/DB_mysql.html#methodmysqlRaiseError">mysqlRaiseError</a></li>
<li><a href="../PHPonTraxTest/DB_mysql.html#methodnextId">nextId</a></li>
<li><a href="../PHPonTraxTest/DB_mysql.html#methodnextResult">nextResult</a></li>
<li><a href="../PHPonTraxTest/DB_mysql.html#methodnumCols">numCols</a></li>
<li><a href="../PHPonTraxTest/DB_mysql.html#methodnumRows">numRows</a></li>
<li><a href="../PHPonTraxTest/DB_mysql.html#methodquoteIdentifier">quoteIdentifier</a></li>
<li><a href="../PHPonTraxTest/DB_mysql.html#methodrollback">rollback</a></li>
<li><a href="../PHPonTraxTest/DB_mysql.html#methodsimpleQuery">simpleQuery</a></li>
<li><a href="../PHPonTraxTest/DB_mysql.html#methodtableInfo">tableInfo</a></li>
<li><a href="../PHPonTraxTest/DB_mysql.html#method_BCsequence">_BCsequence</a></li>
</ul>
</td>
</tr></table>
<hr />
<table width="100%" border="0"><tr>
<td valign="top">
<h3>Inherited Variables</h3>
<div class="tags">
<h4>Class: <a href="../PHPonTraxTest/DB_common.html">DB_common</a></h4>
<dl>
<dt>
<a href="../PHPonTraxTest/DB_common.html#var$database">DB_common::$database</a>
</dt>
<dd>
</dd>
<dt>
<a href="../PHPonTraxTest/DB_common.html#var$expected_list">DB_common::$expected_list</a>
</dt>
<dd>
</dd>
<dt>
<a href="../PHPonTraxTest/DB_common.html#var$expected_list_cursor">DB_common::$expected_list_cursor</a>
</dt>
<dd>
</dd>
<dt>
<a href="../PHPonTraxTest/DB_common.html#var$expected_query">DB_common::$expected_query</a>
</dt>
<dd>
</dd>
<dt>
<a href="../PHPonTraxTest/DB_common.html#var$expected_result">DB_common::$expected_result</a>
</dt>
<dd>
</dd>
<dt>
<a href="../PHPonTraxTest/DB_common.html#var$options">DB_common::$options</a>
</dt>
<dd>
</dd>
</dl>
</div>
</td>
<td valign="top">
<h3>Inherited Methods</h3>
<div class="tags">
<h4>Class: <a href="../PHPonTraxTest/DB_common.html">DB_common</a></h4>
<dl>
<dt>
<a href="../PHPonTraxTest/DB_common.html#methodDB_common">DB_common::DB_common()</a>
</dt>
<dd>
This constructor calls <kbd>$this->PEAR('DB_Error')</kbd>
</dd>
<dt>
<a href="../PHPonTraxTest/DB_common.html#methodaffectedRows">DB_common::affectedRows()</a>
</dt>
<dd>
Determines the number of rows affected by a data maniuplation query
</dd>
<dt>
<a href="../PHPonTraxTest/DB_common.html#methodautoCommit">DB_common::autoCommit()</a>
</dt>
<dd>
Enables or disables automatic commits
</dd>
<dt>
<a href="../PHPonTraxTest/DB_common.html#methodautoExecute">DB_common::autoExecute()</a>
</dt>
<dd>
Automaticaly generates an insert or update query and call prepare() and execute() with it
</dd>
<dt>
<a href="../PHPonTraxTest/DB_common.html#methodautoPrepare">DB_common::autoPrepare()</a>
</dt>
<dd>
Automaticaly generates an insert or update query and pass it to prepare()
</dd>
<dt>
<a href="../PHPonTraxTest/DB_common.html#methodbuildManipSQL">DB_common::buildManipSQL()</a>
</dt>
<dd>
Produces an SQL query string for autoPrepare()
</dd>
<dt>
<a href="../PHPonTraxTest/DB_common.html#methodcommit">DB_common::commit()</a>
</dt>
<dd>
Commits the current transaction
</dd>
<dt>
<a href="../PHPonTraxTest/DB_common.html#methodcreateSequence">DB_common::createSequence()</a>
</dt>
<dd>
Creates a new sequence
</dd>
<dt>
<a href="../PHPonTraxTest/DB_common.html#methoddropSequence">DB_common::dropSequence()</a>
</dt>
<dd>
Deletes a sequence
</dd>
<dt>
<a href="../PHPonTraxTest/DB_common.html#methoderrorCode">DB_common::errorCode()</a>
</dt>
<dd>
Maps native error codes to DB's portable ones
</dd>
<dt>
<a href="../PHPonTraxTest/DB_common.html#methoderrorMessage">DB_common::errorMessage()</a>
</dt>
<dd>
Maps a DB error code to a textual message
</dd>
<dt>
<a href="../PHPonTraxTest/DB_common.html#methoderrorNative">DB_common::errorNative()</a>
</dt>
<dd>
Gets the DBMS' native error code produced by the last query
</dd>
<dt>
<a href="../PHPonTraxTest/DB_common.html#methodescapeSimple">DB_common::escapeSimple()</a>
</dt>
<dd>
Escapes a string according to the current DBMS's standards
</dd>
<dt>
<a href="../PHPonTraxTest/DB_common.html#methodexecute">DB_common::execute()</a>
</dt>
<dd>
Executes a DB statement prepared with prepare()
</dd>
<dt>
<a href="../PHPonTraxTest/DB_common.html#methodexecuteEmulateQuery">DB_common::executeEmulateQuery()</a>
</dt>
<dd>
Emulates executing prepared statements if the DBMS not support them
</dd>
<dt>
<a href="../PHPonTraxTest/DB_common.html#methodexecuteMultiple">DB_common::executeMultiple()</a>
</dt>
<dd>
Performs several execute() calls on the same statement handle
</dd>
<dt>
<a href="../PHPonTraxTest/DB_common.html#methodexpect_queries">DB_common::expect_queries()</a>
</dt>
<dd>
Set list of expected queries and returns
</dd>
<dt>
<a href="../PHPonTraxTest/DB_common.html#methodexpect_query">DB_common::expect_query()</a>
</dt>
<dd>
Set expected query and return
</dd>
<dt>
<a href="../PHPonTraxTest/DB_common.html#methodfreePrepared">DB_common::freePrepared()</a>
</dt>
<dd>
Frees the internal resources associated with a prepared query
</dd>
<dt>
<a href="../PHPonTraxTest/DB_common.html#methodgetAll">DB_common::getAll()</a>
</dt>
<dd>
Fetches all of the rows from a query result
</dd>
<dt>
<a href="../PHPonTraxTest/DB_common.html#methodgetAssoc">DB_common::getAssoc()</a>
</dt>
<dd>
Fetches an entire query result and returns it as an associative array using the first column as the key
</dd>
<dt>
<a href="../PHPonTraxTest/DB_common.html#methodgetCol">DB_common::getCol()</a>
</dt>
<dd>
Fetches a single column from a query result and returns it as an indexed array
</dd>
<dt>
<a href="../PHPonTraxTest/DB_common.html#methodgetListOf">DB_common::getListOf()</a>
</dt>
<dd>
Lists internal database information
</dd>
<dt>
<a href="../PHPonTraxTest/DB_common.html#methodgetOne">DB_common::getOne()</a>
</dt>
<dd>
Fetches the first column of the first row from a query result
</dd>
<dt>
<a href="../PHPonTraxTest/DB_common.html#methodgetOption">DB_common::getOption()</a>
</dt>
<dd>
Returns the value of an option
</dd>
<dt>
<a href="../PHPonTraxTest/DB_common.html#methodgetRow">DB_common::getRow()</a>
</dt>
<dd>
Fetches the first row of data returned from a query result
</dd>
<dt>
<a href="../PHPonTraxTest/DB_common.html#methodgetSequenceName">DB_common::getSequenceName()</a>
</dt>
<dd>
Generates the name used inside the database for a sequence
</dd>
<dt>
<a href="../PHPonTraxTest/DB_common.html#methodgetSpecialQuery">DB_common::getSpecialQuery()</a>
</dt>
<dd>
Obtains the query string needed for listing a given type of objects
</dd>
<dt>
<a href="../PHPonTraxTest/DB_common.html#methodlimitQuery">DB_common::limitQuery()</a>
</dt>
<dd>
Generates and executes a LIMIT query
</dd>
<dt>
<a href="../PHPonTraxTest/DB_common.html#methodmodifyLimitQuery">DB_common::modifyLimitQuery()</a>
</dt>
<dd>
Adds LIMIT clauses to a query string according to current DBMS standards
</dd>
<dt>
<a href="../PHPonTraxTest/DB_common.html#methodmodifyQuery">DB_common::modifyQuery()</a>
</dt>
<dd>
Changes a query string for various DBMS specific reasons
</dd>
<dt>
<a href="../PHPonTraxTest/DB_common.html#methodnextId">DB_common::nextId()</a>
</dt>
<dd>
Returns the next free id in a sequence
</dd>
<dt>
<a href="../PHPonTraxTest/DB_common.html#methodnumRows">DB_common::numRows()</a>
</dt>
<dd>
Determines the number of rows in a query result
</dd>
<dt>
<a href="../PHPonTraxTest/DB_common.html#methodprepare">DB_common::prepare()</a>
</dt>
<dd>
Prepares a query for multiple execution with execute()
</dd>
<dt>
<a href="../PHPonTraxTest/DB_common.html#methodprovides">DB_common::provides()</a>
</dt>
<dd>
Tells whether the present driver supports a given feature
</dd>
<dt>
<a href="../PHPonTraxTest/DB_common.html#methodquery">DB_common::query()</a>
</dt>
<dd>
Sends a query to the database server
</dd>
<dt>
<a href="../PHPonTraxTest/DB_common.html#methodquoteIdentifier">DB_common::quoteIdentifier()</a>
</dt>
<dd>
Quotes a string so it can be safely used as a table or column name
</dd>
<dt>
<a href="../PHPonTraxTest/DB_common.html#methodquoteSmart">DB_common::quoteSmart()</a>
</dt>
<dd>
Formats input so it can be safely used in a query
</dd>
<dt>
<a href="../PHPonTraxTest/DB_common.html#methodraiseError">DB_common::raiseError()</a>
</dt>
<dd>
Communicates an error and invoke error callbacks, etc
</dd>
<dt>
<a href="../PHPonTraxTest/DB_common.html#methodrollback">DB_common::rollback()</a>
</dt>
<dd>
Reverts the current transaction
</dd>
<dt>
<a href="../PHPonTraxTest/DB_common.html#methodsetFetchMode">DB_common::setFetchMode()</a>
</dt>
<dd>
Sets the fetch mode that should be used by default for query results
</dd>
<dt>
<a href="../PHPonTraxTest/DB_common.html#methodsetOption">DB_common::setOption()</a>
</dt>
<dd>
Sets run-time configuration options for PEAR DB
</dd>
<dt>
<a href="../PHPonTraxTest/DB_common.html#methodtableInfo">DB_common::tableInfo()</a>
</dt>
<dd>
Returns information about a table or a result set
</dd>
<dt>
<a href="../PHPonTraxTest/DB_common.html#methodtally_queries">DB_common::tally_queries()</a>
</dt>
<dd>
Verify that all expected queries have been received
</dd>
<dt>
<a href="../PHPonTraxTest/DB_common.html#method_convertNullArrayValuesToEmpty">DB_common::_convertNullArrayValuesToEmpty()</a>
</dt>
<dd>
Converts all null values in an array to empty strings
</dd>
<dt>
<a href="../PHPonTraxTest/DB_common.html#method_rtrimArrayValues">DB_common::_rtrimArrayValues()</a>
</dt>
<dd>
Right-trims all strings in an array
</dd>
<dt>
<a href="../PHPonTraxTest/DB_common.html#method__sleep">DB_common::__sleep()</a>
</dt>
<dd>
Automatically indicates which properties should be saved when PHP's serialize() function is called
</dd>
<dt>
<a href="../PHPonTraxTest/DB_common.html#method__toString">DB_common::__toString()</a>
</dt>
<dd>
Automatic string conversion for PHP 5
</dd>
<dt>
<a href="../PHPonTraxTest/DB_common.html#method__wakeup">DB_common::__wakeup()</a>
</dt>
<dd>
Automatically reconnects to the database when PHP's unserialize() function is called
</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#a2596">2596</a>]<br />
Mock DB_mysql class<br /><br /></div><br /><br />
<div class="top">[ <a href="#top">Top</a> ]</div><br />
<hr />
<a name="class_methods"></a>
<h3>Class Methods</h3>
<div class="tags">
<hr />
<a name="methodDB_mysql"></a>
<h3>constructor DB_mysql <span class="smalllinenumber">[line <a href="..//__filesource/fsource_PHPonTraxTest__testmockDBDB.php.html#a2604">2604</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_mysql(
)</code>
</td></tr></table>
</td></tr></table><br />
This constructor calls <kbd>$this->DB_common()</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#a2950">2950</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> </td><td>the number of rows. A DB_Error object on failure.</td>
</tr>
<tr>
<td><b>todo:</b> </td><td>Implement mock DB_mysql::affectedRows()</td>
</tr>
</table>
</div>
<br /><br />
Overrides <a href="../PHPonTraxTest/DB_common.html#methodaffectedRows">DB_common::affectedRows()</a> (Determines the number of rows affected by a data maniuplation query)<br /><br />
<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#a2886">2886</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> </td><td>DB_OK on success. A DB_Error object if the driver doesn't support auto-committing transactions.</td>
</tr>
<tr>
<td><b>todo:</b> </td><td>Implement mock DB_mysql::autoCommit()</td>
</tr>
</table>
</div>
<br /><br />
Overrides <a href="../PHPonTraxTest/DB_common.html#methodautoCommit">DB_common::autoCommit()</a> (Enables or disables automatic commits)<br /><br />
<h4>Parameters:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="type">bool </td>
<td><b>$onoff</b> </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="methodcommit"></a>
<h3>method commit <span class="smalllinenumber">[line <a href="..//__filesource/fsource_PHPonTraxTest__testmockDBDB.php.html#a2900">2900</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> </td><td>DB_OK on success. A DB_Error object on failure.</td>
</tr>
<tr>
<td><b>todo:</b> </td><td>Implement mock DB_mysql::committ()</td>
</tr>
</table>
</div>
<br /><br />
Overrides <a href="../PHPonTraxTest/DB_common.html#methodcommit">DB_common::commit()</a> (Commits the current transaction)<br /><br />
<div class="top">[ <a href="#top">Top</a> ]</div>
</div>
<hr />
<a name="methodconnect"></a>
<h3>method connect <span class="smalllinenumber">[line <a href="..//__filesource/fsource_PHPonTraxTest__testmockDBDB.php.html#a2617">2617</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 connect(
array
$dsn, [bool
$persistent = false])</code>
</td></tr></table>
</td></tr></table><br />
Connect to the database server, log in and open the database<br /><br /><br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td><b>return:</b> </td><td>DB_OK on success. A DB_Error object on failure.</td>
</tr>
<tr>
<td><b>todo:</b> </td><td>Implement mock DB_mysql::connect()</td>
</tr>
</table>
</div>
<br /><br />
<h4>Parameters:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="type">array </td>
<td><b>$dsn</b> </td>
<td>the data source name</td>
</tr>
<tr>
<td class="type">bool </td>
<td><b>$persistent</b> </td>
<td>should the connection be persistent?</td>
</tr>
</table>
</div><br />
<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#a3053">3053</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> </td><td>DB_OK on success. A DB_Error object on failure.</td>
</tr>
<tr>
<td><b>todo:</b> </td><td>Implement mock DB_mysql::createSequence()</td>
</tr>
<tr>
<td><b>see:</b> </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_mysql::nextID(), <a href="../PHPonTraxTest/DB_mysql.html#methoddropSequence">DB_mysql::dropSequence()</a></td>
</tr>
</table>
</div>
<br /><br />
Overrides <a href="../PHPonTraxTest/DB_common.html#methodcreateSequence">DB_common::createSequence()</a> (Creates a new sequence)<br /><br />
<h4>Parameters:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="type">string </td>
<td><b>$seq_name</b> </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="methoddisconnect"></a>
<h3>method disconnect <span class="smalllinenumber">[line <a href="..//__filesource/fsource_PHPonTraxTest__testmockDBDB.php.html#a2697">2697</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 disconnect(
)</code>
</td></tr></table>
</td></tr></table><br />
Disconnects from 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> </td><td>TRUE on success, FALSE on failure</td>
</tr>
<tr>
<td><b>todo:</b> </td><td>Implement mock DB_mysql::disconnect()</td>
</tr>
</table>
</div>
<br /><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#a3082">3082</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> </td><td>DB_OK on success. A DB_Error object on failure.</td>
</tr>
<tr>
<td><b>todo:</b> </td><td>Implement mock DB_mysql::dropSequence()</td>
</tr>
<tr>
<td><b>see:</b> </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_mysql::nextID(), <a href="../PHPonTraxTest/DB_mysql.html#methodcreateSequence">DB_mysql::createSequence()</a></td>
</tr>
</table>
</div>
<br /><br />
Overrides <a href="../PHPonTraxTest/DB_common.html#methoddropSequence">DB_common::dropSequence()</a> (Deletes a sequence)<br /><br />
<h4>Parameters:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="type">string </td>
<td><b>$seq_name</b> </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="methoderrorNative"></a>
<h3>method errorNative <span class="smalllinenumber">[line <a href="..//__filesource/fsource_PHPonTraxTest__testmockDBDB.php.html#a3253">3253</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 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> </td><td>the DBMS' error code</td>
</tr>
<tr>
<td><b>todo:</b> </td><td>Implement mock DB_mysql::errorNative()</td>
</tr>
</table>
</div>
<br /><br />
Overrides <a href="../PHPonTraxTest/DB_common.html#methoderrorNative">DB_common::errorNative()</a> (Gets the DBMS' native error code produced by the last query)<br /><br />
<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#a3158">3158</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> </td><td>the escaped string</td>
</tr>
<tr>
<td><b>todo:</b> </td><td>Implement mock DB_mysql::escapeSimple()</td>
</tr>
<tr>
<td><b>see:</b> </td><td><a href="../PHPonTraxTest/DB_common.html#methodquoteSmart">DB_common::quoteSmart()</a></td>
</tr>
</table>
</div>
<br /><br />
Overrides <a href="../PHPonTraxTest/DB_common.html#methodescapeSimple">DB_common::escapeSimple()</a> (Escapes a string according to the current DBMS's standards)<br /><br />
<h4>Parameters:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="type">string </td>
<td><b>$str</b> </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="methodfetchInto"></a>
<h3>method fetchInto <span class="smalllinenumber">[line <a href="..//__filesource/fsource_PHPonTraxTest__testmockDBDB.php.html#a2779">2779</a>]</span></h3>
<div class="function">
<table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border">
<table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">
<code>mixed fetchInto(
resource
$result, array
&$arr, int
$fetchmode, [int
$rownum = null])</code>
</td></tr></table>
</td></tr></table><br />
Places a row from the result set into the given array<br /><br /><br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td><b>return:</b> </td><td>DB_OK on success, NULL when the end of a result set is reached or on failure</td>
</tr>
<tr>
<td><b>todo:</b> </td><td>Implement mock DB_mysql::fetchInto()</td>
</tr>
<tr>
<td><b>see:</b> </td><td><a href="../PHPonTraxTest/DB_result.html#methodfetchInto">DB_result::fetchInto()</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 </td>
<td><b>$result</b> </td>
<td>the query result resource</td>
</tr>
<tr>
<td class="type">array </td>
<td><b>$arr</b> </td>
<td>the referenced array to put the data in</td>
</tr>
<tr>
<td class="type">int </td>
<td><b>$fetchmode</b> </td>
<td>how the resulting array should be indexed</td>
</tr>
<tr>
<td class="type">int </td>
<td><b>$rownum</b> </td>
<td>the row number to fetch (0 = first row)</td>
</tr>
</table>
</div><br />
<div class="top">[ <a href="#top">Top</a> ]</div>
</div>
<hr />
<a name="methodfreeResult"></a>
<h3>method freeResult <span class="smalllinenumber">[line <a href="..//__filesource/fsource_PHPonTraxTest__testmockDBDB.php.html#a2825">2825</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 freeResult(
resource
$result)</code>
</td></tr></table>
</td></tr></table><br />
Deletes the result set and frees the memory occupied by the result set<br /><br /><p>This method is not meant to be called directly. Use DB_result::free() instead. It can't be declared "protected" because DB_result is a separate object.</p><br /><br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td><b>return:</b> </td><td>TRUE on success, FALSE if $result is invalid</td>
</tr>
<tr>
<td><b>todo:</b> </td><td>Implement mock DB_mysql::freeResult()</td>
</tr>
<tr>
<td><b>see:</b> </td><td><a href="../PHPonTraxTest/DB_result.html#methodfree">DB_result::free()</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 </td>
<td><b>$result</b> </td>
<td>PHP's query result resource</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#a3302">3302</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> </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> </td><td>protected</td>
</tr>
<tr>
<td><b>see:</b> </td><td><a href="../PHPonTraxTest/DB_common.html#methodgetListOf">DB_common::getListOf()</a></td>
</tr>
</table>
</div>
<br /><br />
Overrides <a href="../PHPonTraxTest/DB_common.html#methodgetSpecialQuery">DB_common::getSpecialQuery()</a> (Obtains the query string needed for listing a given type of objects)<br /><br />
<h4>Parameters:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="type">string </td>
<td><b>$type</b> </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="methodmodifyLimitQuery"></a>
<h3>method modifyLimitQuery <span class="smalllinenumber">[line <a href="..//__filesource/fsource_PHPonTraxTest__testmockDBDB.php.html#a3206">3206</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> </td><td>the query string with LIMIT clauses added</td>
</tr>
<tr>
<td><b>access:</b> </td><td>protected</td>
</tr>
<tr>
<td><b>todo:</b> </td><td>Implement mock DB_mysql::modifyLimitQuery()</td>
</tr>
</table>
</div>
<br /><br />
Overrides <a href="../PHPonTraxTest/DB_common.html#methodmodifyLimitQuery">DB_common::modifyLimitQuery()</a> (Adds LIMIT clauses to a query string according to current DBMS standards)<br /><br />
<h4>Parameters:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="type">string </td>
<td><b>$query</b> </td>
<td>the query to modify</td>
</tr>
<tr>
<td class="type">int </td>
<td><b>$from</b> </td>
<td>the row to start to fetching (0 = the first row)</td>
</tr>
<tr>
<td class="type">int </td>
<td><b>$count</b> </td>
<td>the numbers of rows to fetch</td>
</tr>
<tr>
<td class="type">mixed </td>
<td><b>$params</b> </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#a3179">3179</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 /><p>This little hack lets you know how many rows were deleted when running a "DELETE FROM table" query. Only implemented if the DB_PORTABILITY_DELETE_COUNT portability option is on.</p><br /><br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td><b>return:</b> </td><td>the modified query string</td>
</tr>
<tr>
<td><b>access:</b> </td><td>protected</td>
</tr>
<tr>
<td><b>todo:</b> </td><td>Implement mock DB_mysql::modifyQuery()</td>
</tr>
<tr>
<td><b>see:</b> </td><td><a href="../PHPonTraxTest/DB_common.html#methodsetOption">DB_common::setOption()</a></td>
</tr>
</table>
</div>
<br /><br />
Overrides <a href="../PHPonTraxTest/DB_common.html#methodmodifyQuery">DB_common::modifyQuery()</a> (Changes a query string for various DBMS specific reasons)<br /><br />
<h4>Parameters:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="type">string </td>
<td><b>$query</b> </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="methodmysqlRaiseError"></a>
<h3>method mysqlRaiseError <span class="smalllinenumber">[line <a href="..//__filesource/fsource_PHPonTraxTest__testmockDBDB.php.html#a3227">3227</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 mysqlRaiseError(
[int
$errno = null])</code>
</td></tr></table>
</td></tr></table><br />
Produces a DB_Error object regarding the current problem<br /><br /><br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td><b>return:</b> </td><td>DB_Error object</td>
</tr>
<tr>
<td><b>todo:</b> </td><td>Implement mock DB_mysql::mysqlRaiseError()</td>
</tr>
<tr>
<td><b>see:</b> </td><td><a href="../PHPonTraxTest/DB_common.html#methodraiseError">DB_common::raiseError()</a>, <a href="../PHPonTraxTest/DB_mysql.html#methoderrorNative">DB_mysql::errorNative()</a>, <a href="../PHPonTraxTest/DB_common.html#methoderrorCode">DB_common::errorCode()</a></td>
</tr>
</table>
</div>
<br /><br />
<h4>Parameters:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="type">int </td>
<td><b>$errno</b> </td>
<td>if the error is being manually raised pass a DB_ERROR* constant here. If this isn't passed the error information gathered from the DBMS.</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#a2973">2973</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> </td><td>the next id number in the sequence. A DB_Error object on failure.</td>
</tr>
<tr>
<td><b>todo:</b> </td><td>Implement mock DB_mysql::nextId()</td>
</tr>
<tr>
<td><b>see:</b> </td><td>DB_common::nextID(), <a href="../PHPonTraxTest/DB_common.html#methodgetSequenceName">DB_common::getSequenceName()</a>, <a href="../PHPonTraxTest/DB_mysql.html#methodcreateSequence">DB_mysql::createSequence()</a>, <a href="../PHPonTraxTest/DB_mysql.html#methoddropSequence">DB_mysql::dropSequence()</a></td>
</tr>
</table>
</div>
<br /><br />
Overrides <a href="../PHPonTraxTest/DB_common.html#methodnextId">DB_common::nextId()</a> (Returns the next free id in a sequence)<br /><br />
<h4>Parameters:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="type">string </td>
<td><b>$seq_name</b> </td>
<td>name of the sequence</td>
</tr>
<tr>
<td class="type">boolean </td>
<td><b>$ondemand</b> </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="methodnextResult"></a>
<h3>method nextResult <span class="smalllinenumber">[line <a href="..//__filesource/fsource_PHPonTraxTest__testmockDBDB.php.html#a2761">2761</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>false nextResult(
a
$result)</code>
</td></tr></table>
</td></tr></table><br />
Move the internal mysql result pointer to the next available result<br /><br /><p>This method has not been implemented yet.</p><br /><br /><br />
<h4>Parameters:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="type">a </td>
<td><b>$result</b> </td>
<td>valid sql result resource</td>
</tr>
</table>
</div><br />
<div class="top">[ <a href="#top">Top</a> ]</div>
</div>
<hr />
<a name="methodnumCols"></a>
<h3>method numCols <span class="smalllinenumber">[line <a href="..//__filesource/fsource_PHPonTraxTest__testmockDBDB.php.html#a2845">2845</a>]</span></h3>
<div class="function">
<table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border">
<table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">
<code>int numCols(
resource
$result)</code>
</td></tr></table>
</td></tr></table><br />
Gets the number of columns in a result set<br /><br /><p>This method is not meant to be called directly. Use DB_result::numCols() instead. It can't be declared "protected" because DB_result is a separate object.</p><br /><br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td><b>return:</b> </td><td>the number of columns. A DB_Error object on failure.</td>
</tr>
<tr>
<td><b>todo:</b> </td><td>Implement mock DB_mysql::numCols()</td>
</tr>
<tr>
<td><b>see:</b> </td><td><a href="../PHPonTraxTest/DB_result.html#methodnumCols">DB_result::numCols()</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 </td>
<td><b>$result</b> </td>
<td>PHP's query result resource</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#a2868">2868</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 />
Gets the number of rows in a result set<br /><br /><p>This method is not meant to be called directly. Use DB_result::numRows() instead. It can't be declared "protected" because DB_result is a separate object.</p><br /><br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td><b>return:</b> </td><td>the number of rows. A DB_Error object on failure.</td>
</tr>
<tr>
<td><b>todo:</b> </td><td>Implement mock DB_mysql::numRows()</td>
</tr>
<tr>
<td><b>see:</b> </td><td><a href="../PHPonTraxTest/DB_result.html#methodnumRows">DB_result::numRows()</a></td>
</tr>
</table>
</div>
<br /><br />
Overrides <a href="../PHPonTraxTest/DB_common.html#methodnumRows">DB_common::numRows()</a> (Determines the number of rows in a query result)<br /><br />
<h4>Parameters:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="type">resource </td>
<td><b>$result</b> </td>
<td>PHP's query result resource</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#a3145">3145</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 /><p>MySQL can't handle the backtick character (<kbd>`</kbd>) in table or column names.</p><br /><br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td><b>return:</b> </td><td>quoted identifier string</td>
</tr>
<tr>
<td><b>access:</b> </td><td>private</td>
</tr>
<tr>
<td><b>see:</b> </td><td><a href="../PHPonTraxTest/DB_common.html#methodquoteIdentifier">DB_common::quoteIdentifier()</a></td>
</tr>
</table>
</div>
<br /><br />
Overrides <a href="../PHPonTraxTest/DB_common.html#methodquoteIdentifier">DB_common::quoteIdentifier()</a> (Quotes a string so it can be safely used as a table or column name)<br /><br />
<h4>Parameters:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="type">string </td>
<td><b>$str</b> </td>
<td>identifier name to be quoted</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#a2924">2924</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> </td><td>DB_OK on success. A DB_Error object on failure.</td>
</tr>
<tr>
<td><b>todo:</b> </td><td>Implement mock DB_mysql::rollback()</td>
</tr>
</table>
</div>
<br /><br />
Overrides <a href="../PHPonTraxTest/DB_common.html#methodrollback">DB_common::rollback()</a> (Reverts the current transaction)<br /><br />
<div class="top">[ <a href="#top">Top</a> ]</div>
</div>
<hr />
<a name="methodsimpleQuery"></a>
<h3>method simpleQuery <span class="smalllinenumber">[line <a href="..//__filesource/fsource_PHPonTraxTest__testmockDBDB.php.html#a2718">2718</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 simpleQuery(
string
$query)</code>
</td></tr></table>
</td></tr></table><br />
Sends a query to the database server<br /><br /><p>Generally uses mysql_query(). If you want to use mysql_unbuffered_query() set the "result_buffering" option to 0 using setOptions(). This option was added in Release 1.7.0.</p><br /><br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td><b>return:</b> </td><td>+ a PHP result resrouce for successful SELECT queries <ul><li>the DB_OK constant for other successful queries</li><li>a DB_Error object on failure</li></ul></td>
</tr>
<tr>
<td><b>todo:</b> </td><td>Implement mock DB_mysql::simpleQuery()</td>
</tr>
</table>
</div>
<br /><br />
<h4>Parameters:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="type">string </td>
<td><b>$query</b> </td>
<td>the SQL query string</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#a3274">3274</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> </td><td>an associative array with the information requested. A DB_Error object on failure.</td>
</tr>
<tr>
<td><b>todo:</b> </td><td>Implement mock DB_mysql::tableInfo()</td>
</tr>
<tr>
<td><b>see:</b> </td><td><a href="../PHPonTraxTest/DB_common.html#methodtableInfo">DB_common::tableInfo()</a></td>
</tr>
</table>
</div>
<br /><br />
Overrides <a href="../PHPonTraxTest/DB_common.html#methodtableInfo">DB_common::tableInfo()</a> (Returns information about a table or a result set)<br /><br />
<h4>Parameters:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="type">object|string </td>
<td><b>$result</b> </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 </td>
<td><b>$mode</b> </td>
<td>a valid tableInfo mode</td>
</tr>
</table>
</div><br />
<div class="top">[ <a href="#top">Top</a> ]</div>
</div>
<hr />
<a name="method_BCsequence"></a>
<h3>method _BCsequence <span class="smalllinenumber">[line <a href="..//__filesource/fsource_PHPonTraxTest__testmockDBDB.php.html#a3096">3096</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 _BCsequence(
string
$seqname)</code>
</td></tr></table>
</td></tr></table><br />
Backwards compatibility with old sequence emulation implementation (clean up the dupes)<br /><br /><br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td><b>return:</b> </td><td>true on success. A DB_Error object on failure.</td>
</tr>
<tr>
<td><b>access:</b> </td><td>private</td>
</tr>
<tr>
<td><b>todo:</b> </td><td>Implement mock DB_mysql::_BCsequence()</td>
</tr>
</table>
</div>
<br /><br />
<h4>Parameters:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="type">string </td>
<td><b>$seqname</b> </td>
<td>the sequence name to clean up</td>
</tr>
</table>
</div><br />
<div class="top">[ <a href="#top">Top</a> ]</div>
</div>
</div><br />
<div class="credit">
<hr />
Documentation generated on Thu, 04 May 2006 19:47:31 -0600 by <a href="http://www.phpdoc.org">phpDocumentor 1.3.0RC4</a>
</div>
</td></tr></table>
</td>
</tr>
</table>
</body>
</html>