This file holds some of the functions used for (non-)permanent delete. More...
Go to the source code of this file.
Functions | |
deleteSponsorCar ($sponsorCarId) | |
deleteSponsor ($sponsorId) | |
deleteSponsorPermanently ($sponsorId) | |
deleteSponsorCarPermanently ($cars=NULL, $carId=NULL) | |
fetchAllDeletedSponsorCarsForSponsor ($sponsorId, $fetchTimestamp=FALSE) | |
fetchDeletedSponsorCars ($sponsorId, $fetchTimestamp=FALSE) | |
fetchAllDeletedSponsors () | |
isSponsorDeleted ($sponsorId) | |
fetchAllSponsorsWithDeletedCars () | |
This file holds some of the functions used for (non-)permanent delete.
This script holds functions to delete sponsors and sponsorcars. This covers non permanent delete functions as well as functions capable of deleting the given sponsor respectively sponsorcar and all of its stored backup- entries from the database. Due to the power of these functions most of them realize a hardcoded access-controll.
This file is linked with the other funcions via the inc/common.php and it needs lots of globals defined in inc/common.php or its includes.
Definition in file functions_delete.php.
deleteSponsor | ( | $sponsorId) |
Delete a sponsor and all its related information from the normal database tables.
integer | $sponsorId |
Definition at line 118 of file functions_delete.php.
References $db, $mysqli, deleteSponsorCar(), deleteSponsorContactPerson(), deleteSponsorProductionFacility(), fetchSponsorCarDetails(), fetchSponsorContactPersons(), fetchSponsorProductionFacilities(), isSponsorEditSectionLocked(), isUserLoggedIn(), lockSponsorEditSection(), and unlockSponsorEditSection().
deleteSponsorCar | ( | $sponsorCarId) |
Deletes a sponsor car from the database
integer | $sponsorCarId | the id of the sponsor car |
Definition at line 32 of file functions_delete.php.
References $db, $mysqli, deleteSponsorCarAttachment(), deleteSponsorCarEvent(), deleteSponsorCarFinancialDonation(), deleteSponsorCarMaterialDonation(), deleteSponsorCarProducedPart(), fetchSponsorCarAttachments(), fetchSponsorCarDetails(), fetchSponsorCarEvents(), fetchSponsorCarMaterialDonation(), fetchSponsorCarProducedParts(), and isUserLoggedIn().
Referenced by deleteSponsor().
deleteSponsorCarPermanently | ( | $cars = NULL , |
|
$carId = NULL |
|||
) |
Deletes a sponsor car and it's associated information from the backup-tables
array | $cars | array with the key 'id' which should hold the sponsorcar id |
integer | $carId |
Definition at line 295 of file functions_delete.php.
References $dbBackup, $mysqli, ABS_PATH, and isUserAdministrator().
Referenced by deleteSponsorPermanently().
deleteSponsorPermanently | ( | $sponsorId) |
This function deletes the backup entries of a sponsor completly und permanently.
integer | $sponsorId |
Definition at line 206 of file functions_delete.php.
References $dbBackup, $mysqli, ABS_PATH, deleteSponsorCarPermanently(), fetchAllDeletedSponsorCarsForSponsor(), isSponsorDeleted(), and isUserRoot().
fetchAllDeletedSponsorCarsForSponsor | ( | $sponsorId, | |
$fetchTimestamp = FALSE |
|||
) |
Fetches a list of all deleted sponsorcars that belong to a sponsor
integer | $sponsorId | id of the sponsor |
boolean | $fetchTimestamp |
|
Definition at line 406 of file functions_delete.php.
References $dbBackup, $mysqli, and fetchUsername().
Referenced by deleteSponsorPermanently().
fetchAllDeletedSponsors | ( | ) |
Retrieves a list of all deleted sponsors from the backup tables
Definition at line 513 of file functions_delete.php.
References $dbBackup, $mysqli, and fetchUsername().
fetchAllSponsorsWithDeletedCars | ( | ) |
Fetches a list of all non deleted sponsors with deleted sponsorcars
Definition at line 596 of file functions_delete.php.
fetchDeletedSponsorCars | ( | $sponsorId, | |
$fetchTimestamp = FALSE |
|||
) |
Fetches a list of deleted sponsorcars with their last known name that belong to a sponsor
integer | $sponsorId | id of the sponsor |
boolean | $fetchTimestamp |
|
Definition at line 458 of file functions_delete.php.
References $dbBackup, $mysqli, and fetchUsername().
isSponsorDeleted | ( | $sponsorId) |
Checks if a sponsor with a given id has been deleted
integer | $sponsorId | the id of the sponsor |
Definition at line 568 of file functions_delete.php.
References $dbBackup, and $mysqli.
Referenced by deleteSponsorPermanently().