418 lines
23 KiB
HTML
418 lines
23 KiB
HTML
|
<!DOCTYPE html><html xmlns:date="http://exslt.org/dates-and-times" lang="en">
|
|||
|
<head>
|
|||
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
|||
|
<meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;">
|
|||
|
<meta charset="utf-8">
|
|||
|
<title>Query » \iDB_PDO</title>
|
|||
|
<meta name="author" content="Mike van Riel">
|
|||
|
<meta name="description" content="">
|
|||
|
<link href="../css/template.css" rel="stylesheet" media="all">
|
|||
|
<script src="../js/jquery-1.7.1.min.js" type="text/javascript"></script><script src="../js/jquery-ui-1.8.2.custom.min.js" type="text/javascript"></script><script src="../js/jquery.mousewheel.min.js" type="text/javascript"></script><script src="../js/bootstrap.js" type="text/javascript"></script><script src="../js/template.js" type="text/javascript"></script><script src="../js/prettify/prettify.min.js" type="text/javascript"></script><link rel="shortcut icon" href="../img/favicon.ico">
|
|||
|
<link rel="apple-touch-icon" href="../img/apple-touch-icon.png">
|
|||
|
<link rel="apple-touch-icon" sizes="72x72" href="../img/apple-touch-icon-72x72.png">
|
|||
|
<link rel="apple-touch-icon" sizes="114x114" href="../img/apple-touch-icon-114x114.png">
|
|||
|
</head>
|
|||
|
<body>
|
|||
|
<div class="navbar navbar-fixed-top">
|
|||
|
<div class="navbar-inner"><div class="container">
|
|||
|
<a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse"><span class="icon-bar"></span><span class="icon-bar"></span><span class="icon-bar"></span></a><a class="brand" href="../index.html">Query</a><div class="nav-collapse"><ul class="nav">
|
|||
|
<li class="dropdown">
|
|||
|
<a href="#api" class="dropdown-toggle" data-toggle="dropdown">
|
|||
|
API Documentation <b class="caret"></b></a><ul class="dropdown-menu">
|
|||
|
<li><a>Packages</a></li>
|
|||
|
<li><a href="../packages/Default.html"><i class="icon-folder-open"></i> Default</a></li>
|
|||
|
<li><a href="../packages/Query.html"><i class="icon-folder-open"></i> Query</a></li>
|
|||
|
</ul>
|
|||
|
</li>
|
|||
|
<li class="dropdown" id="charts-menu">
|
|||
|
<a href="#charts" class="dropdown-toggle" data-toggle="dropdown">
|
|||
|
Charts <b class="caret"></b></a><ul class="dropdown-menu"><li><a href="../graph_class.html"><i class="icon-list-alt"></i> Class hierarchy diagram</a></li></ul>
|
|||
|
</li>
|
|||
|
<li class="dropdown" id="reports-menu">
|
|||
|
<a href="#reports" class="dropdown-toggle" data-toggle="dropdown">
|
|||
|
Reports <b class="caret"></b></a><ul class="dropdown-menu">
|
|||
|
<li><a href="../errors.html"><i class="icon-remove-sign"></i> Errors
|
|||
|
<span class="label label-info">23</span></a></li>
|
|||
|
<li><a href="../markers.html"><i class="icon-map-marker"></i> Markers
|
|||
|
<ul><li>todo
|
|||
|
<span class="label label-info">2</span>
|
|||
|
</li></ul></a></li>
|
|||
|
<li><a href="../deprecated.html"><i class="icon-stop"></i> Deprecated elements
|
|||
|
<span class="label label-info">0</span></a></li>
|
|||
|
</ul>
|
|||
|
</li>
|
|||
|
</ul></div>
|
|||
|
</div></div>
|
|||
|
<div class="go_to_top"><a href="#___" style="color: inherit">Back to top <i class="icon-upload icon-white"></i></a></div>
|
|||
|
</div>
|
|||
|
<div id="___" class="container">
|
|||
|
<noscript><div class="alert alert-warning">
|
|||
|
Javascript is disabled; several features are only available
|
|||
|
if Javascript is enabled.
|
|||
|
</div></noscript>
|
|||
|
<div class="row">
|
|||
|
<div class="span4">
|
|||
|
<span class="btn-group visibility" data-toggle="buttons-checkbox"><button class="btn public active" title="Show public elements">Public</button><button class="btn protected" title="Show protected elements">Protected</button><button class="btn private" title="Show private elements">Private</button><button class="btn inherited active" title="Show inherited elements">Inherited</button></span><div class="btn-group view pull-right" data-toggle="buttons-radio">
|
|||
|
<button class="btn details" title="Show descriptions and method names"><i class="icon-list"></i></button><button class="btn simple" title="Show only method names"><i class="icon-align-justify"></i></button>
|
|||
|
</div>
|
|||
|
<ul class="side-nav nav nav-list">
|
|||
|
<li class="nav-header">
|
|||
|
<i class="icon-custom icon-method"></i> Methods</li>
|
|||
|
<li class="method public "><a href="#__construct" title="__construct :: PDO constructor wrapper"><span class="description">PDO constructor wrapper</span><pre>__construct()</pre></a></li>
|
|||
|
<li class="method public "><a href="#affected_rows" title="affected_rows :: Returns number of rows affected by an INSERT, UPDATE, DELETE type query"><span class="description">Returns number of rows affected by an INSERT, UPDATE, DELETE type query</span><pre>affected_rows()</pre></a></li>
|
|||
|
<li class="method public "><a href="#driver_query" title="driver_query :: Method to simplify retreiving db results for meta-data queries"><span class="description">Method to simplify retreiving db results for meta-data queries</span><pre>driver_query()</pre></a></li>
|
|||
|
<li class="method public "><a href="#empty_table" title="empty_table :: Deletes all the rows from a table. Does the same as the truncate
|
|||
|
method if the database does not support 'TRUNCATE';"><span class="description">Deletes all the rows from a table. Does the same as the truncate
|
|||
|
method if the database does not support 'TRUNCATE';</span><pre>empty_table()</pre></a></li>
|
|||
|
<li class="method public "><a href="#get_columns" title="get_columns :: Retrieve column information for the current database table"><span class="description">Retrieve column information for the current database table</span><pre>get_columns()</pre></a></li>
|
|||
|
<li class="method public "><a href="#get_dbs" title="get_dbs :: Return list of dbs for the current connection, if possible"><span class="description">Return list of dbs for the current connection, if possible</span><pre>get_dbs()</pre></a></li>
|
|||
|
<li class="method public "><a href="#get_functions" title="get_functions :: Return list of function for the current database"><span class="description">Return list of function for the current database</span><pre>get_functions()</pre></a></li>
|
|||
|
<li class="method public "><a href="#get_last_error" title="get_last_error :: Return the last error for the current database connection"><span class="description">Return the last error for the current database connection</span><pre>get_last_error()</pre></a></li>
|
|||
|
<li class="method public "><a href="#get_procedures" title="get_procedures :: Return list of stored procedures for the current database"><span class="description">Return list of stored procedures for the current database</span><pre>get_procedures()</pre></a></li>
|
|||
|
<li class="method public "><a href="#get_query_data" title="get_query_data :: Retreives the data from a select query"><span class="description">Retreives the data from a select query</span><pre>get_query_data()</pre></a></li>
|
|||
|
<li class="method public "><a href="#get_schemas" title="get_schemas :: Return schemas for databases that list them"><span class="description">Return schemas for databases that list them</span><pre>get_schemas()</pre></a></li>
|
|||
|
<li class="method public "><a href="#get_sequences" title="get_sequences :: Return list of sequences for the current database, if they exist"><span class="description">Return list of sequences for the current database, if they exist</span><pre>get_sequences()</pre></a></li>
|
|||
|
<li class="method public "><a href="#get_system_tables" title="get_system_tables :: Retreives an array of non-user-created tables for
|
|||
|
the connection/database"><span class="description">Retreives an array of non-user-created tables for
|
|||
|
the connection/database</span><pre>get_system_tables()</pre></a></li>
|
|||
|
<li class="method public "><a href="#get_tables" title="get_tables :: Return list of tables for the current database"><span class="description">Return list of tables for the current database</span><pre>get_tables()</pre></a></li>
|
|||
|
<li class="method public "><a href="#get_triggers" title="get_triggers :: Return list of triggers for the current database"><span class="description">Return list of triggers for the current database</span><pre>get_triggers()</pre></a></li>
|
|||
|
<li class="method public "><a href="#get_types" title="get_types :: Retrieve list of data types for the database"><span class="description">Retrieve list of data types for the database</span><pre>get_types()</pre></a></li>
|
|||
|
<li class="method public "><a href="#get_views" title="get_views :: Return list of views for the current database"><span class="description">Return list of views for the current database</span><pre>get_views()</pre></a></li>
|
|||
|
<li class="method public "><a href="#num_rows" title="num_rows :: Return the number of rows returned for a SELECT query"><span class="description">Return the number of rows returned for a SELECT query</span><pre>num_rows()</pre></a></li>
|
|||
|
<li class="method public "><a href="#prepare_execute" title="prepare_execute :: Create and execute a prepared statement with the provided parameters"><span class="description">Create and execute a prepared statement with the provided parameters</span><pre>prepare_execute()</pre></a></li>
|
|||
|
<li class="method public "><a href="#prepare_query" title="prepare_query :: Simplifies prepared statements for database queries"><span class="description">Simplifies prepared statements for database queries</span><pre>prepare_query()</pre></a></li>
|
|||
|
<li class="method public "><a href="#quote_ident" title="quote_ident :: Surrounds the string with the databases identifier escape characters"><span class="description">Surrounds the string with the databases identifier escape characters</span><pre>quote_ident()</pre></a></li>
|
|||
|
<li class="method public "><a href="#quote_table" title="quote_table :: Quote database table name, and set prefix"><span class="description">Quote database table name, and set prefix</span><pre>quote_table()</pre></a></li>
|
|||
|
<li class="method public "><a href="#truncate" title="truncate :: Empty the passed table"><span class="description">Empty the passed table</span><pre>truncate()</pre></a></li>
|
|||
|
</ul>
|
|||
|
</div>
|
|||
|
<div class="span8">
|
|||
|
<a name="%5CiDB_PDO" id="\iDB_PDO"></a><div href="../classes/iDB_PDO.html" class="element interface">
|
|||
|
<p class="short_description">Base Database class</p>
|
|||
|
<div class="details">
|
|||
|
<p class="long_description"><p>Extends PDO to simplify cross-database issues</p></p>
|
|||
|
<table class="table table-bordered">
|
|||
|
<tr>
|
|||
|
<th>package</th>
|
|||
|
<td><a href="..//packages/Query.Query.html">Query</a></td>
|
|||
|
</tr>
|
|||
|
<tr>
|
|||
|
<th>subpackage</th>
|
|||
|
<td>Query</td>
|
|||
|
</tr>
|
|||
|
</table>
|
|||
|
<h3>
|
|||
|
<i class="icon-custom icon-method"></i> Methods</h3>
|
|||
|
<a name="__construct" id="__construct"></a><div class="element clickable method public __construct" data-toggle="collapse" data-target=".__construct .collapse">
|
|||
|
<h2>PDO constructor wrapper</h2>
|
|||
|
<pre>__construct(string $dsn) </pre>
|
|||
|
<div class="labels"></div>
|
|||
|
<div class="row collapse"><div class="span8">
|
|||
|
<p class="long_description"></p>
|
|||
|
<h3>Parameters</h3>
|
|||
|
<div class="subelement argument">
|
|||
|
<h4>$dsn</h4>
|
|||
|
<code>string</code>
|
|||
|
</div>
|
|||
|
</div></div>
|
|||
|
</div>
|
|||
|
<a name="affected_rows" id="affected_rows"></a><div class="element clickable method public affected_rows" data-toggle="collapse" data-target=".affected_rows .collapse">
|
|||
|
<h2>Returns number of rows affected by an INSERT, UPDATE, DELETE type query</h2>
|
|||
|
<pre>affected_rows(<a href="http://php.net/manual/en/class.pdostatement.php">\PDOStatement</a> $statement) : int</pre>
|
|||
|
<div class="labels"></div>
|
|||
|
<div class="row collapse"><div class="span8">
|
|||
|
<p class="long_description"></p>
|
|||
|
<h3>Parameters</h3>
|
|||
|
<div class="subelement argument">
|
|||
|
<h4>$statement</h4>
|
|||
|
<code><a href="http://php.net/manual/en/class.pdostatement.php">\PDOStatement</a></code>
|
|||
|
</div>
|
|||
|
<h3>Returns</h3>
|
|||
|
<div class="subelement response"><code>int</code></div>
|
|||
|
</div></div>
|
|||
|
</div>
|
|||
|
<a name="driver_query" id="driver_query"></a><div class="element clickable method public driver_query" data-toggle="collapse" data-target=".driver_query .collapse">
|
|||
|
<h2>Method to simplify retreiving db results for meta-data queries</h2>
|
|||
|
<pre>driver_query(string $sql, bool $filtered_index) : mixed</pre>
|
|||
|
<div class="labels"></div>
|
|||
|
<div class="row collapse"><div class="span8">
|
|||
|
<p class="long_description"></p>
|
|||
|
<h3>Parameters</h3>
|
|||
|
<div class="subelement argument">
|
|||
|
<h4>$sql</h4>
|
|||
|
<code>string</code>
|
|||
|
</div>
|
|||
|
<div class="subelement argument">
|
|||
|
<h4>$filtered_index</h4>
|
|||
|
<code>bool</code>
|
|||
|
</div>
|
|||
|
<h3>Returns</h3>
|
|||
|
<div class="subelement response"><code>mixed</code></div>
|
|||
|
</div></div>
|
|||
|
</div>
|
|||
|
<a name="empty_table" id="empty_table"></a><div class="element clickable method public empty_table" data-toggle="collapse" data-target=".empty_table .collapse">
|
|||
|
<h2>Deletes all the rows from a table. Does the same as the truncate
|
|||
|
method if the database does not support 'TRUNCATE';</h2>
|
|||
|
<pre>empty_table(string $table) : mixed</pre>
|
|||
|
<div class="labels"></div>
|
|||
|
<div class="row collapse"><div class="span8">
|
|||
|
<p class="long_description"></p>
|
|||
|
<h3>Parameters</h3>
|
|||
|
<div class="subelement argument">
|
|||
|
<h4>$table</h4>
|
|||
|
<code>string</code>
|
|||
|
</div>
|
|||
|
<h3>Returns</h3>
|
|||
|
<div class="subelement response"><code>mixed</code></div>
|
|||
|
</div></div>
|
|||
|
</div>
|
|||
|
<a name="get_columns" id="get_columns"></a><div class="element clickable method public get_columns" data-toggle="collapse" data-target=".get_columns .collapse">
|
|||
|
<h2>Retrieve column information for the current database table</h2>
|
|||
|
<pre>get_columns(string $table) : array</pre>
|
|||
|
<div class="labels"></div>
|
|||
|
<div class="row collapse"><div class="span8">
|
|||
|
<p class="long_description"></p>
|
|||
|
<h3>Parameters</h3>
|
|||
|
<div class="subelement argument">
|
|||
|
<h4>$table</h4>
|
|||
|
<code>string</code>
|
|||
|
</div>
|
|||
|
<h3>Returns</h3>
|
|||
|
<div class="subelement response"><code>array</code></div>
|
|||
|
</div></div>
|
|||
|
</div>
|
|||
|
<a name="get_dbs" id="get_dbs"></a><div class="element clickable method public get_dbs" data-toggle="collapse" data-target=".get_dbs .collapse">
|
|||
|
<h2>Return list of dbs for the current connection, if possible</h2>
|
|||
|
<pre>get_dbs() : array</pre>
|
|||
|
<div class="labels"></div>
|
|||
|
<div class="row collapse"><div class="span8">
|
|||
|
<p class="long_description"></p>
|
|||
|
<h3>Returns</h3>
|
|||
|
<div class="subelement response"><code>array</code></div>
|
|||
|
</div></div>
|
|||
|
</div>
|
|||
|
<a name="get_functions" id="get_functions"></a><div class="element clickable method public get_functions" data-toggle="collapse" data-target=".get_functions .collapse">
|
|||
|
<h2>Return list of function for the current database</h2>
|
|||
|
<pre>get_functions() : array</pre>
|
|||
|
<div class="labels"></div>
|
|||
|
<div class="row collapse"><div class="span8">
|
|||
|
<p class="long_description"></p>
|
|||
|
<h3>Returns</h3>
|
|||
|
<div class="subelement response"><code>array</code></div>
|
|||
|
</div></div>
|
|||
|
</div>
|
|||
|
<a name="get_last_error" id="get_last_error"></a><div class="element clickable method public get_last_error" data-toggle="collapse" data-target=".get_last_error .collapse">
|
|||
|
<h2>Return the last error for the current database connection</h2>
|
|||
|
<pre>get_last_error() : string</pre>
|
|||
|
<div class="labels"></div>
|
|||
|
<div class="row collapse"><div class="span8">
|
|||
|
<p class="long_description"></p>
|
|||
|
<h3>Returns</h3>
|
|||
|
<div class="subelement response"><code>string</code></div>
|
|||
|
</div></div>
|
|||
|
</div>
|
|||
|
<a name="get_procedures" id="get_procedures"></a><div class="element clickable method public get_procedures" data-toggle="collapse" data-target=".get_procedures .collapse">
|
|||
|
<h2>Return list of stored procedures for the current database</h2>
|
|||
|
<pre>get_procedures() : array</pre>
|
|||
|
<div class="labels"></div>
|
|||
|
<div class="row collapse"><div class="span8">
|
|||
|
<p class="long_description"></p>
|
|||
|
<h3>Returns</h3>
|
|||
|
<div class="subelement response"><code>array</code></div>
|
|||
|
</div></div>
|
|||
|
</div>
|
|||
|
<a name="get_query_data" id="get_query_data"></a><div class="element clickable method public get_query_data" data-toggle="collapse" data-target=".get_query_data .collapse">
|
|||
|
<h2>Retreives the data from a select query</h2>
|
|||
|
<pre>get_query_data(<a href="http://php.net/manual/en/class.pdostatement.php">\PDOStatement</a> $statement) : array</pre>
|
|||
|
<div class="labels"></div>
|
|||
|
<div class="row collapse"><div class="span8">
|
|||
|
<p class="long_description"></p>
|
|||
|
<h3>Parameters</h3>
|
|||
|
<div class="subelement argument">
|
|||
|
<h4>$statement</h4>
|
|||
|
<code><a href="http://php.net/manual/en/class.pdostatement.php">\PDOStatement</a></code>
|
|||
|
</div>
|
|||
|
<h3>Returns</h3>
|
|||
|
<div class="subelement response"><code>array</code></div>
|
|||
|
</div></div>
|
|||
|
</div>
|
|||
|
<a name="get_schemas" id="get_schemas"></a><div class="element clickable method public get_schemas" data-toggle="collapse" data-target=".get_schemas .collapse">
|
|||
|
<h2>Return schemas for databases that list them</h2>
|
|||
|
<pre>get_schemas() : array</pre>
|
|||
|
<div class="labels"></div>
|
|||
|
<div class="row collapse"><div class="span8">
|
|||
|
<p class="long_description"></p>
|
|||
|
<h3>Returns</h3>
|
|||
|
<div class="subelement response"><code>array</code></div>
|
|||
|
</div></div>
|
|||
|
</div>
|
|||
|
<a name="get_sequences" id="get_sequences"></a><div class="element clickable method public get_sequences" data-toggle="collapse" data-target=".get_sequences .collapse">
|
|||
|
<h2>Return list of sequences for the current database, if they exist</h2>
|
|||
|
<pre>get_sequences() : array</pre>
|
|||
|
<div class="labels"></div>
|
|||
|
<div class="row collapse"><div class="span8">
|
|||
|
<p class="long_description"></p>
|
|||
|
<h3>Returns</h3>
|
|||
|
<div class="subelement response"><code>array</code></div>
|
|||
|
</div></div>
|
|||
|
</div>
|
|||
|
<a name="get_system_tables" id="get_system_tables"></a><div class="element clickable method public get_system_tables" data-toggle="collapse" data-target=".get_system_tables .collapse">
|
|||
|
<h2>Retreives an array of non-user-created tables for
|
|||
|
the connection/database</h2>
|
|||
|
<pre>get_system_tables() : array</pre>
|
|||
|
<div class="labels"></div>
|
|||
|
<div class="row collapse"><div class="span8">
|
|||
|
<p class="long_description"></p>
|
|||
|
<h3>Returns</h3>
|
|||
|
<div class="subelement response"><code>array</code></div>
|
|||
|
</div></div>
|
|||
|
</div>
|
|||
|
<a name="get_tables" id="get_tables"></a><div class="element clickable method public get_tables" data-toggle="collapse" data-target=".get_tables .collapse">
|
|||
|
<h2>Return list of tables for the current database</h2>
|
|||
|
<pre>get_tables() : array</pre>
|
|||
|
<div class="labels"></div>
|
|||
|
<div class="row collapse"><div class="span8">
|
|||
|
<p class="long_description"></p>
|
|||
|
<h3>Returns</h3>
|
|||
|
<div class="subelement response"><code>array</code></div>
|
|||
|
</div></div>
|
|||
|
</div>
|
|||
|
<a name="get_triggers" id="get_triggers"></a><div class="element clickable method public get_triggers" data-toggle="collapse" data-target=".get_triggers .collapse">
|
|||
|
<h2>Return list of triggers for the current database</h2>
|
|||
|
<pre>get_triggers() : array</pre>
|
|||
|
<div class="labels"></div>
|
|||
|
<div class="row collapse"><div class="span8">
|
|||
|
<p class="long_description"></p>
|
|||
|
<h3>Returns</h3>
|
|||
|
<div class="subelement response"><code>array</code></div>
|
|||
|
</div></div>
|
|||
|
</div>
|
|||
|
<a name="get_types" id="get_types"></a><div class="element clickable method public get_types" data-toggle="collapse" data-target=".get_types .collapse">
|
|||
|
<h2>Retrieve list of data types for the database</h2>
|
|||
|
<pre>get_types() : array</pre>
|
|||
|
<div class="labels"></div>
|
|||
|
<div class="row collapse"><div class="span8">
|
|||
|
<p class="long_description"></p>
|
|||
|
<h3>Returns</h3>
|
|||
|
<div class="subelement response"><code>array</code></div>
|
|||
|
</div></div>
|
|||
|
</div>
|
|||
|
<a name="get_views" id="get_views"></a><div class="element clickable method public get_views" data-toggle="collapse" data-target=".get_views .collapse">
|
|||
|
<h2>Return list of views for the current database</h2>
|
|||
|
<pre>get_views() : array</pre>
|
|||
|
<div class="labels"></div>
|
|||
|
<div class="row collapse"><div class="span8">
|
|||
|
<p class="long_description"></p>
|
|||
|
<h3>Returns</h3>
|
|||
|
<div class="subelement response"><code>array</code></div>
|
|||
|
</div></div>
|
|||
|
</div>
|
|||
|
<a name="num_rows" id="num_rows"></a><div class="element clickable method public num_rows" data-toggle="collapse" data-target=".num_rows .collapse">
|
|||
|
<h2>Return the number of rows returned for a SELECT query</h2>
|
|||
|
<pre>num_rows() : int</pre>
|
|||
|
<div class="labels"></div>
|
|||
|
<div class="row collapse"><div class="span8">
|
|||
|
<p class="long_description"></p>
|
|||
|
<table class="table table-bordered"><tr>
|
|||
|
<th>see</th>
|
|||
|
<td>\http://us3.php.net/manual/en/pdostatement.rowcount.php#87110</td>
|
|||
|
</tr></table>
|
|||
|
<h3>Returns</h3>
|
|||
|
<div class="subelement response"><code>int</code></div>
|
|||
|
</div></div>
|
|||
|
</div>
|
|||
|
<a name="prepare_execute" id="prepare_execute"></a><div class="element clickable method public prepare_execute" data-toggle="collapse" data-target=".prepare_execute .collapse">
|
|||
|
<h2>Create and execute a prepared statement with the provided parameters</h2>
|
|||
|
<pre>prepare_execute(string $sql, array $params) : <a href="http://php.net/manual/en/class.pdostatement.php">\PDOStatement</a></pre>
|
|||
|
<div class="labels"></div>
|
|||
|
<div class="row collapse"><div class="span8">
|
|||
|
<p class="long_description"></p>
|
|||
|
<h3>Parameters</h3>
|
|||
|
<div class="subelement argument">
|
|||
|
<h4>$sql</h4>
|
|||
|
<code>string</code>
|
|||
|
</div>
|
|||
|
<div class="subelement argument">
|
|||
|
<h4>$params</h4>
|
|||
|
<code>array</code>
|
|||
|
</div>
|
|||
|
<h3>Returns</h3>
|
|||
|
<div class="subelement response"><code><a href="http://php.net/manual/en/class.pdostatement.php">\PDOStatement</a></code></div>
|
|||
|
</div></div>
|
|||
|
</div>
|
|||
|
<a name="prepare_query" id="prepare_query"></a><div class="element clickable method public prepare_query" data-toggle="collapse" data-target=".prepare_query .collapse">
|
|||
|
<h2>Simplifies prepared statements for database queries</h2>
|
|||
|
<pre>prepare_query(string $sql, array $data) : mixed</pre>
|
|||
|
<div class="labels"></div>
|
|||
|
<div class="row collapse"><div class="span8">
|
|||
|
<p class="long_description"></p>
|
|||
|
<h3>Parameters</h3>
|
|||
|
<div class="subelement argument">
|
|||
|
<h4>$sql</h4>
|
|||
|
<code>string</code>
|
|||
|
</div>
|
|||
|
<div class="subelement argument">
|
|||
|
<h4>$data</h4>
|
|||
|
<code>array</code>
|
|||
|
</div>
|
|||
|
<h3>Returns</h3>
|
|||
|
<div class="subelement response">
|
|||
|
<code>mixed</code>PDOStatement / FALSE</div>
|
|||
|
</div></div>
|
|||
|
</div>
|
|||
|
<a name="quote_ident" id="quote_ident"></a><div class="element clickable method public quote_ident" data-toggle="collapse" data-target=".quote_ident .collapse">
|
|||
|
<h2>Surrounds the string with the databases identifier escape characters</h2>
|
|||
|
<pre>quote_ident(mixed $ident) : string</pre>
|
|||
|
<div class="labels"></div>
|
|||
|
<div class="row collapse"><div class="span8">
|
|||
|
<p class="long_description"></p>
|
|||
|
<h3>Parameters</h3>
|
|||
|
<div class="subelement argument">
|
|||
|
<h4>$ident</h4>
|
|||
|
<code>mixed</code>
|
|||
|
</div>
|
|||
|
<h3>Returns</h3>
|
|||
|
<div class="subelement response"><code>string</code></div>
|
|||
|
</div></div>
|
|||
|
</div>
|
|||
|
<a name="quote_table" id="quote_table"></a><div class="element clickable method public quote_table" data-toggle="collapse" data-target=".quote_table .collapse">
|
|||
|
<h2>Quote database table name, and set prefix</h2>
|
|||
|
<pre>quote_table(string $table) : string</pre>
|
|||
|
<div class="labels"></div>
|
|||
|
<div class="row collapse"><div class="span8">
|
|||
|
<p class="long_description"></p>
|
|||
|
<h3>Parameters</h3>
|
|||
|
<div class="subelement argument">
|
|||
|
<h4>$table</h4>
|
|||
|
<code>string</code>
|
|||
|
</div>
|
|||
|
<h3>Returns</h3>
|
|||
|
<div class="subelement response"><code>string</code></div>
|
|||
|
</div></div>
|
|||
|
</div>
|
|||
|
<a name="truncate" id="truncate"></a><div class="element clickable method public truncate" data-toggle="collapse" data-target=".truncate .collapse">
|
|||
|
<h2>Empty the passed table</h2>
|
|||
|
<pre>truncate(string $table) : void</pre>
|
|||
|
<div class="labels"></div>
|
|||
|
<div class="row collapse"><div class="span8">
|
|||
|
<p class="long_description"></p>
|
|||
|
<h3>Parameters</h3>
|
|||
|
<div class="subelement argument">
|
|||
|
<h4>$table</h4>
|
|||
|
<code>string</code>
|
|||
|
</div>
|
|||
|
</div></div>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
<div class="row"><footer class="span12">
|
|||
|
Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
|
|||
|
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a2</a> and<br>
|
|||
|
generated on 2012-12-18T16:02:48-05:00.<br></footer></div>
|
|||
|
</div>
|
|||
|
</body>
|
|||
|
</html>
|