Actions

JDatabase/insertObject

From Joomla! Documentation

Syntax:

insertObject ( $ table, &$ object, $ keyName = NULL )


$table string The name of the table

&$object object An object whose properties match table fields

$keyname string The name of the primary key. If provided the object property is updated.

Description

inserts the datamembers of the provided $object into the $table in the database.

Does not insert array's, objects, or NULL.

Also does not insert datamembers with a _ upfront (like $_data)