JDatabase::insertObject/1.5
From Joomla! Documentation
JDatabase::insertObject
Description
Inserts a row into a table based on an objects properties.
Description:JDatabase::insertObject [Edit Descripton]
public function insertObject ( $table &$object $keyName=NULL )
| Parameter | Type | Default | Description |
|---|---|---|---|
| $table | string | The name of the table | |
| &$object | object | An object whose properties match table fields | |
| $keyName | string | NULL | The name of the primary key. If provided the object property is updated. |
- Returns
- Defined on line 809 of libraries/joomla/database/database.php
See also
-
JDatabase::insertObject on api.joomla.org
-
JDatabase source code on JoomlaCode
-
Class JDatabase
-
Subpackage Database
- Other versions of JDatabase::insertObject
SeeAlso:JDatabase::insertObject [Edit See Also]
User contributed notes
<CodeExamplesForm />