Modif mineure

git-svn-id: https://forge.glpi-project.org/svn/example/trunk@30 349b9182-4a13-0410-896f-e5e9767dd1b3
This commit is contained in:
moyooo 2007-05-19 21:15:40 +00:00
parent 2a3d7c78c2
commit 05b00fecab

View File

@ -81,6 +81,7 @@ function plugin_init_example() {
} }
// Class of the defined type
class pluginExample extends CommonDBTM { class pluginExample extends CommonDBTM {
function pluginExample () { function pluginExample () {
$this->table="glpi_plugin_example"; $this->table="glpi_plugin_example";
@ -232,6 +233,7 @@ function plugin_example_addOrderBy($type,$ID,$order,$key=0){
////////////////////////////// //////////////////////////////
////// SPECIFIC MODIF MASSIVE FUNCTIONS /////// ////// SPECIFIC MODIF MASSIVE FUNCTIONS ///////
// Define actions :
function plugin_example_MassiveActions($type){ function plugin_example_MassiveActions($type){
global $LANG; global $LANG;
switch ($type){ switch ($type){
@ -247,6 +249,7 @@ function plugin_example_MassiveActions($type){
return array(); return array();
} }
// How to display specific actions ?
function plugin_example_MassiveActionsDisplay($type,$action){ function plugin_example_MassiveActionsDisplay($type,$action){
global $LANG; global $LANG;
switch ($type){ switch ($type){
@ -262,6 +265,7 @@ function plugin_example_MassiveActionsDisplay($type,$action){
return ""; return "";
} }
// How to process specific actions ?
function plugin_example_MassiveActionsProcess($data){ function plugin_example_MassiveActionsProcess($data){
global $LANG; global $LANG;
@ -283,7 +287,7 @@ function plugin_example_MassiveActionsProcess($data){
break; break;
} }
} }
// How to display specific update fields ?
function plugin_example_MassiveActionsFieldsDisplay($type,$table,$field,$linkfield){ function plugin_example_MassiveActionsFieldsDisplay($type,$table,$field,$linkfield){
global $LINK_ID_TABLE; global $LINK_ID_TABLE;
if ($table==$LINK_ID_TABLE[$type]){ if ($table==$LINK_ID_TABLE[$type]){