To visualize a constrain the method SetConstrain() is called on the first Gantt object that is the first part of the constraint. The signature for this method is
$aType, The type of constraints. Can be one of the following symbolic defines
CONSTRAIN_STARTSTART
CONSTRAIN_STARTEND
CONSTRAIN_ENDSTART
CONSTRAIN_ENDEND
$aColor, The color of the constraint arrow
$aArrowSize, The size of the constraint arrow. Can eb one of the following symbolic defines
ARROW_S1
ARROW_S2
ARROW_S3
ARROW_S4
ARROW_S5
$aArrowType, specifies the visual appearance of the arrow. Can be one of the following symbolic defines
ARROWT_SOLID, Using a solid arrow and arrow head
ARROWT_OPEN, Using an outline arrow and outline arrow head
If we assume that the gantt chart have two activity bars (Gantt bars) defined as
1
2
$activity1 = new GanttBar(0,'First activity','2001-01-01','2001-03-01');
$activity2 = new GanttBar(1,'Second activity','2001-02-01','2001-04-15');
and that we need to visualize a end-to-start constraint from $activity1 to $activity2 we must add the following statement