| [ Index ] |
PHP Cross Reference of Joomla 2.5.4 DE |
[Source view] [Print] [Project Stats]
(no description)
| Copyright: | Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved. |
| License: | GNU General Public License version 2 or later; see LICENSE |
| File Size: | 567 lines (14 kb) |
| Included or required: | 0 times |
| Referenced: | 0 times |
| Includes or requires: | 0 files |
JDatabaseMySQLi:: (21 methods):
__construct()
__destruct()
escape()
test()
connected()
getAffectedRows()
getExporter()
getImporter()
getNumRows()
getQuery()
getVersion()
hasUTF()
insertid()
query()
select()
setUTF()
fetchArray()
fetchAssoc()
fetchObject()
freeResult()
queryBatch()
Class: JDatabaseMySQLi - X-Ref
MySQLi database driver| __construct($options) X-Ref |
| Constructor. param: array $options List of options used to configure the connection |
| __destruct() X-Ref |
| Destructor. |
| escape($text, $extra = false) X-Ref |
| Method to escape a string for usage in an SQL statement. param: string $text The string to be escaped. param: boolean $extra Optional parameter to provide extra escaping. return: string The escaped string. |
| test() X-Ref |
| Test to see if the MySQL connector is available. return: boolean True on success, false otherwise. |
| connected() X-Ref |
| Determines if the connection to the server is active. return: boolean True if connected to the database engine. |
| getAffectedRows() X-Ref |
| Get the number of affected rows for the previous executed SQL statement. return: integer The number of affected rows. |
| getExporter() X-Ref |
| Gets an exporter class object. return: JDatabaseExporterMySQLi An exporter object. |
| getImporter() X-Ref |
| Gets an importer class object. return: JDatabaseImporterMySQLi An importer object. |
| getNumRows($cursor = null) X-Ref |
| Get the number of returned rows for the previous executed SQL statement. param: resource $cursor An optional database cursor resource to extract the row count from. return: integer The number of returned rows. |
| getQuery($new = false) X-Ref |
| Get the current or query, or new JDatabaseQuery object. param: boolean $new False to return the last query set, True to return a new JDatabaseQuery object. return: mixed The current value of the internal SQL variable or a new JDatabaseQuery object. |
| getVersion() X-Ref |
| Get the version of the database connector. return: string The database connector version. |
| hasUTF() X-Ref |
| Determines if the database engine supports UTF-8 character encoding. return: boolean True if supported. |
| insertid() X-Ref |
| Method to get the auto-incremented value from the last INSERT statement. return: integer The value of the auto-increment field from the last inserted row. |
| query() X-Ref |
| Execute the SQL statement. return: mixed A database cursor resource on success, boolean false on failure. |
| select($database) X-Ref |
| Select a database for use. param: string $database The name of the database to select for use. return: boolean True if the database was successfully selected. |
| setUTF() X-Ref |
| Set the connection to use UTF-8 character encoding. return: boolean True on success. |
| fetchArray($cursor = null) X-Ref |
| Method to fetch a row from the result set cursor as an array. param: mixed $cursor The optional result set cursor from which to fetch the row. return: mixed Either the next row from the result set or false if there are no more rows. |
| fetchAssoc($cursor = null) X-Ref |
| Method to fetch a row from the result set cursor as an associative array. param: mixed $cursor The optional result set cursor from which to fetch the row. return: mixed Either the next row from the result set or false if there are no more rows. |
| fetchObject($cursor = null, $class = 'stdClass') X-Ref |
| Method to fetch a row from the result set cursor as an object. param: mixed $cursor The optional result set cursor from which to fetch the row. param: string $class The class name to use for the returned row object. return: mixed Either the next row from the result set or false if there are no more rows. |
| freeResult($cursor = null) X-Ref |
| Method to free up the memory used for the result set. param: mixed $cursor The optional result set cursor from which to fetch the row. return: void |
| queryBatch($abortOnError = true, $transactionSafe = false) X-Ref |
| Execute a query batch. param: boolean $abortOnError Abort on error. param: boolean $transactionSafe Transaction safe queries. return: mixed A database resource if successful, false if not. |
| Generated: Tue Apr 3 11:40:28 2012 | Cross-referenced by PHPXref 0.7.1 |