CMSimple_XH 開発者ドキュメント
PluginLanguageFileEdit.php
1
<?php
2
16
namespace
XH
;
17
28
class
PluginLanguageFileEdit
extends
PluginArrayFileEdit
29
{
38
public
function
__construct
()
39
{
40
global
$pth
,
$plugin
,
$tx
,
$plugin_tx
;
41
42
parent::__construct();
43
$this->caption = ucfirst($plugin) .
' – '
44
.
utf8_ucfirst
($tx[
'filetype'
][
'language'
]);
45
$this->filename = $pth[
'file'
][
'plugin_language'
];
46
$this->params = array(
'admin'
=>
'plugin_language'
,
47
'action'
=>
'plugin_save'
);
48
$this->redir =
'?&'
. $plugin
49
.
'&admin=plugin_language&action=plugin_edit&xh_success=language'
;
50
$this->varName =
'plugin_tx'
;
51
$this->cfg = array();
52
foreach
($plugin_tx[$plugin] as $key => $val) {
53
list($cat, $name) = $this->splitKey($key);
54
$co = array(
'val'
=> $val,
'type'
=>
'text'
,
'isAdvanced'
=>
false
);
55
$this->cfg[$cat][$name] = $co;
56
}
57
}
58
}
XH\PluginArrayFileEdit
Definition:
PluginArrayFileEdit.php:28
$plugin
$plugin
Definition:
cms.php:856
XH
utf8_ucfirst
utf8_ucfirst($string)
Definition:
utf8.php:118
XH\PluginLanguageFileEdit
Definition:
PluginLanguageFileEdit.php:28
$plugin_tx
$plugin_tx
Definition:
cms.php:1095
$tx
$tx
Definition:
cms.php:363
$pth
$pth
Definition:
cms.php:230
XH\PluginLanguageFileEdit\__construct
__construct()
Definition:
PluginLanguageFileEdit.php:38
CMSimple_XH-1.7.0
cmsimplexh
cmsimple
classes
PluginLanguageFileEdit.php
構築:
1.8.13