Actions

API17

Difference between revisions of "JDatabaseQuery::insert"

From Joomla! Documentation

(Layout updates)
(Updated to r1448:247ba8d88526)
Line 2: Line 2:
 
=={{JVer|11.1}} JDatabaseQuery::insert==
 
=={{JVer|11.1}} JDatabaseQuery::insert==
 
===Description===
 
===Description===
Add a table name to the INSERT clause of the query.
+
 
  
 
{{Description:JDatabaseQuery::insert}}
 
{{Description:JDatabaseQuery::insert}}
Line 8: Line 8:
 
<nowiki>[</nowiki>[[Description:JDatabaseQuery::insert|Edit Descripton]]<nowiki>]</nowiki>
 
<nowiki>[</nowiki>[[Description:JDatabaseQuery::insert|Edit Descripton]]<nowiki>]</nowiki>
 
</span>
 
</span>
===Synopsis===
 
 
<source lang="php">
 
<source lang="php">
public JDatabaseQuery::insert ($tables)
+
public function insert ($tables)
 
</source>
 
</source>
 
{| class="wikitable"
 
{| class="wikitable"
Line 20: Line 19:
 
|-
 
|-
 
|$tables
 
|$tables
 +
|mixed
 
|
 
|
|
+
|A string or array of table names.
|
+
 
|-
 
|-
 
|}
 
|}
===Returns===
+
* '''Returns''' Returns this object to allow chaining.
 
+
* '''Defined''' on line 339 of libraries/joomla/database/databasequery.php
===Defined in===
+
* '''Since''' {{JVer|11.1 }}
libraries/joomla/database/databasequery.php (line 307)
+
* see source code in [[jplatform:database/databasequery.php#cl-307|BitBucket]]
+
===Referenced by===
+
 
===See also===
 
===See also===
 +
* {{JVer|11.1}} '''JDatabaseQuery::insert source code''' on [[jplatform:database/databasequery.php#cl-331|BitBucket]]
 +
* {{JVer|11.1}} Class [[JDatabaseQuery/11.1|JDatabaseQuery]]
 +
* {{JVer|11.1}} Subpackage [[Subpackage_Database/11.1|Database]]
 +
* [[JDatabaseQuery::insert|Other versions of JDatabaseQuery::insert]]
 +
{{SeeAlso:JDatabaseQuery::insert}}
 
<span class="editsection" style="font-size:76%;">
 
<span class="editsection" style="font-size:76%;">
 
<nowiki>[</nowiki>[[SeeAlso:JDatabaseQuery::insert|Edit See Also]]<nowiki>]</nowiki>
 
<nowiki>[</nowiki>[[SeeAlso:JDatabaseQuery::insert|Edit See Also]]<nowiki>]</nowiki>
 
</span>
 
</span>
* [[JDatabaseQuery/11.1|JDatabaseQuery]]
+
===User contributed notes===
* [[JDatabaseQuery::insert|Other versions of this method]]
+
{{SeeAlso:JDatabaseQuery::insert}}
+
===Examples===
+
 
<CodeExamplesForm />
 
<CodeExamplesForm />
 
<dpl>
 
<dpl>
Line 46: Line 44:
 
category=MethodExample
 
category=MethodExample
 
include=*
 
include=*
 +
namespace=CodeExample
 
format= ,,,
 
format= ,,,
 
</dpl>
 
</dpl>
 
<noinclude>[[Category:JDatabaseQuery]][[Category:JDatabaseQuery::insert]]</noinclude>
 
<noinclude>[[Category:JDatabaseQuery]][[Category:JDatabaseQuery::insert]]</noinclude>

Revision as of 20:34, 27 April 2011

Replacement filing cabinet.png
This Namespace has been archived - Please Do Not Edit or Create Pages in this namespace. Pages contain information for a Joomla! version which is no longer supported. It exists only as a historical reference, will not be improved and its content may be incomplete.

Joomla 11.1 JDatabaseQuery::insert

Description

Description:JDatabaseQuery::insert [Edit Descripton]

public function insert ($tables)
Parameter Type Default Description
$tables mixed A string or array of table names.
  • Returns Returns this object to allow chaining.
  • Defined on line 339 of libraries/joomla/database/databasequery.php
  • Since Joomla 11.1

See also

SeeAlso:JDatabaseQuery::insert [Edit See Also]

User contributed notes

<CodeExamplesForm />