My Project
|
Public Member Functions | |
Donor ($columns) | |
setDonorID ($donorID) | |
setCity ($city) | |
setState ($state) | |
setZip ($zip) | |
setPhone ($phone) | |
setFax ($fax) | |
setEmail ($email) | |
getDonorID () | |
getStreet () | |
getCity () | |
getStateName () | |
getZip () | |
getPhone () | |
getFax () | |
getEmail () | |
printAllAttributes () |
.php Models persistent data collected for donors.
Copyright 2012 by Scott Adie and Matt Vartianian. This program is part of the DONATE project. DONATE is free software. It comes with absolutely no warranty. You can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation (see <http://www.gnu.org/licenses/ for more information).
Donor | ( | $ | columns | ) |
Creates a Donor object and initiazes it iwth data from $columns array. donorID has null value. Object data can be used in an INSERT INTO statment, for which an auto-increment ID value is generated.
$columns | Array with values for all the object's instance variables except for donorID. |
getCity | ( | ) |
getDonorID | ( | ) |
getEmail | ( | ) |
getFax | ( | ) |
getPhone | ( | ) |
getStateName | ( | ) |
getStreet | ( | ) |
getZip | ( | ) |
Returns String with names and values for all instance variables.
setCity | ( | $ | city | ) |
String | $city |
setDonorID | ( | $ | donorID | ) |
Sets donorID
int | $donorID |
setEmail | ( | $ | ) |
String |
setFax | ( | $ | fax | ) |
String | $fax |
setPhone | ( | $ | phone | ) |
String | $phone |
setState | ( | $ | state | ) |
String | $state |
setZip | ( | $ | zip | ) |
String | $zip |