HTML
in package
implements
WriterInterface
HTML writer (Gantt chart rendered with frappe-gantt)
Table of Contents
Interfaces
Properties
- $phpProject : PhpProject
- PHPProject object
Methods
- __construct() : mixed
- Create a new HTML writer
- save() : void
- Save PHPProject to file
- writeFooter() : string
- Generate the HTML footer : close the tasks array, instantiate the Gantt chart and close the page.
- writeHeader() : string
- Generate the HTML header : page skeleton, frappe-gantt includes and the opening of the tasks array.
- writeTask() : string
- Generate the JS object for one task (frappe-gantt format).
Properties
$phpProject
PHPProject object
protected
PhpProject
$phpProject
Methods
__construct()
Create a new HTML writer
public
__construct(PhpProject $phpProject) : mixed
Parameters
- $phpProject : PhpProject
save()
Save PHPProject to file
public
save(string $pFilename) : void
Parameters
- $pFilename : string
Tags
writeFooter()
Generate the HTML footer : close the tasks array, instantiate the Gantt chart and close the page.
protected
writeFooter() : string
Return values
stringwriteHeader()
Generate the HTML header : page skeleton, frappe-gantt includes and the opening of the tasks array.
protected
writeHeader() : string
Return values
stringwriteTask()
Generate the JS object for one task (frappe-gantt format).
protected
writeTask(Task $task) : string
Parameters
- $task : Task