public function __construct($aPos, $aLabel, $aStart, $aEnd, $aCaption = "", $aHeightFactor = 0.6) { parent::__construct(); $this->iStart = $aStart; // Is the end date given as a date or as number of days added to start date? if (is_string($aEnd)) { // If end date has been specified without a time we will asssume // end date is at the end of that date if (strpos($aEnd, ':') === false) { $this->iEnd = strtotime($aEnd) + SECPERDAY - 1; } else { $this->iEnd = $aEnd; } } elseif (is_int($aEnd) || is_float($aEnd)) { $this->iEnd = strtotime($aStart) + round($aEnd * SECPERDAY); } $this->iVPos = $aPos; $this->iHeightFactor = $aHeightFactor; $this->title->Set($aLabel); $this->caption = new TextProperty($aCaption); $this->caption->Align("left", "center"); $this->leftMark = new PlotMark(); $this->leftMark->Hide(); $this->rightMark = new PlotMark(); $this->rightMark->Hide(); $this->progress = new Progress(); }
public function __construct($aVPos, $aLabel, $aDate, $aCaption = "") { GanttPlotObject::__construct(); $this->caption->Set($aCaption); $this->caption->Align("left", "center"); $this->caption->SetFont(FF_FONT1, FS_BOLD); $this->title->Set($aLabel); $this->title->SetColor("darkred"); $this->mark = new PlotMark(); $this->mark->SetWidth(10); $this->mark->SetType(MARK_DIAMOND); $this->mark->SetColor("darkred"); $this->mark->SetFillColor("darkred"); $this->iVPos = $aVPos; $this->iStart = $aDate; }
function __construct($aDate, $aTitle = "", $aColor = "darkred", $aWeight = 2, $aStyle = "solid") { GanttPlotObject::__construct(); $this->iLine = new LineProperty(); $this->iLine->SetColor($aColor); $this->iLine->SetWeight($aWeight); $this->iLine->SetStyle($aStyle); $this->iStart = $aDate; $this->title = new TextPropertyBelow(); $this->title->Set($aTitle); }