IcmsPersistableExport IcmsPersistableExport(
&$objectHandler, [object
$criteria = null], [array
$fields = false], [string
$filename = false], [string
$filepath = false], [string
$format = 'csv'], [array
$options = false], object
$objectHandler
)
|
|
Constructor
Parameters:
|
object |
$objectHandler: |
IcmsPersistableHandler handling the data we want to export |
|
object |
$criteria: |
containing the criteria of the query fetching the objects to be exported |
|
array |
$fields: |
fields to be exported. If FALSE then all fields will be exported |
|
string |
$filename: |
name of the file to be created |
|
string |
$filepath: |
path where the file will be saved |
|
string |
$format: |
format of the ouputed export. Currently only supports CSV |
|
array |
$options: |
options of the format to be exported in |
|
|
&$objectHandler: |
|
Renders the export
Parameters:
void setNotDisplayFields(
$fields
)
|
|
Parameters:
void setOuptutMethods(
$outputMethods
)
|
|
Set an array contaning the alternate methods to use instead of the default getVar()
$outputMethods array example : 'uid' => 'getUserName'...
Parameters: