mirror of
https://github.com/pluginsGLPI/example.git
synced 2025-05-05 02:18:42 +02:00
Fix CS (from phpcbf)
This commit is contained in:
parent
0900bde1c9
commit
46a15511a2
@ -47,4 +47,3 @@ Plugin::load('example');
|
|||||||
Html::header("TITRE", $_SERVER['PHP_SELF'], "config", "plugins");
|
Html::header("TITRE", $_SERVER['PHP_SELF'], "config", "plugins");
|
||||||
_e("This is the plugin config page", 'example');
|
_e("This is the plugin config page", 'example');
|
||||||
Html::footer();
|
Html::footer();
|
||||||
?>
|
|
||||||
|
@ -36,4 +36,3 @@ include ('../../../inc/includes.php');
|
|||||||
|
|
||||||
$dropdown = new PluginExampleDeviceCamera();
|
$dropdown = new PluginExampleDeviceCamera();
|
||||||
include (GLPI_ROOT . "/front/dropdown.common.form.php");
|
include (GLPI_ROOT . "/front/dropdown.common.form.php");
|
||||||
?>
|
|
@ -36,4 +36,3 @@ include ('../../../inc/includes.php');
|
|||||||
|
|
||||||
$dropdown = new PluginExampleDeviceCamera();
|
$dropdown = new PluginExampleDeviceCamera();
|
||||||
include (GLPI_ROOT . "/front/dropdown.common.php");
|
include (GLPI_ROOT . "/front/dropdown.common.php");
|
||||||
?>
|
|
||||||
|
@ -39,4 +39,3 @@ Plugin::load('example',true);
|
|||||||
|
|
||||||
$dropdown = new PluginExampleDropdown();
|
$dropdown = new PluginExampleDropdown();
|
||||||
include (GLPI_ROOT . "/front/dropdown.common.form.php");
|
include (GLPI_ROOT . "/front/dropdown.common.form.php");
|
||||||
?>
|
|
@ -39,4 +39,3 @@ Plugin::load('example',true);
|
|||||||
|
|
||||||
$dropdown = new PluginExampleDropdown();
|
$dropdown = new PluginExampleDropdown();
|
||||||
include (GLPI_ROOT . "/front/dropdown.common.php");
|
include (GLPI_ROOT . "/front/dropdown.common.php");
|
||||||
?>
|
|
||||||
|
@ -44,4 +44,3 @@ $example = new PluginExampleExample();
|
|||||||
$example->display($_GET);
|
$example->display($_GET);
|
||||||
|
|
||||||
Html::footer();
|
Html::footer();
|
||||||
?>
|
|
@ -46,4 +46,3 @@ if ($_SESSION["glpiactiveprofile"]["interface"] == "central") {
|
|||||||
Search::show('PluginExampleExample');
|
Search::show('PluginExampleExample');
|
||||||
|
|
||||||
Html::footer();
|
Html::footer();
|
||||||
?>
|
|
@ -56,4 +56,3 @@ if (isset($_SESSION["glpipopup"]["name"])) {
|
|||||||
echo "</div>";
|
echo "</div>";
|
||||||
Html::popFooter();
|
Html::popFooter();
|
||||||
}
|
}
|
||||||
?>
|
|
@ -38,4 +38,3 @@ include ('../../../inc/includes.php');
|
|||||||
$rulecollection = new PluginExampleRuleTestCollection();
|
$rulecollection = new PluginExampleRuleTestCollection();
|
||||||
|
|
||||||
include (GLPI_ROOT . "/front/rule.common.form.php");
|
include (GLPI_ROOT . "/front/rule.common.form.php");
|
||||||
?>
|
|
||||||
|
@ -38,4 +38,3 @@ include ('../../../inc/includes.php');
|
|||||||
$rulecollection = new PluginExampleRuleTestCollection();
|
$rulecollection = new PluginExampleRuleTestCollection();
|
||||||
|
|
||||||
include (GLPI_ROOT . "/front/rule.common.php");
|
include (GLPI_ROOT . "/front/rule.common.php");
|
||||||
?>
|
|
||||||
|
4
hook.php
4
hook.php
@ -606,9 +606,9 @@ function plugin_example_postinit() {
|
|||||||
global $CFG_GLPI;
|
global $CFG_GLPI;
|
||||||
|
|
||||||
// All plugins are initialized, so all types are registered
|
// All plugins are initialized, so all types are registered
|
||||||
foreach (Infocom::getItemtypesThatCanHave() as $type) {
|
//foreach (Infocom::getItemtypesThatCanHave() as $type) {
|
||||||
// do something
|
// do something
|
||||||
}
|
//}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -99,4 +99,3 @@ class PluginExampleChild extends CommonDBChild {
|
|||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
?>
|
|
@ -66,7 +66,6 @@ class PluginExampleConfig extends CommonDBTM {
|
|||||||
Dropdown::showYesNo("configuration", $my_config['configuration']);
|
Dropdown::showYesNo("configuration", $my_config['configuration']);
|
||||||
echo "</td></tr>";
|
echo "</td></tr>";
|
||||||
|
|
||||||
|
|
||||||
echo "<tr class='tab_bg_2'>";
|
echo "<tr class='tab_bg_2'>";
|
||||||
echo "<td colspan='4' class='center'>";
|
echo "<td colspan='4' class='center'>";
|
||||||
echo "<input type='submit' name='update' class='submit' value=\""._sx('button', 'Save')."\">";
|
echo "<input type='submit' name='update' class='submit' value=\""._sx('button', 'Save')."\">";
|
||||||
@ -85,4 +84,3 @@ class PluginExampleConfig extends CommonDBTM {
|
|||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
?>
|
|
@ -46,4 +46,3 @@ class PluginExampleDeviceCamera extends CommonDevice {
|
|||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
?>
|
|
@ -44,4 +44,3 @@ class PluginExampleDropdown extends CommonDropdown {
|
|||||||
return __('Plugin Example Dropdowns', 'example');
|
return __('Plugin Example Dropdowns', 'example');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
?>
|
|
||||||
|
@ -479,9 +479,7 @@ class PluginExampleExample extends CommonDBTM {
|
|||||||
return array($link);
|
return array($link);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
return parent::generateLinkContents($link, $item);
|
return parent::generateLinkContents($link, $item);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
?>
|
|
@ -49,4 +49,3 @@ class PluginExampleItem_DeviceCamera extends Item_Devices {
|
|||||||
static protected $notable = false;
|
static protected $notable = false;
|
||||||
|
|
||||||
}
|
}
|
||||||
?>
|
|
||||||
|
@ -44,4 +44,3 @@ class PluginExampleNotificationTargetExample extends NotificationTarget {
|
|||||||
$this->datas['##example.name##'] = __('Example', 'example');
|
$this->datas['##example.name##'] = __('Example', 'example');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
?>
|
|
@ -80,4 +80,3 @@ class PluginExampleRuleTest extends Rule {
|
|||||||
return $actions;
|
return $actions;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
?>
|
|
||||||
|
@ -47,4 +47,3 @@ class PluginExampleRuleTestCollection extends RuleCollection {
|
|||||||
return 'Rulesengine test';
|
return 'Rulesengine test';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
?>
|
|
||||||
|
@ -155,6 +155,7 @@ class PluginExampleShowtabitem {
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
// here we are going to view a Solution
|
// here we are going to view a Solution
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -189,6 +190,7 @@ class PluginExampleShowtabitem {
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
// here we are going to view a Solution
|
// here we are going to view a Solution
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -46,4 +46,3 @@ Html::header("TITRE",$_SERVER['PHP_SELF'],"plugins");
|
|||||||
echo "This is the plugin report page";
|
echo "This is the plugin report page";
|
||||||
|
|
||||||
Html::footer();
|
Html::footer();
|
||||||
?>
|
|
@ -265,4 +265,3 @@ function plugin_example_check_config($verbose = false) {
|
|||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
?>
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user