CRM_Report_OutputHandler_Csv
extends OutputHandlerBase
in package
implements
OutputHandlerInterface
CSV Report Output Handler
Table of Contents
Interfaces
Properties
- $form : CRM_Report_Form
- This is for convenience since otherwise several functions would take it as a parameter.
Methods
- download() : mixed
- Set headers as appropriate and send the output to the browser.
- getCharset() : string
- Charset of the attachment.
- getFileName() : string
- Return the download filename. This should be the "clean" name, not a munged temporary filename.
- getForm() : CRM_Report_Form
- Getter for $form
- getMailBody() : string
- Return the html body of the email.
- getMimeType() : string
- Mime type of the attachment.
- getOutputString() : string
- Return the report contents as a string, in this case the csv output.
- isAbsoluteUrl() : bool
- Create absolute urls for links. Generally for a handler this is always set to TRUE, but for example for 'print' it's displayed on the site so it can be relative.
- isAddPaging() : bool
- Use a pager, but for a handler this would be FALSE since paging is a UI element.
- isOutputHandlerFor() : bool
- Are we a suitable output handler based on the given form?
- isPrintOnly() : bool
- Hide/show various elements in the output, but generally for a handler this is always set to TRUE.
- setForm() : mixed
- Setter for $form
Properties
$form
This is for convenience since otherwise several functions would take it as a parameter.
protected
CRM_Report_Form
$form
Methods
download()
Set headers as appropriate and send the output to the browser.
public
download() : mixed
getCharset()
Charset of the attachment.
public
getCharset() : string
Return values
stringgetFileName()
Return the download filename. This should be the "clean" name, not a munged temporary filename.
public
getFileName() : string
Return values
stringgetForm()
Getter for $form
public
getForm() : CRM_Report_Form
Return values
CRM_Report_FormgetMailBody()
Return the html body of the email.
public
getMailBody() : string
Return values
stringgetMimeType()
Mime type of the attachment.
public
getMimeType() : string
Return values
stringgetOutputString()
Return the report contents as a string, in this case the csv output.
public
getOutputString() : string
Return values
stringisAbsoluteUrl()
Create absolute urls for links. Generally for a handler this is always set to TRUE, but for example for 'print' it's displayed on the site so it can be relative.
public
isAbsoluteUrl() : bool
Tags
Return values
boolisAddPaging()
Use a pager, but for a handler this would be FALSE since paging is a UI element.
public
isAddPaging() : bool
Return values
boolisOutputHandlerFor()
Are we a suitable output handler based on the given form?
public
isOutputHandlerFor(CRM_Report_Form $form) : bool
The class member $form isn't set yet at this point since we don't even know if we're in play yet, so the form is a parameter.
Parameters
- $form : CRM_Report_Form
Return values
boolisPrintOnly()
Hide/show various elements in the output, but generally for a handler this is always set to TRUE.
public
isPrintOnly() : bool
Return values
boolsetForm()
Setter for $form
public
setForm(CRM_Report_Form $form) : mixed
Parameters
- $form : CRM_Report_Form