CMSimple_XH 開発者ドキュメント
PluginLanguageFileEdit.php
1 <?php
2 
16 namespace XH;
17 
29 {
38  public function __construct()
39  {
40  global $pth, $plugin, $tx, $plugin_tx;
41 
42  parent::__construct();
43  $this->caption = ucfirst($plugin) . ' &ndash; '
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 }
$plugin
Definition: cms.php:856
utf8_ucfirst($string)
Definition: utf8.php:118
$plugin_tx
Definition: cms.php:1095
$tx
Definition: cms.php:363
$pth
Definition: cms.php:230