This class generates an Open Office text document
download and sends it to the client.
Methods
Return the given value converted for use with XML.
Xmlify(string $value, string $type) : string
InheritedStatic
The second parameter
indicates the type of xml entity. Valid values are: tag, attribute, value.
inherited_from |
\Webenq::Xmlify() |
inherited_from |
\Webenq_Download::Xmlify() |
Parameters
$value
string
$type
string
Returns
string
Class constructor
__construct(\Webenq_Model_Questionnaire $questionnaire)
Inherited
Sets the questionnaire property and calls the
init() method that must be implemented by all
downloader classes.
inherited_from |
\Webenq_Download::__construct() |
Parameters
Factory method for easily getting an instance
of the right downloader class.
factory(string $format, \Webenq_Model_Questionnaire $questionnaire)
InheritedStatic
inherited_from |
\Webenq_Download::factory() |
Parameters
$format
string
Return the given value converted for use as filename.
filename(string $value) : string
InheritedStatic
inherited_from |
\Webenq::filename() |
inherited_from |
\Webenq_Download::filename() |
Parameters
$value
string
Returns
string
getCollectionPresentationTypes()
getCollectionPresentationTypes()
InheritedStatic
inherited_from |
\Webenq::getCollectionPresentationTypes() |
inherited_from |
\Webenq_Download::getCollectionPresentationTypes() |
Returns the name of the file for download
getDownloadFilename()
Inherited
inherited_from |
\Webenq_Download::getDownloadFilename() |
getFilterInstance()
getFilterInstance($name)
InheritedStatic
inherited_from |
\Webenq::getFilterInstance() |
inherited_from |
\Webenq_Download::getFilterInstance() |
Parameters
$name
getFilters()
getFilters()
InheritedStatic
inherited_from |
\Webenq::getFilters() |
inherited_from |
\Webenq_Download::getFilters() |
Returns the MIME type of the file for download
getMimeType()
Inherited
inherited_from |
\Webenq_Download::getMimeType() |
getReportPresentationTypes()
getReportPresentationTypes()
InheritedStatic
inherited_from |
\Webenq::getReportPresentationTypes() |
inherited_from |
\Webenq_Download::getReportPresentationTypes() |
getValidatorInstance()
getValidatorInstance($name)
InheritedStatic
inherited_from |
\Webenq::getValidatorInstance() |
inherited_from |
\Webenq_Download::getValidatorInstance() |
Parameters
$name
getValidators()
getValidators()
InheritedStatic
inherited_from |
\Webenq::getValidators() |
inherited_from |
\Webenq_Download::getValidators() |
Prepares the document so that it can be send to
the client.
init() : \Webenq_Download_Ods
This method must be implemented by all downloader
classes and should prepare the document, so that
it is ready to be send to the client.
fluent |
This method is part of a fluent interface and will return the same instance |
Returns
Sends the document
send(\Zend_Controller_Response_Http $response)
Sets the headers and body using the provided
response object. And removes the temporary file
before the response is sent to the client.
Parameters
$response
\Zend_Controller_Response_Http
Manually sets the data
setData(array $data) : \Webenq_Download_Ods
Inherited
This method can be used when a questionnaire has not been provided
to the constructor, or when the provided questionnaire was empty
inherited_from |
\Webenq_Download::setData() |
fluent |
This method is part of a fluent interface and will return the same instance |
Parameters
$data
array
Multidimensional array with questionnaire data (only the first sheet)
Returns
setMaxExecutionTime()
setMaxExecutionTime($value)
InheritedStatic
inherited_from |
\Webenq::setMaxExecutionTime() |
inherited_from |
\Webenq_Download::setMaxExecutionTime() |
Parameters
$value
setMemoryLimit()
setMemoryLimit($value)
InheritedStatic
inherited_from |
\Webenq::setMemoryLimit() |
inherited_from |
\Webenq_Download::setMemoryLimit() |
Parameters
$value
Properties
$_filters : array
Inherited
The key is the system name used for identifying the filters.
The value of each entry is an array holding the keys 'name' (human
readable name), 'class' (the class to use) and (optionally) 'options'
(an array that holds the parameters to pass to the class' constructor).
inherited_from |
\Webenq::$$_filters |
inherited_from |
\Webenq_Download::$$_filters |
$_validators : array
Inherited
The key is the system name used for identifying the validators.
The value of each entry is an array holding the keys 'name' (human
readable name), 'class' (the class to use) and (optionally) 'options'
(an array that holds the parameters to pass to the class' constructor).
inherited_from |
\Webenq::$$_validators |
inherited_from |
\Webenq_Download::$$_validators |
$_data : array
Inherited
inherited_from |
\Webenq_Download::$$_data |
Constants
COLLECTION_PRESENTATION_MULTIPLESELECT_CHECKBOXES
COLLECTION_PRESENTATION_MULTIPLESELECT_CHECKBOXES
Inherited
inherited_from |
\Webenq::COLLECTION_PRESENTATION_MULTIPLESELECT_CHECKBOXES |
inherited_from |
\Webenq_Download::COLLECTION_PRESENTATION_MULTIPLESELECT_CHECKBOXES |
COLLECTION_PRESENTATION_MULTIPLESELECT_LIST
COLLECTION_PRESENTATION_MULTIPLESELECT_LIST
Inherited
inherited_from |
\Webenq::COLLECTION_PRESENTATION_MULTIPLESELECT_LIST |
inherited_from |
\Webenq_Download::COLLECTION_PRESENTATION_MULTIPLESELECT_LIST |
COLLECTION_PRESENTATION_OPEN_CURRENTDATE
COLLECTION_PRESENTATION_OPEN_CURRENTDATE
Inherited
inherited_from |
\Webenq::COLLECTION_PRESENTATION_OPEN_CURRENTDATE |
inherited_from |
\Webenq_Download::COLLECTION_PRESENTATION_OPEN_CURRENTDATE |
COLLECTION_PRESENTATION_OPEN_DATE
COLLECTION_PRESENTATION_OPEN_DATE
Inherited
inherited_from |
\Webenq::COLLECTION_PRESENTATION_OPEN_DATE |
inherited_from |
\Webenq_Download::COLLECTION_PRESENTATION_OPEN_DATE |
COLLECTION_PRESENTATION_OPEN_TEXT
COLLECTION_PRESENTATION_OPEN_TEXT
Inherited
inherited_from |
\Webenq::COLLECTION_PRESENTATION_OPEN_TEXT |
inherited_from |
\Webenq_Download::COLLECTION_PRESENTATION_OPEN_TEXT |
COLLECTION_PRESENTATION_OPEN_TEXTAREA
COLLECTION_PRESENTATION_OPEN_TEXTAREA
Inherited
inherited_from |
\Webenq::COLLECTION_PRESENTATION_OPEN_TEXTAREA |
inherited_from |
\Webenq_Download::COLLECTION_PRESENTATION_OPEN_TEXTAREA |
COLLECTION_PRESENTATION_RANGESELECT_SLIDER
COLLECTION_PRESENTATION_RANGESELECT_SLIDER
Inherited
inherited_from |
\Webenq::COLLECTION_PRESENTATION_RANGESELECT_SLIDER |
inherited_from |
\Webenq_Download::COLLECTION_PRESENTATION_RANGESELECT_SLIDER |
COLLECTION_PRESENTATION_SINGLESELECT_DROPDOWNLIST
COLLECTION_PRESENTATION_SINGLESELECT_DROPDOWNLIST
Inherited
inherited_from |
\Webenq::COLLECTION_PRESENTATION_SINGLESELECT_DROPDOWNLIST |
inherited_from |
\Webenq_Download::COLLECTION_PRESENTATION_SINGLESELECT_DROPDOWNLIST |
COLLECTION_PRESENTATION_SINGLESELECT_SLIDER
COLLECTION_PRESENTATION_SINGLESELECT_SLIDER
Inherited
inherited_from |
\Webenq::COLLECTION_PRESENTATION_SINGLESELECT_SLIDER |
inherited_from |
\Webenq_Download::COLLECTION_PRESENTATION_SINGLESELECT_SLIDER |
COLLECTION_PRESENTATION_TEXT
COLLECTION_PRESENTATION_TEXT
Inherited
inherited_from |
\Webenq::COLLECTION_PRESENTATION_TEXT |
inherited_from |
\Webenq_Download::COLLECTION_PRESENTATION_TEXT |