JDatabaseMySQL::getTableFields: Difference between revisions
From Joomla! Documentation
m clean up |
m preparing for archive only |
||
| Line 4: | Line 4: | ||
Retrieves field information about the given tables. | Retrieves field information about the given tables. | ||
<source lang="php"> | <source lang="php"> | ||
| Line 38: | Line 38: | ||
* {{JVer|11.1}} Subpackage [[API17:Subpackage_Database|Database]] | * {{JVer|11.1}} Subpackage [[API17:Subpackage_Database|Database]] | ||
* [[API17:JDatabaseMySQL::getTableFields|Other versions of JDatabaseMySQL::getTableFields]] | * [[API17:JDatabaseMySQL::getTableFields|Other versions of JDatabaseMySQL::getTableFields]] | ||
===User contributed notes=== | ===User contributed notes=== | ||
=== Code Examples === | |||
<dpl> | <dpl> | ||
noresultsheader=\n | noresultsheader=\n | ||
category=JDatabaseMySQL::getTableFields | category=JDatabaseMySQL::getTableFields | ||
namespace=CodeExample | |||
category=MethodExample | category=MethodExample | ||
include=* | include=* | ||
Latest revision as of 02:38, 25 March 2017
JDatabaseMySQL::getTableFields
Description
Retrieves field information about the given tables.
public function getTableFields (
$tables
$typeOnly=true
)
| Parameter | Type | Default | Description |
|---|---|---|---|
| $tables | |||
| $typeOnly | bool | true | True to only return field types. |
- Returns array An array of fields by table.
- Defined on line 334 of libraries/joomla/database/database/mysql.php
- Since

See also
JDatabaseMySQL::getTableFields source code on BitBucket
Class JDatabaseMySQL
Subpackage Database- Other versions of JDatabaseMySQL::getTableFields
User contributed notes
Code Examples