 JDatabaseDriver
 JDatabaseDriverImplements interfaces:
Joomla Platform Database Driver Class
Located in /libraries/joomla/database/driver.php (line 41)
JDatabase | --JDatabaseDriver
| Class | Description | 
|---|---|
|  JDatabaseDriverMysqli | MySQLi database driver | 
|  JDatabaseDriverPdo | Joomla Platform PDO Database Driver Class | 
|  JDatabaseDriverPostgresql | PostgreSQL database driver | 
|  JDatabaseDriverSqlsrv | SQL Server database driver | 
 JDatabaseDriver
										renameTable
											(string $oldTable, string $newTable, [string $backup = null], [string $prefix = null])
											JDatabaseDriver
										renameTable
											(string $oldTable, string $newTable, [string $backup = null], [string $prefix = null])
									 static string
			$dbMinimum
						(line 177)
		
			static string
			$dbMinimum
						(line 177)
		
	 static array
			$instances
			 = array()			(line 171)
		
			static array
			$instances
			 = array()			(line 171)
		
	 array
			$callStacks
			 = array()			(line 105)
		
			array
			$callStacks
			 = array()			(line 105)
		
	 resource
			$connection
						(line 63)
		
			resource
			$connection
						(line 63)
		
	 integer
			$count
			 =  0			(line 69)
		
			integer
			$count
			 =  0			(line 69)
		
	 resource
			$cursor
						(line 75)
		
			resource
			$cursor
						(line 75)
		
	 boolean
			$debug
			 =  false			(line 81)
		
			boolean
			$debug
			 =  false			(line 81)
		
	 callable[]
			$disconnectHandlers
			 = array()			(line 189)
		
			callable[]
			$disconnectHandlers
			 = array()			(line 189)
		
	 string
			$errorMsg
						(line 165)
		
			string
			$errorMsg
						(line 165)
		
	 integer
			$errorNum
			 =  0			(line 158)
		
			integer
			$errorNum
			 =  0			(line 158)
		
	 integer
			$limit
			 =  0			(line 87)
		
			integer
			$limit
			 =  0			(line 87)
		
	 array
			$log
			 = array()			(line 93)
		
			array
			$log
			 = array()			(line 93)
		
	 string
			$name
						(line 57)
		
			string
			$name
						(line 57)
		
	The name of the database driver.
 string
			$nameQuote
						(line 114)
		
			string
			$nameQuote
						(line 114)
		
	 string
			$nullDate
						(line 121)
		
			string
			$nullDate
						(line 121)
		
	 integer
			$offset
			 =  0			(line 127)
		
			integer
			$offset
			 =  0			(line 127)
		
	 array
			$options
						(line 133)
		
			array
			$options
						(line 133)
		
	 mixed
			$sql
						(line 139)
		
			mixed
			$sql
						(line 139)
		
	 string
			$tablePrefix
						(line 145)
		
			string
			$tablePrefix
						(line 145)
		
	 array
			$timings
			 = array()			(line 99)
		
			array
			$timings
			 = array()			(line 99)
		
	 integer
			$transactionDepth
			 =  0			(line 183)
		
			integer
			$transactionDepth
			 =  0			(line 183)
		
	 boolean
			$utf
			 =  true			(line 151)
		
			boolean
			$utf
			 =  true			(line 151)
		
	Get a list of available database connectors. The list will only be populated with connectors that both the class exists and the static test method returns true. This gives us the ability to have a multitude of connector classes that are self-aware as to whether or not they are able to be used on a given system.
Method to return a JDatabaseDriver instance based on the given options. There are three global options and then
the rest are specific to the database driver. The 'driver' option defines which JDatabaseDriver class is used for the connection -- the default is 'mysqli'. The 'database' option determines which database is to be used for the connection. The 'select' option determines whether the connector should automatically select the chosen database.
Instances are unique to the given options and new objects are only created when a unique options array is passed into the method. This ensures that we don't end up with unnecessary database connection resources.
Splits a string of multiple queries into an array of individual queries.
Constructor.
Adds a function callable just before disconnecting the database. Parameter of the callable is $this JDatabaseDriver
Alter database's character set, obtaining query string from protected member.
Connects to the database if needed.
Determines if the connection to the server is active.
Create a new database using information from $options object, obtaining query string from protected member.
Disconnects the database.
Drops a table from the database.
Escapes a string for usage in an SQL statement.
Execute the SQL statement.
Method to fetch a row from the result set cursor as an array.
Method to fetch a row from the result set cursor as an associative array.
Method to fetch a row from the result set cursor as an object.
Method to free up the memory used for the result set.
Get the number of affected rows for the previous executed SQL statement.
Return the query string to alter the database character set.
Method to get the database collation in use by sampling a text field of a table in the database.
Method that provides access to the underlying database connection. Useful for when you need to call a proprietary method such as postgresql's lo_* methods.
Get the total number of SQL statements executed by the database driver.
Return the query string to create new Database.
Each database driver, other than MySQL, need to override this member to return correct string.
Returns a PHP date() function compliant date format for the database driver.
Get a new iterator on the current query.
Get the null or zero representation of a timestamp for the database driver.
Get the number of returned rows for the previous executed SQL statement.
Get the current query object or a new JDatabaseQuery object.
Retrieves field information about the given tables.
Shows the table CREATE statement that creates the given tables.
Retrieves field information about the given tables.
Method to get an array of all tables in the database.
Determine whether or not the database engine supports UTF-8 character encoding.
Get the version of the database connector
Determine whether or not the database engine supports UTF-8 character encoding.
Method to get the auto-incremented value from the last INSERT statement.
Inserts a row into a table based on an object's properties.
Method to check whether the installed database version is supported by the database driver
Method to get the first row of the result set from the database query as an associative array of ['field_name' => 'row_value'].
Method to get an array of the result set rows from the database query where each row is an associative array of ['field_name' => 'row_value']. The array of rows can optionally be keyed by a field name, but defaults to a sequential numeric array.
NOTE: Chosing to key the result array by a non-unique field name can result in unwanted behavior and should be avoided.
Method to get an array of values from the $offset field in each row of the result set from the database query.
Method to get the next row in the result set from the database query as an object.
Method to get the next row in the result set from the database query as an array.
Method to get the first row of the result set from the database query as an object.
Method to get an array of the result set rows from the database query where each row is an object. The array of objects can optionally be keyed by a field name, but defaults to a sequential numeric array.
NOTE: Choosing to key the result array by a non-unique field name can result in unwanted behavior and should be avoided.
Method to get the first field of the first row of the result set from the database query.
Method to get the first row of the result set from the database query as an array. Columns are indexed numerically so the first column in the result set would be accessible via $row[0], etc.
Method to get an array of the result set rows from the database query where each row is an array. The array of objects can optionally be keyed by a field offset, but defaults to a sequential numeric array.
NOTE: Choosing to key the result array by a non-unique field can result in unwanted behavior and should be avoided.
Locks a table in the database.
Quotes and optionally escapes a string to database requirements for use in database queries.
Wrap an SQL statement identifier name such as column, table or database names in quotes to prevent injection risks and reserved word conflicts.
Quote strings coming from quoteName call.
Renames a table in the database.
This function replaces a string identifier $prefix with the string held is the tablePrefix class variable.
Select a database for use.
Sets the database debugging state for the driver.
Sets the SQL statement string for later execution.
Set the connection to use UTF-8 character encoding.
Method to commit a transaction.
Method to roll back a transaction.
Method to initialize a transaction.
Method to truncate a table.
Unlocks tables in the database.
Updates a row in a table based on an object's properties.
Magic method to provide method alias support for quote() and quoteName().
Inherited From JDatabase
JDatabase::getConnectors()
JDatabase::getErrorMsg()
JDatabase::getErrorNum()
JDatabase::getInstance()
JDatabase::query()
JDatabase::splitSql()
JDatabase::stderr()
JDatabase::test()
Documentation generated on Tue, 19 Nov 2013 15:01:42 +0100 by phpDocumentor 1.4.3