[ Index ]
 

Code source de eGroupWare 1.2.106-2

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/projectmanager/inc/ -> class.ganttchart.inc.php (sommaire)

(pas de description)

Poids: 774 lignes (26 kb)
Inclus ou requis:0 fois
Référencé: 0 fois
Nécessite: 3 fichiers
 projectmanager/inc/class.boprojectelements.inc.php
 projectmanager/inc/jpgraph-1.5.2/src/jpgraph_gantt.php
 projectmanager/inc/jpgraph-1.5.2/src/jpgraph.php

Définit 1 class

ganttchart:: (11 méthodes):
  ganttchart()
  text_encode()
  guess_locale()
  new_gantt()
  project2bar()
  element2bar()
  milestone2bar()
  add_elements()
  create()
  url2params()
  show()


Classe: ganttchart  - X-Ref

ProjectManager: Ganttchart creation

ganttchart()   X-Ref
Constructor, calls the constructor of the extended class


text_encode($text)   X-Ref
Converts text from eGW's internal encoding to something understood by JPGraph / GD

The only working thing I found so far is numeric html-entities from iso-8859-1.
If you found other encoding do work, please let mit know: RalfBecker-AT-outdoor-training.de
It would be nice if we could use the full utf-8 charset, if supported by the used font.

param: string $text
return: string

guess_locale()   X-Ref
Try to guess a locale supported by the server, with fallback to 'en_EN' and 'C'

return: string

new_gantt($title,$subtitle,$start,$end,$width=940)   X-Ref
create a new JPGraph Ganttchart object and setup a fitting scale

param: string $title
param: string $subtile
param: int $start startdate of the ganttchart
param: int $end enddate of the ganttchart
return: object GantGraph

project2bar($pm,$level,$line,$planned_times=false)   X-Ref
Ganttbar for a project

param: array $pm project or project-element data array
param: int $level hierarchy level, 0=main project
param: int $line line-number of the gantchart, starting with 0
param: boolean $planned_times=false show planned or real start- and end-dates
return: object GanttBar

element2bar($pe,$level,$line,$planned_times=false)   X-Ref
Ganttbar for a project-element

param: array $pe projectelement-data array
param: int $level hierarchy level, 0=main project
param: int $line line-number of the gantchart, starting with 0
param: boolean $planned_times=false show planned or real start- and end-dates
return: object GanttBar

milestone2bar($milestone,$level,$line)   X-Ref
Milestone

param: array $milestone data-array
param: int $level hierarchy level, 0=main project
param: int $line line-number of the gantchart, starting with 0
return: object MileStone

add_elements($pm_id,$params,&$line,&$bars,$level=1)   X-Ref
Adds all elements of project $pm_id to the ganttchart, calls itself recursive for subprojects

param: int $pm_id project-id
param: array $params
param: int &$line line-number of the gantchart, starting with 0, gets incremented
param: array &$bars bars are added here, with their pe_id as key
param: int $level hierarchy level starting with 1, function stops if $level > $params['deepth']

create($params=null,$filename='',$imagemap='ganttchar')   X-Ref
Create a ganttchart

param: array $params=null params, if (default) null, use them from the URL
param: string $filename='' filename to store the chart or (default) empty to send it direct to the browser

url2params($params = array()   X-Ref
read the ganttchart params from the URL

param: array $params already set parameters, default empty array
return: array with params

show($content=array()   X-Ref
Shows a ganttchart

As ganttcharts contain an image-map and the image, we save the image as a temporary file.
This for performance reasons, it saves a second creation / script-run.
projectmanager/ganttchart.php reads and output the temporary file/image and unlinks it after.



Généré le : Sun Feb 25 17:20:01 2007 par Balluche grâce à PHPXref 0.7