From 05b00fecab89de0cd6731cb61408bce5f10c473c Mon Sep 17 00:00:00 2001 From: moyooo Date: Sat, 19 May 2007 21:15:40 +0000 Subject: [PATCH] Modif mineure git-svn-id: https://forge.glpi-project.org/svn/example/trunk@30 349b9182-4a13-0410-896f-e5e9767dd1b3 --- setup.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/setup.php b/setup.php index 586b17e..eb317c2 100755 --- a/setup.php +++ b/setup.php @@ -81,6 +81,7 @@ function plugin_init_example() { } +// Class of the defined type class pluginExample extends CommonDBTM { function pluginExample () { $this->table="glpi_plugin_example"; @@ -232,6 +233,7 @@ function plugin_example_addOrderBy($type,$ID,$order,$key=0){ ////////////////////////////// ////// SPECIFIC MODIF MASSIVE FUNCTIONS /////// +// Define actions : function plugin_example_MassiveActions($type){ global $LANG; switch ($type){ @@ -247,6 +249,7 @@ function plugin_example_MassiveActions($type){ return array(); } +// How to display specific actions ? function plugin_example_MassiveActionsDisplay($type,$action){ global $LANG; switch ($type){ @@ -262,6 +265,7 @@ function plugin_example_MassiveActionsDisplay($type,$action){ return ""; } +// How to process specific actions ? function plugin_example_MassiveActionsProcess($data){ global $LANG; @@ -283,7 +287,7 @@ function plugin_example_MassiveActionsProcess($data){ break; } } - +// How to display specific update fields ? function plugin_example_MassiveActionsFieldsDisplay($type,$table,$field,$linkfield){ global $LINK_ID_TABLE; if ($table==$LINK_ID_TABLE[$type]){