public function exportEvents($format = 'php', $arms = [])
    {
        $data = array(
                'token' => $this->apiToken,
                'content' => 'event',
                'returnFormat' => 'json'
        );
        
        #---------------------------------------
        # Process arguments
        #---------------------------------------
        $legalFormats = array('csv', 'json', 'php', 'xml');
        $data['format'] = $this->processFormatArgument($format, $legalFormats);
        $data['arms'] = $this->processArmsArgument($arms);
        
        
        #------------------------------------------------------
        # Get and process events
        #------------------------------------------------------
        $events = $this->connection->callWithArray($data);
        $events = $this->processExportResult($events, $format);
        
        return $events;
    }
public function exportEvents($format = 'php', $arms = [])
    {
        $data = array(
                'token' => $this->apiToken,
                'content' => 'event',
                'returnFormat' => 'json'
        );
        
        #---------------------------------------
        # Process arguments
        #---------------------------------------
        $legalFormats = array('csv', 'json', 'php', 'xml');
        $data['format'] = $this->processFormatArgument($format, $legalFormats);
        $data['arms'] = $this->processArmsArgument($arms);
        
        
        #------------------------------------------------------
        # Get and process events
        #------------------------------------------------------
        $events = $this->connection->callWithArray($data);
        $events = $this->processExportResult($events, $format);
        
        return $events;
    }
public function exportEvents ( $ format = 'php' , $ arms = [ ] ) { $ data = array ( 'token' => $ this -> apiToken , 'content' => 'event' , 'returnFormat' => 'json' ) ; #--------------------------------------- # Process arguments #--------------------------------------- $ legalFormats = array ( 'csv' , 'json' , 'php' , 'xml' ) ; $ data [ 'format' ] = $ this -> processFormatArgument ( $ format , $ legalFormats ) ; $ data [ 'arms' ] = $ this -> processArmsArgument ( $ arms ) ; #------------------------------------------------------ # Get and process events #------------------------------------------------------ $ events = $ this -> connection -> callWithArray ( $ data ) ; $ events = $ this -> processExportResult ( $ events , $ format ) ; return $ events ; }
Exports information about the specified events.

Example usage:
<code>
#export information about all events in CSV (Comma-Separated Values) format.
$eventInfo = $project->exportEvents('csv');

# export events in XML format for arms 1 and 2.
$eventInfo = $project->exportEvents('xml', [1, 2]);
</code>

@param string $format the format for the export.
<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 array $arms array of integers or numeric strings that are the arm numbers for
which events should be exported.
If no arms are specified, then all events will be returned.

@return array information about the specified events. Each element of the
array is an associative array with the following keys: 'event_name', 'arm_num',
'day_offset', 'offset_min', 'offset_max', 'unique_event_name', 'custom_event_label'
Exports information about the specified events .