PluginFill
extends Plugin
in package
Functional extension for
Table of Contents
Properties
- $inputs : array<string|int, array<string, mixed>>
- $mark : string
- $outputs : array<string|int, array<string, mixed>>
- $preload : bool
- $url : string
Methods
- __construct() : mixed
- getCss() : array<string, mixed>|null
- Get css for plugin
- getForm() : string
- Get html code for current (sub)form
- getScriptDummy() : string|null
- Get javascript for current (sub)form
- getScriptForm() : array<string, mixed>|null
- Get javascript for current (multi)form
- getScriptTable() : array<string, mixed>|null
- isValid() : bool
- Check plugins validity based on selected form
- getJsForm() : array<string|int, string>|null
Properties
$inputs
protected
array<string|int, array<string, mixed>>
$inputs
$mark
protected
string
$mark
$outputs
protected
array<string|int, array<string, mixed>>
$outputs
$preload
protected
bool
$preload
= false
Load all data if url is set
$url
protected
string
$url
Download fill data
Methods
__construct()
public
__construct(string $url, array<string|int, array<string, mixed>>|array<string, mixed> $inputs, array<string|int, array<string, mixed>>|array<string, mixed> $outputs[, bool $preload = false ]) : mixed
Parameters
- $url : string
- $inputs : array<string|int, array<string, mixed>>|array<string, mixed>
- $outputs : array<string|int, array<string, mixed>>|array<string, mixed>
- $preload : bool = false
getCss()
Get css for plugin
public
getCss() : array<string, mixed>|null
Return values
array<string, mixed>|nullgetForm()
Get html code for current (sub)form
public
getForm(string|int $id[, bool $dummy = false ]) : string
Parameters
- $id : string|int
- $dummy : bool = false
Return values
stringgetScriptDummy()
Get javascript for current (sub)form
public
getScriptDummy(string $jsForm) : string|null
Parameters
- $jsForm : string
Return values
string|nullgetScriptForm()
Get javascript for current (multi)form
public
getScriptForm(string $jsForm) : array<string, mixed>|null
Parameters
- $jsForm : string
Return values
array<string, mixed>|nullgetScriptTable()
public
getScriptTable(int $id, string $form) : array<string, mixed>|null
Parameters
- $id : int
- $form : string
Tags
Return values
array<string, mixed>|nullisValid()
Check plugins validity based on selected form
public
isValid(Form $form) : bool
Parameters
- $form : Form
Return values
boolgetJsForm()
protected
getJsForm(array<string|int, array<string, mixed>> $groups) : array<string|int, string>|null
Parameters
- $groups : array<string|int, array<string, mixed>>