|
| $cfg = null |
|
| $lang = null |
|
| $metaLangFile |
|
| $params = array() |
|
| $plugin = null |
|
| $caption = null |
|
| $filename = null |
|
| $redir = null |
|
◆ __construct()
XH\ArrayFileEdit::__construct |
( |
| ) |
|
◆ form()
XH\ArrayFileEdit::form |
( |
| ) |
|
Returns the form to edit the file contents.
- 戻り値
- string HTML
string The script name. array The localization of the core. string The title of the current page. object The CSRF protection object.
ArrayFileEdit.php の 215 行目に定義があります。
◆ formField()
XH\ArrayFileEdit::formField |
( |
|
$cat, |
|
|
|
$name, |
|
|
array |
$opt |
|
) |
| |
|
protected |
Returns a form field.
- 引数
-
string | $cat | The category. |
string | $name | The name. |
array | $opt | The field options. |
- 戻り値
- string HTML
array The localization of the core.
ArrayFileEdit.php の 152 行目に定義があります。
◆ hasVisibleFields()
XH\ArrayFileEdit::hasVisibleFields |
( |
array |
$options, |
|
|
|
$advanced |
|
) |
| |
|
protected |
Returns whether all options are hidden.
- 引数
-
array | $options | The list of options. |
bool | $advanced | Whether normal or advanced fields are to be checked. |
- 戻り値
- bool
ArrayFileEdit.php の 129 行目に定義があります。
◆ option()
XH\ArrayFileEdit::option |
( |
|
$mcf, |
|
|
|
$val, |
|
|
|
$hint |
|
) |
| |
|
protected |
Returns an option array.
- 引数
-
string | $mcf | The meta config of the option. |
mixed | $val | The current value of the option. |
string | $hint | A hint for the option usage. |
- 戻り値
- array
ArrayFileEdit.php の 344 行目に定義があります。
◆ renderFormFields()
XH\ArrayFileEdit::renderFormFields |
( |
|
$advanced | ) |
|
|
protected |
Renders the form fields grouped by category.
- 引数
-
bool | $advanced | Whether to render the normal or the advanced fields. |
- 戻り値
- string HTML
ArrayFileEdit.php の 253 行目に定義があります。
◆ save()
XH\ArrayFileEdit::save |
( |
| ) |
|
|
protected |
Saves the file and returns whether that succeeded. Invalidates the cached file, if OPcache is enabled.
- 戻り値
- bool
ArrayFileEdit.php の 74 行目に定義があります。
◆ splitKey()
XH\ArrayFileEdit::splitKey |
( |
|
$key | ) |
|
|
protected |
Returns a key split to category and rest.
- 引数
-
string | $key | The original key. |
- 戻り値
- array
ArrayFileEdit.php の 110 行目に定義があります。
◆ submit()
XH\ArrayFileEdit::submit |
( |
| ) |
|
Handles the form submission.
Triggers a redirect, if the submission was valid and the file could be successfully saved. Otherwise writes an error message to $e, and returns the edit form.
- 戻り値
- string HTML
string Error messages. object The CSRF protection object.
ArrayFileEdit.php の 305 行目に定義があります。
◆ translate()
XH\ArrayFileEdit::translate |
( |
|
$key | ) |
|
|
protected |
Returns the localization of the given config or language key.
- 引数
-
string | $key | A config or language key. |
- 戻り値
- string
ArrayFileEdit.php の 90 行目に定義があります。
このクラス詳解は次のファイルから抽出されました: