[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/installation/forms/ -> setup.xml (source)

   1  <?xml version="1.0" encoding="utf-8"?>
   2  <form addfieldprefix="Joomla\CMS\Installation\Form\Field" addruleprefix="Joomla\CMS\Installation\Form\Rule">
   3      <fieldset name="site">
   4          <field
   5              name="language"
   6              type="installation.language"
   7              label="INSTL_SELECT_LANGUAGE_TITLE"
   8              class="required"
   9              default="en-GB"
  10          />
  11          <field
  12              name="site_name"
  13              type="text"
  14              label="INSTL_SITE_NAME_DESC"
  15              class="form-control"
  16              required="true"
  17          />
  18          <field
  19              name="admin_email"
  20              type="email"
  21              label="INSTL_ADMIN_EMAIL_DESC"
  22              class="form-control"
  23              validate="email"
  24              required="true"
  25          />
  26          <field
  27              name="admin_user"
  28              type="text"
  29              label="INSTL_ADMIN_USER_DESC"
  30              required="true"
  31              class="form-control"
  32              size="30"
  33          />
  34          <field
  35              name="admin_username"
  36              type="text"
  37              label="INSTL_ADMIN_USERNAME_DESC"
  38              required="true"
  39              validate="username"
  40              class="form-control"
  41              size="30"
  42              autocomplete="username"
  43          />
  44          <field
  45              name="admin_password"
  46              type="password"
  47              label="INSTL_ADMIN_PASSWORD_DESC"
  48              description="INSTL_ADMIN_PASSWORD_LENGTH"
  49              required="true"
  50              autocomplete="new-password"
  51              validate="password"
  52              strengthmeter="true"
  53              force="on"
  54              filter="raw"
  55          />
  56          <field
  57              name="db_type"
  58              type="databaseconnection"
  59              label="INSTL_DATABASE_TYPE_DESC"
  60              class="form-select"
  61              supported="mysql,mysqli,pgsql,postgresql"
  62              required="true"
  63              default="mysqli"
  64              filter="string"
  65          />
  66          <field
  67              name="db_host"
  68              type="text"
  69              label="INSTL_DATABASE_HOST_DESC"
  70              class="form-control"
  71              default="localhost"
  72              required="true"
  73          />
  74          <field
  75              name="db_user"
  76              type="text"
  77              label="INSTL_DATABASE_USER_DESC"
  78              class="form-control"
  79              required="true"
  80          />
  81          <field
  82              name="db_pass"
  83              type="password"
  84              label="INSTL_DATABASE_PASSWORD_DESC"
  85              class="form-control"
  86              autocomplete="off"
  87              filter="raw"
  88          />
  89          <field
  90              name="db_name"
  91              type="text"
  92              label="INSTL_DATABASE_NAME_DESC"
  93              class="form-control"
  94              required="true"
  95              default="joomla_db"
  96          />
  97      </fieldset>
  98  
  99      <!-- Advanced Settings -->
 100      <fieldset name="advanced">
 101          <field
 102              name="db_prefix"
 103              type="installation.prefix"
 104              label="INSTL_DATABASE_PREFIX_DESC"
 105              class="form-control"
 106              required="true"
 107              validate="prefix"
 108              message="INSTL_DATABASE_PREFIX_MSG"
 109              autocomplete="off"
 110          />
 111          <field
 112              name="db_old"
 113              type="hidden"
 114              default="backup"
 115          />
 116  
 117          <field
 118              name="db_encryption"
 119              type="list"
 120              label="INSTL_DATABASE_ENCRYPTION_MODE_LABEL"
 121              class="form-select"
 122              required="true"
 123              default="0"
 124              filter="integer"
 125              validate="options"
 126              >
 127              <option value="0">INSTL_DATABASE_ENCRYPTION_MODE_VALUE_NONE</option>
 128              <option value="1">INSTL_DATABASE_ENCRYPTION_MODE_VALUE_ONE_WAY</option>
 129              <option value="2">INSTL_DATABASE_ENCRYPTION_MODE_VALUE_TWO_WAY</option>
 130          </field>
 131  
 132          <field
 133              name="db_sslkey"
 134              type="text"
 135              label="INSTL_DATABASE_ENCRYPTION_KEY_LABEL"
 136              filter="path"
 137              showon="db_encryption:2"
 138          />
 139  
 140          <field
 141              name="db_sslcert"
 142              type="text"
 143              label="INSTL_DATABASE_ENCRYPTION_CERT_LABEL"
 144              filter="path"
 145              showon="db_encryption:2"
 146          />
 147  
 148          <field
 149              name="db_sslverifyservercert"
 150              type="radio"
 151              label="INSTL_DATABASE_ENCRYPTION_VERIFY_SERVER_CERT_LABEL"
 152              layout="joomla.form.field.radio.switcher"
 153              default="0"
 154              filter="boolean"
 155              showon="db_encryption:1,2"
 156              >
 157              <option value="0">JNO</option>
 158              <option value="1">JYES</option>
 159          </field>
 160  
 161          <field
 162              name="db_sslca"
 163              type="text"
 164              label="INSTL_DATABASE_ENCRYPTION_CA_LABEL"
 165              filter="path"
 166              showon="db_encryption:1,2[AND]db_sslverifyservercert:1"
 167          />
 168  
 169          <field
 170              name="db_sslcipher"
 171              type="text"
 172              label="INSTL_DATABASE_ENCRYPTION_CIPHER_LABEL"
 173              filter="string"
 174              showon="db_type:mysql,mysqli[AND]db_encryption:2"
 175          />
 176  
 177      </fieldset>
 178  </form>


Generated: Wed Sep 7 05:41:13 2022 Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer