public function exportUsers($format = 'php')
    {
        $data = array(
                'token' => $this->apiToken,
                'content' => 'user',
                'returnFormat' => 'json'
        );
        
        $legalFormats = array('csv', 'json', 'php', 'xml');
        $data['format'] = $this->processFormatArgument($format, $legalFormats);
        
        #---------------------------------------------------
        # Get and process users
        #---------------------------------------------------
        $users = $this->connection->callWithArray($data);
        $users = $this->processExportResult($users, $format);
        
        return $users;
    }
public function exportUsers($format = 'php')
    {
        $data = array(
                'token' => $this->apiToken,
                'content' => 'user',
                'returnFormat' => 'json'
        );
        
        $legalFormats = array('csv', 'json', 'php', 'xml');
        $data['format'] = $this->processFormatArgument($format, $legalFormats);
        
        #---------------------------------------------------
        # Get and process users
        #---------------------------------------------------
        $users = $this->connection->callWithArray($data);
        $users = $this->processExportResult($users, $format);
        
        return $users;
    }
public function exportUsers ( $ format = 'php' ) { $ data = array ( 'token' => $ this -> apiToken , 'content' => 'user' , 'returnFormat' => 'json' ) ; $ legalFormats = array ( 'csv' , 'json' , 'php' , 'xml' ) ; $ data [ 'format' ] = $ this -> processFormatArgument ( $ format , $ legalFormats ) ; #--------------------------------------------------- # Get and process users #--------------------------------------------------- $ users = $ this -> connection -> callWithArray ( $ data ) ; $ users = $ this -> processExportResult ( $ users , $ format ) ; return $ users ; }
Exports the users of the project.

@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>

@return mixed a list of users. For the 'php' format an array of associative
arrays is returned, where the keys are the field names and the values
are the field values. For all other formats, a string is returned with
the data in the specified format.
Exports the users of the project .