My Project
Donor Class Reference

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 ()

Detailed Description

.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).

Version:
February 19, 2012
Author:
Scott Adie and Matt Vartanian
Version:
April 14th 2011
Author:
Matthew Wakim, Chris Reekie

Member Function Documentation

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.

Parameters:
$columnsArray with values for all the object's instance variables except for donorID.
getCity ( )
Returns:
String city instance variable
Returns:
int donorID instance variable
getEmail ( )
Returns:
String email instance variable
getFax ( )
Returns:
String fax instance variable
getPhone ( )
Returns:
Sring phone instance variable
Returns:
String state instance variable
getStreet ( )
Returns:
String street instance variable
getZip ( )
Returns:
String zip instance variable

Returns String with names and values for all instance variables.

Returns:
String with names and values for all instance variables.
setCity ( city)
Parameters:
String$city
setDonorID ( donorID)

Sets donorID

Parameters:
int$donorID
setEmail ( email)
Parameters:
String$email
setFax ( fax)
Parameters:
String$fax
setPhone ( phone)
Parameters:
String$phone
setState ( state)
Parameters:
String$state
setZip ( zip)
Parameters:
String$zip

The documentation for this class was generated from the following file:
 All Data Structures Files Functions