JModel
From Joomla! Documentation
The "API17" namespace is an archived namespace. This page contains information for a Joomla! version which is no longer supported. It exists only as a historical reference, it will not be improved and its content may be incomplete and/or contain broken links.
[Edit Descripton] Template:Description:JModel
Defined in[edit]
libraries/joomla/application/component/model.php
- see source code in BitBucket
Subpackage[edit]
Extends[edit]
Extended by[edit]
Methods[edit]
Method name | Description |
---|---|
__construct | Constructor. |
getDbo | Method to get the database connector object. |
getName | Method to get the model name. |
getState | Method to get model state variables. |
getTable | Method to get a table object, load it if necessary. |
setDbo | Method to set the database connector object. |
setState | Method to set model state variables. |
addIncludePath | Add a directory where should search for models. |
addTablePath | Adds to the stack of model table paths in LIFO order. |
getInstance | Returns a Model object, always creating it. |
_getList | Gets an array of objects from the results of database query. |
_getListCount | Returns a record count for the query. |
populateState | Method to auto-populate the model state. |
Importing[edit]
jimport( 'joomla.application.component.model' );
See also[edit]
- JModel source code in BitBucket
- Other versions of this class
Template:SeeAlso:JModel [Edit See Also]
Examples[edit]
<CodeExamplesForm />