API16:JModel
From Joomla! Documentation
[Edit Descripton] Template:Description:JModel
Defined in
libraries/joomla/application/component/model.php
Methods
| Method name | Description |
|---|---|
| __construct | Constructor |
| setState | Method to set model state variables |
| getState | Method to get model state variables |
| getDbo | Method to get the database connector object |
| setDbo | Method to set the database connector object |
| getName | Method to get the model name |
| getTable | Method to get a table object, load it if necessary. |
| getInstance | Returns a Model object, always creating it |
| addIncludePath | Add a directory where JModel should search for models. You may either pass a string or an array of directories. |
| addTablePath | Adds to the stack of model table paths in LIFO order. |
Importing
jimport( 'joomla.application.component.model' );
[Edit See Also] Template:SeeAlso:JModel
Examples
<CodeExamplesForm />