mirror of
https://github.com/pluginsGLPI/example.git
synced 2025-05-04 18:08:42 +02:00
prepare more work on planning
git-svn-id: https://forge.glpi-project.org/svn/example/trunk@181 349b9182-4a13-0410-896f-e5e9767dd1b3
This commit is contained in:
parent
e1f21e938f
commit
1c4cccbf13
@ -189,13 +189,16 @@ class PluginExampleExample extends CommonDBTM {
|
|||||||
// Items need to have an unique index beginning by the begin date of the item to display
|
// Items need to have an unique index beginning by the begin date of the item to display
|
||||||
// needed to be correcly displayed
|
// needed to be correcly displayed
|
||||||
$output = array();
|
$output = array();
|
||||||
$output[$parm["begin"]."$$$"."plugin_example1"]["plugin"] = "example";
|
$key = $parm["begin"]."$$$"."plugin_example1";
|
||||||
$output[$parm["begin"]."$$$"."plugin_example1"]["begin"] = date("Y-m-d 17:00:00");
|
$output[$key]["plugin"] = "example";
|
||||||
$output[$parm["begin"]."$$$"."plugin_example1"]["end"] = date("Y-m-d 18:00:00");
|
$output[$key]["begin"] = date("Y-m-d 17:00:00");
|
||||||
$output[$parm["begin"]."$$$"."plugin_example1"]["name"] = __("test planning example 1");
|
$output[$key]["end"] = date("Y-m-d 18:00:00");
|
||||||
|
$output[$key]["name"] = __("test planning example 1");
|
||||||
// Set the ID using the ID of the item in the database to have unique ID
|
// Set the ID using the ID of the item in the database to have unique ID
|
||||||
$ID = date("Ymd"); // Current date for example
|
$ID = date("Ymd"); // Current date for example
|
||||||
$output[$parm["begin"]."$$$"."plugin_example1"]["planningID"] = "plugin_example".$ID;
|
$output[$key]["planningID"] = "plugin_example".$ID;
|
||||||
|
// Specify the itemtype to be able to use specific display system
|
||||||
|
$output[$key]["itemtype"] = "PluginExampleExample";
|
||||||
return $output;
|
return $output;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user