public function exportSurveyParticipants($form, $format = 'php', $event = null)
    {
        $data = array(
                'token' => $this->apiToken,
                'content' => 'participantList',
                'returnFormat' => 'json'
        );
        
        #----------------------------------------------
        # Process arguments
        #----------------------------------------------
        $legalFormats = array('csv', 'json', 'php', 'xml');
        $data['format']     = $this->processFormatArgument($format, $legalFormats);
        $data['instrument'] = $this->ProcessFormArgument($form, $required = true);
        $data['event']      = $this->ProcessEventArgument($event);
        
        $surveyParticipants = $this->connection->callWithArray($data);
        $surveyParticipants = $this->processExportResult($surveyParticipants, $format);
        
        return $surveyParticipants;
    }
public function exportSurveyParticipants($form, $format = 'php', $event = null)
    {
        $data = array(
                'token' => $this->apiToken,
                'content' => 'participantList',
                'returnFormat' => 'json'
        );
        
        #----------------------------------------------
        # Process arguments
        #----------------------------------------------
        $legalFormats = array('csv', 'json', 'php', 'xml');
        $data['format']     = $this->processFormatArgument($format, $legalFormats);
        $data['instrument'] = $this->ProcessFormArgument($form, $required = true);
        $data['event']      = $this->ProcessEventArgument($event);
        
        $surveyParticipants = $this->connection->callWithArray($data);
        $surveyParticipants = $this->processExportResult($surveyParticipants, $format);
        
        return $surveyParticipants;
    }
public function exportSurveyParticipants ( $ form , $ format = 'php' , $ event = null ) { $ data = array ( 'token' => $ this -> apiToken , 'content' => 'participantList' , 'returnFormat' => 'json' ) ; #---------------------------------------------- # Process arguments #---------------------------------------------- $ legalFormats = array ( 'csv' , 'json' , 'php' , 'xml' ) ; $ data [ 'format' ] = $ this -> processFormatArgument ( $ format , $ legalFormats ) ; $ data [ 'instrument' ] = $ this -> ProcessFormArgument ( $ form , $ required = true ) ; $ data [ 'event' ] = $ this -> ProcessEventArgument ( $ event ) ; $ surveyParticipants = $ this -> connection -> callWithArray ( $ data ) ; $ surveyParticipants = $ this -> processExportResult ( $ surveyParticipants , $ format ) ; return $ surveyParticipants ; }
Exports the list of survey participants for the specified form and, for
longitudinal studies, event.

@param string $form the form for which the participants should be exported.
@param string $format output data format.
<ul>
<li> 'php' - [default] array of maps of values</li>
<li> 'csv' - string of CSV (comma-separated values)</li>
<li> 'json' - string of JSON encoded values</li>
<li> 'xml' - string of XML encoded data</li>
</ul>
@param string $event the event name for which survey participants should be
exported.

@return mixed for the 'php' format, an array of arrays of participant
information is returned, for all other formats, the data is returned
in the specified format as a string.
Exports the list of survey participants for the specified form and for longitudinal studies event .