JModel
From Joomla! Documentation
Revision as of 19:43, 10 May 2013 by JoomlaWikiBot (talk | contribs) (JoomlaWikiBot moved page JModel/11.1 to API17:JModel without leaving a redirect: Robot: Moved page)
Revision as of 19:43, 10 May 2013 by JoomlaWikiBot (talk | contribs) (JoomlaWikiBot moved page JModel/11.1 to API17:JModel without leaving a redirect: Robot: Moved page)
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
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.
JModel[edit]
Description[edit]
Template:Description:JModel [Edit Descripton]
Methods[edit]
Visibility | Method name | Description |
---|---|---|
public | __construct | Constructor. |
public | getDbo | Method to get the database connector object. |
public | getName | Method to get the model name. |
public | getState | Method to get model state variables. |
public | getTable | Method to get a table object, load it if necessary. |
public | setDbo | Method to set the database connector object. |
public | setState | Method to set model state variables. |
public static | addIncludePath | Add a directory where should search for models. |
public static | addTablePath | Adds to the stack of model table paths in LIFO order. |
public static | getInstance | Returns a Model object, always creating it. |
protected | _getList | Gets an array of objects from the results of database query. |
protected | _getListCount | Returns a record count for the query. |
protected | populateState | Method to auto-populate the model state. |
- Defined in libraries/joomla/application/component/model.php
- Extends JObject
- Extended by
Importing[edit]
jimport( 'joomla.application.component.model' );
See also[edit]
- JModel source code on BitBucket
- Subpackage Application
- Other versions of JModel
Template:SeeAlso:JModel [Edit See Also]
User contributed notes[edit]
<CodeExamplesForm />