GanttProject
in package
implements
WriterInterface
PHPProject_Writer_GanttProject
Tags
Table of Contents
Interfaces
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
$phpProject
PHPProject object
private
PhpProject
$phpProject
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
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
writeResource()
private
writeResource(XMLWriter $oXML, Resource $oResource) : void
Parameters
writeTask()
private
writeTask(XMLWriter $oXML, Task $oTask) : void