JDatabase::insertObject/1.6
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 730 of libraries/joomla/database/database.php
See also
JDatabase source code on JoomlaCode
Class JDatabase
Subpackage Database- Other versions of JDatabase::insertObject
SeeAlso:JDatabase::insertObject [Edit See Also]