dolibarr 21.0.0-beta
ganttchart.inc.php File Reference

Gantt diagram of a project. More...

Go to the source code of this file.

Functions

 constructGanttLine ($tarr, $task, $task_dependencies, $level=0, $project_id=null)
 Add a gant chart line.
 
 findChildGanttLine ($tarr, $parent, $task_dependencies, $level)
 Find child Gantt line.
 

Detailed Description

Gantt diagram of a project.

Definition in file ganttchart.inc.php.

Function Documentation

◆ constructGanttLine()

constructGanttLine ( $tarr,
$task,
$task_dependencies,
$level = 0,
$project_id = null )

Add a gant chart line.

Parameters
array<int,array{task_id:string,task_alternate_id:string,task_name:string,task_resources:string,task_start_date:string,task_end_date:string,task_is_group:int<0,1>,task_position:int,task_css:string,task_milestone:int,task_parent:int,task_parent_alternate_id:int}>$tarr Array of all tasks
array{task_id:string,task_alternate_id:string,task_name:string,task_resources:string,task_start_date:string,task_end_date:string,task_is_group:int<0,1>,task_position:int,task_css:string,task_milestone:int,task_parent:int,task_parent_alternate_id:int}$task Array with properties of one task
array<int[]>$task_dependencies Task dependencies (array(array(0=>idtask,1=>idtasktofinishfisrt))
int$levelLevel
int$project_idId of project
Returns
void

Definition at line 178 of file ganttchart.inc.php.

References convertSecondToTime(), dol_concatdesc(), dol_escape_js(), and dol_print_date().

Referenced by findChildGanttLine().

◆ findChildGanttLine()

findChildGanttLine ( $tarr,
$parent,
$task_dependencies,
$level )

Find child Gantt line.

Parameters
array<int,array{task_id:string,task_alternate_id:string,task_name:string,task_resources:string,task_start_date:string,task_end_date:string,task_is_group:int<0,1>,task_position:int,task_css:string,task_milestone:int,task_parent:int,task_parent_alternate_id:int}>$tarr tarr
string$parentParent
array<int[]>$task_dependencies Task dependencies
int$levelLevel
Returns
void

Definition at line 289 of file ganttchart.inc.php.

References constructGanttLine(), and findChildGanttLine().

Referenced by findChildGanttLine().