API Guides: Difference between revisions

From Joomla! Documentation

Robbiej (talk | contribs)
m added advanced form guide
Robbiej (talk | contribs)
m Added FormField
Line 10: Line 10:
* Database / JDatabase. There are two API guides, covering [[Selecting data using JDatabase]] and [[Inserting, Updating and Removing data using JDatabase]]
* Database / JDatabase. There are two API guides, covering [[Selecting data using JDatabase]] and [[Inserting, Updating and Removing data using JDatabase]]
* Form / JForm. There is a [[Basic form guide|Basic guide]] to using the Joomla Form API and incorporating forms within a Joomla component, and also a more [[Advanced form guide]] covering more advanced aspects of the APIs.  
* Form / JForm. There is a [[Basic form guide|Basic guide]] to using the Joomla Form API and incorporating forms within a Joomla component, and also a more [[Advanced form guide]] covering more advanced aspects of the APIs.  
* FormField / JFormField. This class and related classes such as JFormFieldList which inherit from it are primarily useful for defining custom form fields, as described in [[Creating a custom form field type]].
* [[Retrieving request data using JInput|Input / JInput]] Using the <tt>Input</tt> class to obtain the values of parameters in HTTP GET and POST requests
* [[Retrieving request data using JInput|Input / JInput]] Using the <tt>Input</tt> class to obtain the values of parameters in HTTP GET and POST requests
* [[Using JLog|Log / JLog]] Log messages (eg error messages, debug messages) to a log file, and optionally to the debug console  
* [[Using JLog|Log / JLog]] Log messages (eg error messages, debug messages) to a log file, and optionally to the debug console  

Revision as of 22:02, 4 December 2019

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.

Note that this is work in progress!

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.