class Plugins (View source)

Methods

static object|null
getPlugin(string $type, string $format, ExportType $exportType = ExportType::Raw, bool $singleTable = false)

Instantiates the specified plugin type for a certain format

static array
getExport(ExportType $type, bool $singleTable)

No description

static array
getImport()

No description

static array
getSchema()

No description

static string
getString(string|null $name)

Returns locale string for $name or $name if no locale is found

static string
checkboxCheck(string $section, string $opt)

Returns html input tag option 'checked' if plugin $opt should be set by config or request

static string
getDefault(string $section, string $opt)

Returns default value for option $opt

static array
getChoice(array $list, string $default)

No description

static string
getHtmlForProperty(string $section, string $pluginName, OptionsPropertyItem $propertyItem)

Get HTML for properties items

static string
getOptions(string $section, array $list)

Returns html div with editable options for plugin

Details

static object|null getPlugin(string $type, string $format, ExportType $exportType = ExportType::Raw, bool $singleTable = false)

Instantiates the specified plugin type for a certain format

Parameters

string $type

the type of the plugin (import, export, etc)

string $format

the format of the plugin (sql, xml, et )

ExportType $exportType
bool $singleTable

Return Value

object|null

new plugin instance

static array getExport(ExportType $type, bool $singleTable)

No description

Parameters

ExportType $type
bool $singleTable

Return Value

array

static array getImport()

No description

Return Value

array

static array getSchema()

No description

Return Value

array

static string getString(string|null $name)

Returns locale string for $name or $name if no locale is found

Parameters

string|null $name

for local string

Return Value

string

locale string for $name

static string checkboxCheck(string $section, string $opt)

Returns html input tag option 'checked' if plugin $opt should be set by config or request

Parameters

string $section

name of config section in \PhpMyAdmin\Config::getInstance()->settings[$section] for plugin

string $opt

name of option

Return Value

string

html input tag option 'checked'

static string getDefault(string $section, string $opt)

Returns default value for option $opt

Parameters

string $section

name of config section in \PhpMyAdmin\Config::getInstance()->settings[$section] for plugin

string $opt

name of option

Return Value

string

default value for option $opt

static array getChoice(array $list, string $default)

No description

Parameters

array $list
string $default

Return Value

array

static string getHtmlForProperty(string $section, string $pluginName, OptionsPropertyItem $propertyItem)

Get HTML for properties items

Parameters

string $section

name of config section in $cfg[$section] for plugin

string $pluginName

unique plugin name

OptionsPropertyItem $propertyItem

Property item

Return Value

string

static string getOptions(string $section, array $list)

Returns html div with editable options for plugin

Parameters

string $section

name of config section in $cfg[$section]

array $list

array with plugin instances

Return Value

string

html fieldset with plugin options