Hi,
I'm surprised, when i see FusionCharts_Gen.php file in FusionChartFree Gannt methode are there but no documention to use them.
###################### GANTT CHART (start) ######################################
# ----------- Public Functions -----------------------------------------------
# Function addCategory adding Category and vLine element
function addGanttCategorySet($catParam=""){
$this->GT_categories_Counter++;
$this->GT_categories[$this->GT_categories_Counter]= array();
$strParam="";
# cheking catParam not blank
if($catParam!=""){
$strParam = $this->ConvertParamToXMLAttribute($catParam);
}
$this->GT_categoriesParam[$this->GT_categories_Counter]=$strParam;
}
# Function addGanttCategory adding Category
function addGanttCategory($label="",$catParam=""){
$strCatXML="";
$strParam="";
# cheking catParam not blank
if($catParam!=""){
$strParam = $this->ConvertParamToXMLAttribute($catParam);
}
# adding label and parameter set to category
$strCatXML ="";
# storing into GT_categories array
$this->GT_categories[$this->GT_categories_Counter][$this->GT_subcategories_Counter]=$strCatXML;
# Increase Counter
$this->GT_subcategories_Counter++;
}
# Setting Process Parameter into categoriesParam variables
function setGanttProcessesParams($strParam){
$this->GT_processes_Param .= $this->ConvertParamToXMLAttribute($strParam);
}
# Function addGanttProcess adding Process
function addGanttProcess($label="",$catParam=""){
$strCatXML="";
$strParam="";
# cheking catParam not blank
if($catParam!=""){
$strParam = $this->ConvertParamToXMLAttribute($catParam);
}
# adding label and parameter set to category
$strCatXML ="";
# storing into categoryNames array
$this->GT_processes[$this->GT_processes_Counter]=$strCatXML;
# Increase Counter
$this->GT_processes_Counter++;
}
# Setting Tasks Parameter into TaskParam variables
function setGanttTasksParams($strParam){
$this->GT_Tasks_Param .= $this->ConvertParamToXMLAttribute($strParam);
}
# Function addGanttTasks adding Tasks
function addGanttTask($label="",$catParam=""){
$strCatXML="";
$strParam="";
# cheking catParam not blank
if($catParam!=""){
$strParam = $this->ConvertParamToXMLAttribute($catParam);
}
# adding label and parameter set to category
$strCatXML ="";
# storing into GT_Tasks array
$this->GT_Tasks[$this->GT_Tasks_Counter]=$strCatXML;
# Increase Counter
$this->GT_Tasks_Counter++;
}
Maybe this methodes are only there for an internal usage.
It would be great that we are able to use them directly.
Best Regards.