ManuB

Gantt FusionChart API PHP Doc

Recommended Posts

Hi !

 

 

 

Is there a way to have php api doc for Gantt FusionChart ?

 

 

 

or a sample to use FusionChart Gantt Method like addGanttCategory(), addGanttProcess(),...

 

 

 

Thanks for your helps,*

 

 

 

Regards...

 

 

 

ManuB

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now