class FormDisplayTemplate (View source)

PhpMyAdmin\Config\FormDisplayTemplate class

Properties

int $group
Template $template

Methods

__construct(Config $config)

No description

string
displayInput(string $path, string $name, string $type, mixed $value, string $description = '', bool $valueIsDefault = true, array|null $opts = null)

Displays input field

string
displayGroupHeader(string $headerText)

Display group header

void
displayGroupFooter()

Display group footer

void
addJsValidate(string $fieldId, string|array $validators, array $fieldValidators)

Appends JS validation code to $js_array

string
displayErrors(string $name, array $errorList)

Displays error list

string
display(array $data)

No description

Details

__construct(Config $config)

No description

Parameters

Config $config

string displayInput(string $path, string $name, string $type, mixed $value, string $description = '', bool $valueIsDefault = true, array|null $opts = null)

Displays input field

$opts keys: o doc - (string) documentation link o errors - error array o setvalue - (string) shows button allowing to set predefined value o show_restore_default - (boolean) whether show "restore default" button o userprefs_allow - whether user preferences are enabled for this field (null - no support, true/false - enabled/disabled) o userprefs_comment - (string) field comment o values - key - value pairs for