====== JModel ====== {#JAPI Joomla.Framework Application JModel #} 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 ^ | {{references:Method.png?nolink}} [[JModel-__construct|__construct]] | Constructor | | {{references:Method.png?nolink}} [[JModel-addIncludePath|addIncludePath]] | Adds a directory where JModel should search for models. | | {{references:Method.png?nolink}} [[JModel-addTablePath|addTablePath]] | Adds to the stack of model table paths in LIFO order. | | {{references:Method.png?nolink}} [[JModel-getDBO|getDBO]] | Gets the database connector object. | | {{references:Method.png?nolink}} [[JModel-getInstance|getInstance]] | Gets a reference to a Model object, always creating it. | | {{references:Method.png?nolink}} [[JModel-getState|getState]] | Gets model state variables. | | {{references:Method.png?nolink}} [[JModel-getTable|getTable]] | Creates a table object and returns a reference to it. | | {{references:Method.png?nolink}} [[JModel-setState|setState]] | Set model state variables. | | {{references:Method.png?nolink}} [[JModel-_getList|_getList]] | Returns an object list. | | {{references:Method.png?nolink}} [[JModel-_getListCount|_getListCount]] | Returns a record count for the specified query. | ---- ~~DISCUSSION~~