\Chill\ReportBundle\ControllerReportController

Report controller.

Summary

Methods
Properties
Constants
listAction()
selectReportTypeAction()
selectReportTypeForExportAction()
exportAction()
newAction()
createAction()
viewAction()
editAction()
updateAction()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
createCreateForm()
createEditForm()
No private properties found
N/A

Methods

listAction()

listAction(integer  $person_id, \Symfony\Component\HttpFoundation\Request  $request) : \Chill\ReportBundle\Controller\Response

List all the report entities for a given person.

Parameters

integer $person_id

The id of the person.

\Symfony\Component\HttpFoundation\Request $request

The request

Returns

\Chill\ReportBundle\Controller\Response —

The web page.

selectReportTypeAction()

selectReportTypeAction(integer  $person_id, \Symfony\Component\HttpFoundation\Request  $request) : \Chill\ReportBundle\Controller\Response

Display a form for selecting which type of report to add for a given person

Parameters

integer $person_id

The id of the person.

\Symfony\Component\HttpFoundation\Request $request

The request

Returns

\Chill\ReportBundle\Controller\Response —

The web page.

selectReportTypeForExportAction()

selectReportTypeForExportAction(\Symfony\Component\HttpFoundation\Request  $request) : \Chill\ReportBundle\Controller\Response

Display a form for selecting which type of report to export (a csv file with all the report of this type)

Parameters

\Symfony\Component\HttpFoundation\Request $request

The request

Returns

\Chill\ReportBundle\Controller\Response —

The web page.

exportAction()

exportAction(integer  $cf_group_id, \Symfony\Component\HttpFoundation\Request  $request) : \Chill\ReportBundle\Controller\A

Return a csv file with all the reports of a given type

Parameters

integer $cf_group_id

The id of the report type to export

\Symfony\Component\HttpFoundation\Request $request

The request

Returns

\Chill\ReportBundle\Controller\A —

csv file with all the reports of the selected type

newAction()

newAction(integer  $person_id, integer  $cf_group_id, \Symfony\Component\HttpFoundation\Request  $request) : \Chill\ReportBundle\Controller\Response

Display a form for creating a new report for a given person and of a given type

Parameters

integer $person_id

The id of the person.

integer $cf_group_id

The id of the report type.

\Symfony\Component\HttpFoundation\Request $request

The request

Returns

\Chill\ReportBundle\Controller\Response —

The web page.

createAction()

createAction(integer  $person_id, integer  $cf_group_id, \Symfony\Component\HttpFoundation\Request  $request) : \Chill\ReportBundle\Controller\Response

Create a new report for a given person and of a given type

Parameters

integer $person_id

The id of the person.

integer $cf_group_id

The id of the report type.

\Symfony\Component\HttpFoundation\Request $request

The request containing the form data (from the newAction)

Returns

\Chill\ReportBundle\Controller\Response —

The web page.

viewAction()

viewAction(integer  $report_id, integer  $person_id) : \Chill\ReportBundle\Controller\Response

Find and display a report.

Parameters

integer $report_id

The id of the report.

integer $person_id

The id of the person.

Returns

\Chill\ReportBundle\Controller\Response —

The web page.

editAction()

editAction(integer  $person_id, integer  $report_id, \Symfony\Component\HttpFoundation\Request  $request) : \Chill\ReportBundle\Controller\Response

Display a form to edit an existing Report entity.

Parameters

integer $person_id

The id of the person.

integer $report_id

The id of the report.

\Symfony\Component\HttpFoundation\Request $request

Returns

\Chill\ReportBundle\Controller\Response —

The web page.

updateAction()

updateAction(integer  $person_id, integer  $report_id, \Symfony\Component\HttpFoundation\Request  $request) : \Chill\ReportBundle\Controller\Response

Web page for editing an existing report.

Parameters

integer $person_id

The id of the person.

integer $report_id

The id of the report.

\Symfony\Component\HttpFoundation\Request $request

Returns

\Chill\ReportBundle\Controller\Response —

The web page.

createCreateForm()

createCreateForm(\Chill\ReportBundle\Entity\Report  $entity, integer  $person_id,   $cFGroup) : \Symfony\Component\Form\Form

Creates a form to create a Report entity.

Parameters

\Chill\ReportBundle\Entity\Report $entity

The entity

integer $person_id

The id of the person.

$cFGroup

Returns

\Symfony\Component\Form\Form —

The form

createEditForm()

createEditForm(\Chill\ReportBundle\Entity\Report  $entity, integer  $person_id) : \Symfony\Component\Form\Form

Creates a form to edit a Report entity.

Parameters

\Chill\ReportBundle\Entity\Report $entity

The report to edit.

integer $person_id

The id of the person.

Returns

\Symfony\Component\Form\Form —

The form