Creating content using JTableContent
From Joomla! Documentation
This article is tagged because it NEEDS REVIEW. You can help the Joomla! Documentation Wiki by contributing to it.
More pages that need help similar to this one are here. NOTE-If you feel the need is satistified, please remove this notice.
Introduction
While it is possible to add content to the database directly via queries, using JTableContent is the preferred method as it will not only simplify the task for you, but provides additional methods for checking and saving that content, not to mention other benefits.
The Object
Using JTableContent begins by creating a new instance
$article = JTable::getInstance('content');
We can now define the properties of this object that our new article will consist of.
Properties of the object
Each property of the newly created