mirror of
https://github.com/pluginsGLPI/example.git
synced 2025-05-04 18:08:42 +02:00
ajout infos
git-svn-id: https://forge.glpi-project.org/svn/example/trunk@17 349b9182-4a13-0410-896f-e5e9767dd1b3
This commit is contained in:
parent
510d6fbc72
commit
d21cf35631
@ -172,9 +172,10 @@ function plugin_planning_populate_example($parm){
|
|||||||
// Add items in the items fields of the parm array
|
// Add items in the items fields of the parm array
|
||||||
// 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
|
||||||
|
|
||||||
$parm["items"][$parm["begin"]."$$$"."plugin_example1"]["plugin"]="example";
|
$parm["items"][$parm["begin"]."$$$"."plugin_example1"]["plugin"]="example";
|
||||||
$parm["items"][$parm["begin"]."$$$"."plugin_example1"]["begin"]=$parm["begin"];
|
$parm["items"][$parm["begin"]."$$$"."plugin_example1"]["begin"]=$parm["begin"];
|
||||||
$parm["items"][$parm["begin"]."$$$"."plugin_example1"]["end"]=$parm["begin"];
|
$parm["items"][$parm["begin"]."$$$"."plugin_example1"]["end"]="2007-03-28 12:33:00";
|
||||||
$parm["items"][$parm["begin"]."$$$"."plugin_example1"]["name"]="test planning example 1 ";
|
$parm["items"][$parm["begin"]."$$$"."plugin_example1"]["name"]="test planning example 1 ";
|
||||||
|
|
||||||
return $parm;
|
return $parm;
|
||||||
@ -182,7 +183,7 @@ function plugin_planning_populate_example($parm){
|
|||||||
|
|
||||||
// Display the planning item
|
// Display the planning item
|
||||||
function plugin_display_planning_example($parm){
|
function plugin_display_planning_example($parm){
|
||||||
|
// $parm["type"] say begin end in or from type
|
||||||
// Add items in the items fields of the parm array
|
// Add items in the items fields of the parm array
|
||||||
echo "--".$parm["name"]."--";
|
echo "--".$parm["name"]."--";
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user