Functions used for export. More...
Go to the source code of this file.
Functions | |
writeCsvFile (&$array, $headline=TRUE, $delimiter=",", $windowsLinebreak=TRUE) | |
fetchMailAdressesNewsletter ($sponsorIds=NULL) | |
fetchMailAdresses ($sponsorIds=NULL) | |
fetchSponsorMailNewsletter ($sponsorIdList=NULL) | |
fetchContactPersonsWithMailAdresses ($sponsorIds=NULL) | |
fetchSponsorAddresses ($sponsorIds=NULL) | |
downloadCsvFile ($filename) | |
Functions used for export.
Provides a wide range of functions to fetch specific information from the database as well as functions for forming the output as .csv-file.
Definition in file functions_export.php.
downloadCsvFile | ( | $filename) |
Provides some header information for a downloadable .csv-file
string | $filename | the desired filename |
Definition at line 339 of file functions_export.php.
fetchContactPersonsWithMailAdresses | ( | $sponsorIds = NULL ) |
Fetches contact information of contact persons from the database and writes them into an array
array | $sponsorIds | [optional]
|
Definition at line 232 of file functions_export.php.
References $db, $mysqli, exitWithErrorTemplate(), fetchSponsorContactPersons(), and fetchSponsorDetails().
fetchMailAdresses | ( | $sponsorIds = NULL ) |
Fetches mail addresses from the database and writes them into an array
array | $sponsorIds | [optional]
|
Definition at line 127 of file functions_export.php.
References $db, $mysqli, exitWithErrorTemplate(), and fetchSponsorContactPersons().
fetchMailAdressesNewsletter | ( | $sponsorIds = NULL ) |
Fetches mail addresses that are used for newsletter from the database and writes them into an array
array | $sponsorIds | [optional]
|
Definition at line 82 of file functions_export.php.
References $db, $mysqli, exitWithErrorTemplate(), and fetchSponsorContactPersons().
fetchSponsorAddresses | ( | $sponsorIds = NULL ) |
Fetches addresses of sponsors from the database and writes them into an array
Function is used in export_addresses
array | $sponsorIds | [optional]
|
Definition at line 289 of file functions_export.php.
References $db, $mysqli, exitWithErrorTemplate(), and fetchSponsorDetails().
fetchSponsorMailNewsletter | ( | $sponsorIdList = NULL ) |
Fetches contact information of contact persons from the database to be used for newsletter and writes them into an array
array | $sponsorIdList | [optional]
|
Definition at line 172 of file functions_export.php.
References $db, $mysqli, exitWithErrorTemplate(), fetchSponsorContactPersons(), and fetchSponsorDetails().
writeCsvFile | ( | & | $array, |
$headline = TRUE , |
|||
$delimiter = "," , |
|||
$windowsLinebreak = TRUE |
|||
) |
Writes the content of the array to a .csv-file in php://output
array | $array | an array to write down to the .csv-file |
boolean | $headline | [optional]
|
string | $delimiter | [optional] the delimiter that should be used for the .csv-file
|
boolean | $windowsLinebreak | [optional]
|
Definition at line 37 of file functions_export.php.
References isUserLoggedIn().