API Guides: Difference between revisions

From Joomla! Documentation

No edit summary
No edit summary
 
Line 25: Line 25:
* Route / JRoute see [[URLs in Joomla]]
* Route / JRoute see [[URLs in Joomla]]
* Table / JTable provides functionality for performing CRUD operations (and more) on database tables. The guide is split into a [[Table Basic API Guide|Basic API Guide]] and an [[Table Advanced API Guide|Advanced API Guide]]
* Table / JTable provides functionality for performing CRUD operations (and more) on database tables. The guide is split into a [[Table Basic API Guide|Basic API Guide]] and an [[Table Advanced API Guide|Advanced API Guide]]
* The [[Controllers|Controllers]] (BaseController, AdminController, FormController, ApiController) are responsible for analysing the user's request, checking that the user is allowed to perform that action and determining how to satisfy the request.
* The [[Models|Models]] (BaseModel, BaseDatabaseModel, ItemModel, ListModel, FormModel, AdminModel) encapsulate the data used by the component. They are also responsible for updating the database where appropriate.
* The [[Models|Models]] (BaseModel, BaseDatabaseModel, ItemModel, ListModel, FormModel, AdminModel) encapsulate the data used by the component. They are also responsible for updating the database where appropriate.
* The [[Views|Views]] (AbstractView, CategoriesView, CategoryFeedView, CategoryView, FormView, HtmlView, JsonApiView, JsonView, ListView) specify what should appear on the web page, and collates all the data necessary for outputting the HTTP response..
* [[Tags API Guide|Tags]].  
* [[Tags API Guide|Tags]].  
* Uri / JUri see [[URLs in Joomla]]
* Uri / JUri see [[URLs in Joomla]]

Latest revision as of 15:25, 5 January 2021

This page contains an index to the set of Joomla API Guides. These guides aim to help you understand how to use these Joomla functions in your own Joomla extensions.

Each API guide includes sample code which you can copy and install in your own development environment. Generally these code samples are written to be included and installed as Joomla module, so if you're not familiar with Joomla module development you may find going through the short series Creating a Simple Module useful.

Around Joomla 3.8 the Joomla development team began changing the naming convention of Joomla classes to use namespaces, so that for example JFactory changed to Factory in the Joomla\CMS namespace. As you read existing Joomla code and documentation you may find the classes following either the new or the old naming standard. You can find the mapping between the two naming conventions in the libraries/classmap.php file in your Joomla instance.