mirror of
https://github.com/pluginsGLPI/example.git
synced 2025-10-13 20:24:34 +02:00
Feature GLP11 (#88)
* Feature GLP11 * phpstan * enable CI and fix phstanneon * Update .github/workflows/continuous-integration.yml Co-authored-by: Romain B. <8530352+Rom1-B@users.noreply.github.com> * Update phpstan.neon Co-authored-by: Romain B. <8530352+Rom1-B@users.noreply.github.com> * Pass all paramters to parent call * move query -> doQuery * fix direct query * release GLPI 11.0 * Clean composer.json * psalm + rector * fix --------- Co-authored-by: Romain B. <8530352+Rom1-B@users.noreply.github.com> Co-authored-by: Johan Cwiklinski <johan@x-tnd.be> Co-authored-by: Rom1-B <rom1.biot@gmail.com>
This commit is contained in:
@@ -44,10 +44,8 @@ class Config extends CommonDBTM
|
||||
|
||||
public function getTabNameForItem(CommonGLPI $item, $withtemplate = 0)
|
||||
{
|
||||
if (!$withtemplate) {
|
||||
if ($item->getType() == 'Config') {
|
||||
return __('Example plugin');
|
||||
}
|
||||
if (!$withtemplate && $item->getType() == 'Config') {
|
||||
return __s('Example plugin');
|
||||
}
|
||||
|
||||
return '';
|
||||
@@ -73,10 +71,10 @@ class Config extends CommonDBTM
|
||||
echo "<form name='form' action=\"" . Toolbox::getItemTypeFormURL('Config') . "\" method='post'>";
|
||||
echo "<div class='center' id='tabsbody'>";
|
||||
echo "<table class='tab_cadre_fixe'>";
|
||||
echo "<tr><th colspan='4'>" . __('Example setup') . '</th></tr>';
|
||||
echo '<td >' . __('My boolean choice :') . '</td>';
|
||||
echo "<tr><th colspan='4'>" . __s('Example setup') . '</th></tr>';
|
||||
echo '<td >' . __s('My boolean choice :') . '</td>';
|
||||
echo "<td colspan='3'>";
|
||||
echo "<input type='hidden' name='config_class' value='" . __CLASS__ . "'>";
|
||||
echo "<input type='hidden' name='config_class' value='" . self::class . "'>";
|
||||
echo "<input type='hidden' name='config_context' value='plugin:Example'>";
|
||||
Dropdown::showYesNo('configuration', $my_config['configuration']);
|
||||
echo '</td></tr>';
|
||||
@@ -96,5 +94,6 @@ class Config extends CommonDBTM
|
||||
$config = new self();
|
||||
$config->showFormExample();
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user