Documentation

CRM_Report_OutputHandler_Csv extends OutputHandlerBase
in package
implements OutputHandlerInterface

CSV Report Output Handler

Table of Contents

Interfaces

OutputHandlerInterface

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

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
string

getFileName()

Return the download filename. This should be the "clean" name, not a munged temporary filename.

public getFileName() : string
Return values
string

getMailBody()

Return the html body of the email.

public getMailBody() : string
Return values
string

getMimeType()

Mime type of the attachment.

public getMimeType() : string
Return values
string

getOutputString()

Return the report contents as a string, in this case the csv output.

public getOutputString() : string
Return values
string

isAbsoluteUrl()

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
todo

Couldn't it just always be absolute?

Return values
bool

isAddPaging()

Use a pager, but for a handler this would be FALSE since paging is a UI element.

public isAddPaging() : bool
Return values
bool

isOutputHandlerFor()

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
bool

isPrintOnly()

Hide/show various elements in the output, but generally for a handler this is always set to TRUE.

public isPrintOnly() : bool
Return values
bool

        
On this page

Search results