Sponsorenverwaltung - Team StarCraft e.V.
 All Data Structures Files Functions Variables
functions_sponsoring.php File Reference

Holds most of the functions used for sponsormanagement. More...

Go to the source code of this file.

Functions

 fetchAllSponsors ()
 
 fetchSponsorDetails ($sponsorId, $includingLastEdit=TRUE)
 
 fetchSponsorLatestEditData ($sponsorId)
 
 fetchSponsorEditDataForEditSections ($sponsorId, $cnt)
 
 fetchSponsorProductionFacilities ($sponsorId)
 
 fetchSponsorContactPersons ($sponsorId)
 
 fetchContactPersonDetailsForVCard ($contactPersonId)
 
 contactPersonExists ($contactPersonId)
 
 fetchSponsorCarNames ($sponsorId)
 
 fetchPossibleNewSponsorCars ($sponsorId)
 
 updateSponsorDetails ($sponsorArray)
 
 deleteSponsorProductionFacility ($sponsorProductionFacilityId, $updateLockUserIdBefore=FALSE)
 
 updateSponsorProductionFacilities ($sponsorProductionFacilities)
 
 addSponsorProductionFacility ($sponsorProductionFacility)
 
 deleteSponsorContactPerson ($contactPersonId, $updateLockUserIdBefore=FALSE)
 
 updateSponsorContactPersons ($sponsorContactPersons)
 
 addSponsorContactPerson ($sponsorContactPerson)
 
 addSponsor ($sponsor)
 
 fetchSponsorCarDetails ($sponsorId, $sponsorCarId=null)
 
 fetchSponsorCarEvents ($sponsorCarId)
 
 fetchSponsorCarFinancialDonations ($sponsorCarId)
 
 fetchSponsorCarMaterialDonation ($sponsorCarId)
 
 fetchSponsorCarProducedParts ($sponsorCarId)
 
 fetchSponsorCarAttachments ($sponsorCarId)
 
 updateSponsorCarDetails ($sponsorCar)
 
 addSponsorCar ($carId, $sponsorId)
 
 updateSponsorCarEvents ($events)
 
 addSponsorCarEvent ($event)
 
 deleteSponsorCarEvent ($eventId)
 
 updateSponsorCarFinancialDonations ($financialDonations)
 
 addSponsorCarFinancialDonation ($financialDonation)
 
 deleteSponsorCarFinancialDonation ($financialDonationId)
 
 updateSponsorCarMaterialDonations ($materialDonations)
 
 addSponsorCarMaterialDonation ($materialDonation)
 
 deleteSponsorCarMaterialDonation ($materialDonationId)
 
 updateSponsorCarProducedParts ($producedParts)
 
 addSponsorCarProducedPart ($producedPart)
 
 deleteSponsorCarProducedPart ($producedPartId)
 
 updateSponsorCarAttachments ($attachments)
 
 addSponsorCarAttachment ($attachment)
 
 deleteSponsorCarAttachment ($attachmentId)
 
 fetchAllCars ()
 
 fetchAllProductionFacilities ()
 
 fetchAllStatus ()
 
 fetchAllCategories ()
 
 fetchProductionFacilityDetails ($productionFacilityId)
 
 fetchStatusDetails ($statusId)
 
 fetchCategoryDetails ($categoryId)
 
 fetchCarDetails ($carId)
 
 addProductionFacility ($name)
 
 addStatus ($name)
 
 addCategory ($name)
 
 addCar ($name)
 
 updateProductionFacility ($name, $id)
 
 updateStatus ($name, $id)
 
 updateCategory ($name, $id)
 
 updateCar ($name, $id)
 
 deleteProductionFacility ($id)
 
 deleteStatus ($id)
 
 deleteCategory ($id)
 
 deleteCar ($id)
 

Variables

const EDIT_SECTION_LOCK_DURATION 300
 editsection locktime in seconds (35 ≤ x ≤ inf) More...
 
const NUMBER_OF_CHANGES_SHOWN_PER_EDIT_SECTION 5
 maximal number of changes that are shown when the user click 'Verlauf anzeigen' More...
 

Detailed Description

Holds most of the functions used for sponsormanagement.

This file is one of the core-files of the whole package. It provides a huge number of functions to manipulate sponsors, sponsorcars and other persistent data. The manipulation include adding, deleting, updating and managing data in a lot of ways. Please consider reading the documentation of a single function if you want to know more about the functionalities provided by this script-file.

This file is linked with the other functions via inc/common.php.

Version
1.0.0
Author
Daniel Seichter
Alexander Vorndran
Joachim Wagner
Date
02.07.2013

Definition in file functions_sponsoring.php.

Function Documentation

addCar (   $name)

Adds a new car (dropdown fields)

Parameters
string$namename of the car
Returns
boolean FALSE if an error occured
Author
Joachim Wagner

Definition at line 1788 of file functions_sponsoring.php.

References $db, and $mysqli.

addCategory (   $name)

Adds a new category (dropdown fields)

Parameters
string$namename of the category
Returns
boolean FALSE if an error occured
Author
Joachim Wagner

Definition at line 1769 of file functions_sponsoring.php.

References $db, and $mysqli.

addProductionFacility (   $name)

Adds a new production facility (dropdown fields)

Parameters
string$namename of the production facility
Returns
boolean FALSE if an error occured
Author
Joachim Wagner

Definition at line 1731 of file functions_sponsoring.php.

References $db, and $mysqli.

addSponsor (   $sponsor)

Adds a new sponsor

Parameters
array$sponsordetails of the sponsor
Returns
mixed id of the new sponsor FALSE if an error occured
Author
Daniel Seichter

Definition at line 781 of file functions_sponsoring.php.

References $db, and $mysqli.

addSponsorCar (   $carId,
  $sponsorId 
)

Adds a new sponsor car

Parameters
integer$carIdid of the car (used to assign car name)
integer$sponsorIdid of the sponsor
Returns
mixed
  • id of the new sponsor car
  • FALSE if an error occured
Author
Daniel Seichter

Definition at line 1079 of file functions_sponsoring.php.

References $db, and $mysqli.

addSponsorCarAttachment (   $attachment)

Adds a new attachment

Parameters
array$attachmentdetails of the attachment including the sponsor car id
Returns
mixed
  • id of the new attachment
  • FALSE if an error occured
Author
Daniel Seichter

Definition at line 1458 of file functions_sponsoring.php.

References $db, and $mysqli.

addSponsorCarEvent (   $event)

Adds a new event

Parameters
array$eventdetails of the event including the sponsor car id
Returns
mixed
  • id of the new event
  • FALSE if an error occured
Author
Daniel Seichter

Definition at line 1129 of file functions_sponsoring.php.

References $db, and $mysqli.

addSponsorCarFinancialDonation (   $financialDonation)

Adds a new financial donation

Parameters
array$financialDonationdetails of the financial donation including the sponsor car id
Returns
mixed
  • id of the new financial donation
  • FALSE if an error occured
Author
Daniel Seichter

Definition at line 1210 of file functions_sponsoring.php.

References $db, and $mysqli.

addSponsorCarMaterialDonation (   $materialDonation)

Adds a new material donation

Parameters
array$materialDonationdetails of the material donation including the sponsor car id
Returns
mixed
  • id of the new material donation
  • FALSE if an error occured
Author
Daniel Seichter

Definition at line 1293 of file functions_sponsoring.php.

References $db, and $mysqli.

addSponsorCarProducedPart (   $producedPart)

Adds a new produced part

Parameters
array$producedPartdetails of the produced part including the sponsor car id
Returns
mixed
  • id of the new produced part
  • FALSE if an error occured
Author
Daniel Seichter

Definition at line 1376 of file functions_sponsoring.php.

References $db, and $mysqli.

addSponsorContactPerson (   $sponsorContactPerson)

Adds a new contact person

Parameters
array$sponsorContactPersondetails of the contact person including the sponsor id
Returns
boolean FALSE if an error occured
Author
Daniel Seichter

Definition at line 754 of file functions_sponsoring.php.

References $db, and $mysqli.

addSponsorProductionFacility (   $sponsorProductionFacility)

Adds a new production facility

Parameters
array$sponsorProductionFacilitydetails of the production facility including the sponsor id
Returns
boolean FALSE if an error occured
Author
Daniel Seichter

Definition at line 661 of file functions_sponsoring.php.

References $db, and $mysqli.

addStatus (   $name)

Adds a new status (dropdown fields)

Parameters
string$namename of the status
Returns
boolean FALSE if an error occured
Author
Joachim Wagner

Definition at line 1750 of file functions_sponsoring.php.

References $db, and $mysqli.

contactPersonExists (   $contactPersonId)

Checks if a contact person exists

Parameters
integer$contactPersonIdid of a contact person
Returns
boolean TRUE if contact person exists, else FALSE
Author
Alexander Vorndran

Definition at line 474 of file functions_sponsoring.php.

References $db, and $mysqli.

deleteCar (   $id)

Deletes a car (dropdown fields)

Parameters
integer$idid of the car
Returns
boolean FALSE if it is still used or an error occured
Author
Joachim Wagner
Daniel Seichter

Definition at line 1991 of file functions_sponsoring.php.

References $db, and $mysqli.

deleteCategory (   $id)

Deletes a category (dropdown fields)

Parameters
integer$idid of the category
Returns
boolean FALSE if it is still used or an error occured
Author
Joachim Wagner
Daniel Seichter

Definition at line 1958 of file functions_sponsoring.php.

References $db, and $mysqli.

deleteProductionFacility (   $id)

Deletes a production facility (dropdown fields)

Parameters
integer$idid of the production facility
Returns
boolean FALSE if it is still used or an error occured
Author
Joachim Wagner
Daniel Seichter

Definition at line 1892 of file functions_sponsoring.php.

References $db, and $mysqli.

deleteSponsorCarAttachment (   $attachmentId)

Deletes an attachment

Parameters
integer$attachmentIdid of the attachment
Returns
boolean FALSE if an error occured
Author
Daniel Seichter

Definition at line 1479 of file functions_sponsoring.php.

References $db, and $mysqli.

Referenced by deleteSponsorCar().

+ Here is the caller graph for this function:

deleteSponsorCarEvent (   $eventId)

Deletes an event

Parameters
integer$eventIdid of the event
Returns
boolean FALSE if an error occured
Author
Daniel Seichter

Definition at line 1150 of file functions_sponsoring.php.

References $db, and $mysqli.

Referenced by deleteSponsorCar().

+ Here is the caller graph for this function:

deleteSponsorCarFinancialDonation (   $financialDonationId)

Deletes a financial donation

Parameters
integer$financialDonationIdid of the financial donation
Returns
boolean FALSE if an error occured
Author
Daniel Seichter

Definition at line 1231 of file functions_sponsoring.php.

References $db, and $mysqli.

Referenced by deleteSponsorCar().

+ Here is the caller graph for this function:

deleteSponsorCarMaterialDonation (   $materialDonationId)

Deletes a material donation

Parameters
integer$materialDonationIdid of the material donation
Returns
boolean FALSE if an error occured
Author
Daniel Seichter

Definition at line 1315 of file functions_sponsoring.php.

References $db, and $mysqli.

Referenced by deleteSponsorCar().

+ Here is the caller graph for this function:

deleteSponsorCarProducedPart (   $producedPartId)

Deletes a produced part

Parameters
integer$producedPartIdid of the produced part
Returns
boolean FALSE if an error occured
Author
Daniel Seichter

Definition at line 1398 of file functions_sponsoring.php.

References $db, and $mysqli.

Referenced by deleteSponsorCar().

+ Here is the caller graph for this function:

deleteSponsorContactPerson (   $contactPersonId,
  $updateLockUserIdBefore = FALSE 
)

Deletes a contact person

Parameters
integer$contactPersonIdid of the contact person
boolean$updateLockUserIdBefore[optional]
  • update lock user id before delete
Returns
boolean FALSE if an error occured
Author
Daniel Seichter

Definition at line 684 of file functions_sponsoring.php.

References $db, and $mysqli.

Referenced by deleteSponsor().

+ Here is the caller graph for this function:

deleteSponsorProductionFacility (   $sponsorProductionFacilityId,
  $updateLockUserIdBefore = FALSE 
)

Deletes a production facility

Parameters
integer$sponsorProductionFacilityIdid of the production facility
boolean$updateLockUserIdBefore[optional]
  • update lock user id before delete
Returns
boolean FALSE if an error occured
Author
Daniel Seichter

Definition at line 601 of file functions_sponsoring.php.

References $db, and $mysqli.

Referenced by deleteSponsor().

+ Here is the caller graph for this function:

deleteStatus (   $id)

Deletes a status (dropdown fields)

Parameters
integer$idid of the status
Returns
boolean FALSE if it is still used or an error occured
Author
Joachim Wagner
Daniel Seichter

Definition at line 1925 of file functions_sponsoring.php.

References $db, and $mysqli.

fetchAllCars ( )

Fetches all the details of the cars (dropdown fields)

Returns
mixed
  • array containing the details of the cars
  • FALSE if an error occured
Author
Daniel Seichter
Joachim Wagner

Definition at line 1513 of file functions_sponsoring.php.

References $db, and $mysqli.

fetchAllCategories ( )

Fetches all the details of the categories (dropdown fields)

Returns
mixed
  • array containing the details of the categories
  • FALSE if an error occured
Author
Daniel Seichter
Joachim Wagner

Definition at line 1587 of file functions_sponsoring.php.

References $db, and $mysqli.

fetchAllProductionFacilities ( )

Fetches all the details of the production facilities (dropdown fields)

Returns
mixed
  • array containing the details of the cars
  • FALSE if an error occured
Author
Daniel Seichter
Joachim Wagner

Definition at line 1537 of file functions_sponsoring.php.

References $db, and $mysqli.

fetchAllSponsors ( )

Fetches all the details of the sponsors in an alphabetical order

Returns
mixed
  • array containing the details of the sponsors
  • FALSE if an error occured
Author
Daniel Seichter

Definition at line 39 of file functions_sponsoring.php.

References $db, $mysqli, and fetchSponsorLatestEditData().

+ Here is the call graph for this function:

fetchAllStatus ( )

Fetches all the details of the status (dropdown fields)

Returns
mixed
  • array containing the details of the status
  • FALSE if an error occured
Author
Daniel Seichter
Joachim Wagner

Definition at line 1562 of file functions_sponsoring.php.

References $db, and $mysqli.

fetchCarDetails (   $carId)

Fetches all the details of a car (dropdown fields)

Parameters
integer$carIdid of the car
Returns
mixed
  • array containing the details of the car
  • FALSE if an error occured
Author
Joachim Wagner

Definition at line 1703 of file functions_sponsoring.php.

References $db, and $mysqli.

fetchCategoryDetails (   $categoryId)

Fetches all the details of a category (dropdown fields)

Parameters
integer$categoryIdid of the category
Returns
mixed
  • array containing the details of the category
  • FALSE if an error occured
Author
Joachim Wagner

Definition at line 1673 of file functions_sponsoring.php.

References $db, and $mysqli.

fetchContactPersonDetailsForVCard (   $contactPersonId)

Fetches all the information needed for a vCard

Parameters
integer$contactPersonIdid of a contact person
Returns
mixed
  • array containing the information
  • FALSE if an error occured
Author
Alexander Vorndran

Definition at line 434 of file functions_sponsoring.php.

References $db, and $mysqli.

fetchPossibleNewSponsorCars (   $sponsorId)

Fetches all the cars, which are not noted in a sponsor

Parameters
integer$sponsorIdid of the sponsor
Returns
mixed
  • array containing the possible new cars
  • FALSE if an error occured
Author
Daniel Seichter

Definition at line 527 of file functions_sponsoring.php.

References $db, and $mysqli.

fetchProductionFacilityDetails (   $productionFacilityId)

Fetches all the details of a production facility (dropdown fields)

Parameters
integer$productionFacilityIdid of the production facility
Returns
mixed
  • array containing the details of the production facility
  • FALSE if an error occured
Author
Joachim Wagner

Definition at line 1613 of file functions_sponsoring.php.

References $db, and $mysqli.

fetchSponsorCarAttachments (   $sponsorCarId)

Fetches all the attachments of a sponsor car

Parameters
integer$sponsorCarIdid of the sponsor car
Returns
mixed
  • array containing the attachments of the sponsor car
  • FALSE if an error occured
Author
Daniel Seichter

Definition at line 1018 of file functions_sponsoring.php.

References $db, $filename, and $mysqli.

Referenced by deleteSponsorCar().

+ Here is the caller graph for this function:

fetchSponsorCarDetails (   $sponsorId,
  $sponsorCarId = null 
)

Fetches all the details of a sponsor car

Parameters
integer$sponsorIdid of the sponsor
integer$sponsorCarId[optional]
  • id of the sponsor car
Returns
mixed
  • array containing the details of all the sponsor cars, if sponsor id is given
  • array containing the details of one sponsor cars, if sponsor car id is given
  • FALSE if an error occured
Author
Daniel Seichter

Definition at line 817 of file functions_sponsoring.php.

References $db, and $mysqli.

Referenced by deleteSponsor(), and deleteSponsorCar().

+ Here is the caller graph for this function:

fetchSponsorCarEvents (   $sponsorCarId)

Fetches all the events of a sponsor car

Parameters
integer$sponsorCarIdid of the sponsor car
Returns
mixed
  • array containing the events of the sponsor car
  • FALSE if an error occured
Author
Daniel Seichter

Definition at line 894 of file functions_sponsoring.php.

References $db, and $mysqli.

Referenced by deleteSponsorCar().

+ Here is the caller graph for this function:

fetchSponsorCarFinancialDonations (   $sponsorCarId)

Fetches all the financial donations of a sponsor car

Parameters
integer$sponsorCarIdid of the sponsor car
Returns
mixed
  • array containing the financial donations of the sponsor car
  • FALSE if an error occured
Author
Daniel Seichter

Definition at line 924 of file functions_sponsoring.php.

References $db, and $mysqli.

fetchSponsorCarMaterialDonation (   $sponsorCarId)

Fetches all the material donations of a sponsor car

Parameters
integer$sponsorCarIdid of the sponsor car
Returns
mixed
  • array containing the material donations of the sponsor car
  • FALSE if an error occured
Author
Daniel Seichter

Definition at line 954 of file functions_sponsoring.php.

References $db, and $mysqli.

Referenced by deleteSponsorCar().

+ Here is the caller graph for this function:

fetchSponsorCarNames (   $sponsorId)

Fetches all the car names of a sponsor

Parameters
integer$sponsorIdid of the sponsor
Returns
mixed
  • array containing the car names
  • FALSE if an error occured
Author
Daniel Seichter

Definition at line 498 of file functions_sponsoring.php.

References $db, and $mysqli.

fetchSponsorCarProducedParts (   $sponsorCarId)

Fetches all the produced parts of a sponsor car

Parameters
integer$sponsorCarIdid of the sponsor car
Returns
mixed
  • array containing the produced parts of the sponsor car
  • FALSE if an error occured
Author
Daniel Seichter

Definition at line 986 of file functions_sponsoring.php.

References $db, and $mysqli.

Referenced by deleteSponsorCar().

+ Here is the caller graph for this function:

fetchSponsorContactPersons (   $sponsorId)

Fetches all the contact persons of a sponsor

Parameters
integer$sponsorIdid of the sponsor
Returns
mixed
  • array containing the contact persons
  • FALSE if an error occured
Author
Daniel Seichter

Definition at line 394 of file functions_sponsoring.php.

References $db, and $mysqli.

Referenced by deleteSponsor(), fetchContactPersonsWithMailAdresses(), fetchMailAdresses(), fetchMailAdressesNewsletter(), and fetchSponsorMailNewsletter().

+ Here is the caller graph for this function:

fetchSponsorDetails (   $sponsorId,
  $includingLastEdit = TRUE 
)

Fetches all the details of a sponsor

Parameters
integer$sponsorIdid of the sponsor
boolean$includingLastEdit[optional]
  • including last edit data of the sponsor
  • Default: TRUE
Returns
mixed
  • array containing the details of the given sponsor
  • FALSE if an error occured
Author
Daniel Seichter

Definition at line 99 of file functions_sponsoring.php.

References $db, $mysqli, and fetchSponsorLatestEditData().

Referenced by fetchContactPersonsWithMailAdresses(), fetchSponsorAddresses(), and fetchSponsorMailNewsletter().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

fetchSponsorEditDataForEditSections (   $sponsorId,
  $cnt 
)

Fetches the a list of modification details of a sponsor (each edit section separately)

Parameters
integer$sponsorIdid of the sponsor
integer$cntnumber of entries in the list for each edit section
Returns
mixed
  • array containing timestamp, user id and user name for each edit section
  • FALSE if an error occured
Author
Daniel Seichter

Definition at line 243 of file functions_sponsoring.php.

References $db, $dbBackup, $mysqli, and fetchUsername().

+ Here is the call graph for this function:

fetchSponsorLatestEditData (   $sponsorId)

Fetches the details a sponsor was last modified (all edit sections)

Parameters
integer$sponsorIdid of the sponsor
Returns
mixed
  • array containing timestamp, user id and user name
  • FALSE if an error occured
Author
Daniel Seichter

Definition at line 158 of file functions_sponsoring.php.

References $db, $dbBackup, $mysqli, and fetchUsername().

Referenced by fetchAllSponsors(), fetchSponsorDetails(), and searchDatabase().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

fetchSponsorProductionFacilities (   $sponsorId)

Fetches all the production facilities of a sponsor

Parameters
integer$sponsorIdid of the sponsor
Returns
mixed
  • array containing the production facilities
  • FALSE if an error occured
Author
Daniel Seichter

Definition at line 362 of file functions_sponsoring.php.

References $db, and $mysqli.

Referenced by deleteSponsor().

+ Here is the caller graph for this function:

fetchStatusDetails (   $statusId)

Fetches all the details of a status (dropdown fields)

Parameters
integer$statusIdid of the status
Returns
mixed
  • array containing the details of the status
  • FALSE if an error occured
Author
Joachim Wagner

Definition at line 1643 of file functions_sponsoring.php.

References $db, and $mysqli.

updateCar (   $name,
  $id 
)

Updates a car (dropdown fields)

Parameters
string$namenew name of the car
integer$idid of the car to update
Returns
boolean FALSE if an error occured
Author
Joachim Wagner

Definition at line 1871 of file functions_sponsoring.php.

References $db, and $mysqli.

updateCategory (   $name,
  $id 
)

Updates a catagory (dropdown fields)

Parameters
string$namenew name of the catagory
integer$idid of the catagory to update
Returns
boolean FALSE if an error occured
Author
Joachim Wagner

Definition at line 1850 of file functions_sponsoring.php.

References $db, and $mysqli.

updateProductionFacility (   $name,
  $id 
)

Updates a production facility (dropdown fields)

Parameters
string$namenew name of the production facility
integer$idid of the production facility to update
Returns
boolean FALSE if an error occured
Author
Joachim Wagner

Definition at line 1808 of file functions_sponsoring.php.

References $db, and $mysqli.

updateSponsorCarAttachments (   $attachments)

Updates all the attachments of a sponsor car

Parameters
array$attachmentsnew details of the attachments
Returns
boolean FALSE if an error occured
Author
Daniel Seichter

Definition at line 1427 of file functions_sponsoring.php.

References $db, and $mysqli.

updateSponsorCarDetails (   $sponsorCar)

Updates all the details of a sponsor car

Parameters
array$sponsorCarnew sponsor car details including the sponsor car id
Returns
boolean FALSE if an error occured
Author
Daniel Seichter

Definition at line 1048 of file functions_sponsoring.php.

References $db, and $mysqli.

updateSponsorCarEvents (   $events)

Updates all the events of a sponsor car

Parameters
array$eventsnew details of the events
Returns
boolean FALSE if an error occured
Author
Daniel Seichter

Definition at line 1097 of file functions_sponsoring.php.

References $db, and $mysqli.

updateSponsorCarFinancialDonations (   $financialDonations)

Updates all the financial donations of a sponsor car

Parameters
array$financialDonationsnew details of the financial donations
Returns
boolean FALSE if an error occured
Author
Daniel Seichter

Definition at line 1178 of file functions_sponsoring.php.

References $db, and $mysqli.

updateSponsorCarMaterialDonations (   $materialDonations)

Updates all the material donations of a sponsor car

Parameters
array$materialDonationsnew details of the material donations
Returns
boolean FALSE if an error occured
Author
Daniel Seichter

Definition at line 1259 of file functions_sponsoring.php.

References $db, and $mysqli.

updateSponsorCarProducedParts (   $producedParts)

Updates all the produced parts of a sponsor car

Parameters
array$producedPartsnew details of the produced parts
Returns
boolean FALSE if an error occured
Author
Daniel Seichter

Definition at line 1343 of file functions_sponsoring.php.

References $db, and $mysqli.

updateSponsorContactPersons (   $sponsorContactPersons)

Updates all the contact persons of a sponsor

Parameters
array$sponsorContactPersonsnew details of the contact persons
Returns
boolean FALSE if an error occured
Author
Daniel Seichter

Definition at line 714 of file functions_sponsoring.php.

References $db, and $mysqli.

updateSponsorDetails (   $sponsorArray)

Updates all the details of a sponsor

Parameters
array$sponsorArraynew sponsor details including the sponsor id
Returns
boolean FALSE if an error occured
Author
Daniel Seichter

Definition at line 554 of file functions_sponsoring.php.

References $db, and $mysqli.

updateSponsorProductionFacilities (   $sponsorProductionFacilities)

Updates all the production facilities of a sponsor

Parameters
array$sponsorProductionFacilitiesnew details of the production facilities
Returns
boolean FALSE if an error occured
Author
Daniel Seichter

Definition at line 631 of file functions_sponsoring.php.

References $db, and $mysqli.

updateStatus (   $name,
  $id 
)

Updates a status (dropdown fields)

Parameters
string$namenew name of the status
integer$idid of the status to update
Returns
boolean FALSE if an error occured
Author
Joachim Wagner

Definition at line 1829 of file functions_sponsoring.php.

References $db, and $mysqli.

Variable Documentation

const EDIT_SECTION_LOCK_DURATION 300

editsection locktime in seconds (35 ≤ x ≤ inf)

Definition at line 27 of file functions_sponsoring.php.

Referenced by lockCar(), lockCategory(), lockProductionFacility(), lockSponsorEditSection(), lockStatus(), and renewSponsorEditSectionLock().

const NUMBER_OF_CHANGES_SHOWN_PER_EDIT_SECTION 5

maximal number of changes that are shown when the user click 'Verlauf anzeigen'

Definition at line 29 of file functions_sponsoring.php.