JModel

API Package Subpackage Class Reference Last reviewed Doc status
API Home Package Joomla.Framework Subpackage Application Class JModel Reference JModel Never Work in Progress

JModel is the base class for a Joomla! model.

The model represents the data and business logic for a component written using the MVC design pattern. It implements data manipulation and retrieval functionality for Joomla! applications.

Methods

Method Description
__construct Constructor
addIncludePath Adds a directory where JModel should search for models.
addTablePath Adds to the stack of model table paths in LIFO order.
getDBO Gets the database connector object.
getInstance Gets a reference to a Model object, always creating it.
getState Gets model state variables.
getTable Creates a table object and returns a reference to it.
setState Set model state variables.
_getList Returns an object list.
_getListCount Returns a record count for the specified query.