Documentation

HTML
in package
implements WriterInterface

HTML writer (Gantt chart rendered with frappe-gantt)

Table of Contents

Interfaces

WriterInterface

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

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
throws
Exception

writeFooter()

Generate the HTML footer : close the tasks array, instantiate the Gantt chart and close the page.

protected writeFooter() : string
Return values
string

writeHeader()

Generate the HTML header : page skeleton, frappe-gantt includes and the opening of the tasks array.

protected writeHeader() : string
Return values
string

writeTask()

Generate the JS object for one task (frappe-gantt format).

protected writeTask(Task $task) : string
Parameters
$task : Task
Return values
string
On this page

Search results