LimeSurvey API - Master branch

UserParser
in package

Importing class to get users from a CSV file

Tags
author

LimeSurvey GmbH info@limesurvey.org

license

GPL3.0

Table of Contents

Methods

getDataFromCSV()  : array<string|int, mixed>
reads an uploaded csv file
getDataFromJSON()  : array<string|int, mixed>
reads an uploaded json file
detectCsvDelimiter()  : string
Function to get the delimiter of a Csv file

Methods

getDataFromCSV()

reads an uploaded csv file

public static getDataFromCSV(array<string|int, mixed> $FILES) : array<string|int, mixed>
Parameters
$FILES : array<string|int, mixed>

PHP Global $_FILES

Return values
array<string|int, mixed>

Liste der hinzuzufügenden Nutzer

getDataFromJSON()

reads an uploaded json file

public static getDataFromJSON(array<string|int, mixed> $FILES) : array<string|int, mixed>
Parameters
$FILES : array<string|int, mixed>

PHP Global $_FILES

Return values
array<string|int, mixed>

List of users to create

detectCsvDelimiter()

Function to get the delimiter of a Csv file

private static detectCsvDelimiter(string $csvFile) : string
Parameters
$csvFile : string

Path to the CSV file

Return values
string

Delimiter


        
On this page

Search results