Difference between revisions of "DatabaseConnection form field type"

From Joomla! Documentation

(Marked for translation)
(Marked this version for translation)
Line 1: Line 1:
 
<noinclude><languages /></noinclude>
 
<noinclude><languages /></noinclude>
<translate>Provides a list of available database connections, optionally limiting to a given list.</translate>
+
<translate><!--T:1-->
 +
Provides a list of available database connections, optionally limiting to a given list.</translate>
  
<translate>* '''name''' (mandatory) is the unique name of the parameter.</translate>
+
<translate><!--T:2-->
<translate>* '''type''' (mandatory) must be ''contentlanguage''.</translate>
+
* '''name''' (mandatory) is the unique name of the parameter.</translate>
<translate>* '''label''' (mandatory) (translatable) is the descriptive title of the field.</translate>
+
<translate><!--T:3-->
<translate>* '''description''' (optional) (translatable) tooltip for the form field.</translate>
+
* '''type''' (mandatory) must be ''contentlanguage''.</translate>
 +
<translate><!--T:4-->
 +
* '''label''' (mandatory) (translatable) is the descriptive title of the field.</translate>
 +
<translate><!--T:5-->
 +
* '''description''' (optional) (translatable) tooltip for the form field.</translate>
  
<translate>Example XML Definition:</translate>
+
<translate><!--T:6-->
 +
Example XML Definition:</translate>
 
<source type="xml">
 
<source type="xml">
 
<field name="dbtype" type="databaseconnection"
 
<field name="dbtype" type="databaseconnection"
Line 18: Line 24:
 
<noinclude>
 
<noinclude>
 
<translate>
 
<translate>
 +
<!--T:7-->
 
[[Category:Standard form field types]]
 
[[Category:Standard form field types]]
 
</translate>
 
</translate>
 
</noinclude>
 
</noinclude>

Revision as of 15:09, 8 August 2015

Other languages:
Deutsch • ‎English • ‎Nederlands • ‎español • ‎français

Provides a list of available database connections, optionally limiting to a given list.

  • name (mandatory) is the unique name of the parameter.
  • type (mandatory) must be contentlanguage.
  • label (mandatory) (translatable) is the descriptive title of the field.
  • description (optional) (translatable) tooltip for the form field.

Example XML Definition:

<field name="dbtype" type="databaseconnection"
	label="COM_CONFIG_FIELD_DATABASE_TYPE_LABEL"
	description="COM_CONFIG_FIELD_DATABASE_TYPE_DESC"
	supported="mysql,mysqli,postgresql,sqlsrv,sqlazure"
	filter="string" />