Documentation

GanttProject
in package
implements WriterInterface

PHPProject_Writer_GanttProject

Tags
category

PHPProject

copyright

Copyright (c) 2012 - 2012 PHPProject (https://github.com/PHPOffice/PHPProject)

Table of Contents

Interfaces

WriterInterface

Properties

$arrAllocations  : array<string|int, mixed>
$phpProject  : PhpProject
PHPProject object

Methods

__construct()  : mixed
Create a new PHPProject_Writer_GanttProject
save()  : void
Save PHPProject to file
sanitizeProject()  : array<string|int, mixed>
sanitizeTask()  : void
Permits to clean a task - If the duration is not filled, but the end date is, we calculate it.
sanitizeTaskParent()  : void
Permits to clean parent task and calculate parent data like total duration, date start and complete average.
writeAllocation()  : void
Write allocation of a resource for a task
writeResource()  : void
writeTask()  : void

Properties

$arrAllocations

private array<string|int, mixed> $arrAllocations

Methods

__construct()

Create a new PHPProject_Writer_GanttProject

public __construct(PHPProject $phpProject) : mixed
Parameters
$phpProject : PHPProject

save()

Save PHPProject to file

public save(string $pFilename) : void
Parameters
$pFilename : string
Tags
throws
Exception

sanitizeProject()

private sanitizeProject() : array<string|int, mixed>
Return values
array<string|int, mixed>

sanitizeTask()

Permits to clean a task - If the duration is not filled, but the end date is, we calculate it.

private sanitizeTask(Task $oTask) : void
  • If the end date is not filled, but the duration is, we calculate it.
Parameters
$oTask : Task

sanitizeTaskParent()

Permits to clean parent task and calculate parent data like total duration, date start and complete average.

private sanitizeTaskParent(Task $oParentTask) : void
Parameters
$oParentTask : Task

writeAllocation()

Write allocation of a resource for a task

private writeAllocation(XMLWriter $oXML, int $piIdTask, int $piIdResource) : void
Parameters
$oXML : XMLWriter
$piIdTask : int
$piIdResource : int
On this page

Search results