Models

From Joomla! Documentation

Documentation all together tranparent small.png
Under Construction

This article or section is in the process of an expansion or major restructuring. You are welcome to assist in its construction by editing it as well. If this article or section has not been edited in several days, please remove this template.
This article was last edited by Thelordofweb (talk| contribs) 8 months ago. (Purge)


Introduction

The models encapsulate the data used by the component. In most cases this data will come from a database, either the Joomla database, or some external database, but it is also possible for the models to obtain data from other sources, such as via a web services API running on another server. The models is also responsible for updating the database where appropriate. The purpose of the models is to isolate the controller and view from the details of how data is obtained or amended.

Model Classes

BaseModel

BaseDatabaseModel

ItemModel

ListModel

FormModel

AdminModel

Events

onUserBeforeDataValidation

onContentBeforeValidateData

onContentCleanCache

onTableSetNewTags

event_before_delete

event_after_delete

event_change_state

event_before_change_state

event_before_save

event_after_save