Constructor.
initializes the contactData if the id is given
void
__construct
([integer $id = 0])
Totally destroys the contactData from database.
void
destroy
()
Gets the first address field.
string
getAddressField1
()
Gets the second address field.
string
getAddressField2
()
Gets the third address field.
string
getAddressField3
()
Gets the cellphone number.
string
getCellphone
()
Gets the city name.
string
getCity
()
Gets the company.
string
getCompany
()
Gets the country name.
string
getCountry
()
Gets the email address.
string
getEmail
()
Gets the fax number.
string
getFax
()
Gets the gender.
string
getGender
()
Gets the DB ID of the instance.
integer
getID
()
Gets the job title of the person.
string
getJobTitle
()
Gets the phone number.
string
getPhone
()
Gets the service (as an office subdivision).
string
getService
()
Gets the state name (may be abbreviated).
string
getState
()
Short hand to get values by property name
mixed
getValue
(string $property)
-
string
$property: The name of the property
Gets the zip code.
string
getZip
()
Sets the first address field.
boolean
setAddressField1
(string $newValue)
-
string
$newValue: the new address field 1
Sets the second address field.
boolean
setAddressField2
(string $newValue)
-
string
$newValue: the new address field 2
Sets the third address field.
boolean
setAddressField3
(string $newValue)
-
string
$newValue: the new address field 3
Sets the cellphone number.
boolean
setCellphone
(string $newCellphone)
-
string
$newCellphone: the new cellphone number
Sets the city name.
boolean
setCity
(string $newCity)
-
string
$newCity: the new city name
Sets the company
boolean
setCompany
(string $company)
-
string
$company: the new company
Sets the country name.
boolean
setCountry
(string $newCountry)
-
string
$newCountry: the new country
Sets the email address.
boolean
setEmail
(string $newEmail)
-
string
$newEmail: the new email address
Sets the fax number.
boolean
setFax
(string $newFax)
-
string
$newFax: the new fax number
Sets the gender
boolean
setGender
(string $gender)
-
string
$gender: the new gender
Sets the job title.
boolean
setJobTitle
(string $newJobTitle)
-
string
$newJobTitle: the job title to set
Sets the phone number.
boolean
setPhone
(string $newPhone)
-
string
$newPhone: the new phone number
Sets the service (as an office subdivision).
boolean
setService
(string $newService)
-
string
$newService: the service to set
Sets the state name (may be abbreviated).
boolean
setState
(string $newState)
-
string
$newState: the new state name
Short hand to set values by property name
boolean
setValue
(string $property, string $value)
-
string
$property: The name of the property
-
string
$value: The value to set
Sets the zip code.
boolean
setZip
(string $newZip)
-
string
$newZip: the new zip code
Writes the contactData into persistence (MySQL for now).
boolean
writeToPersistence
()
Inherited Methods
Inherited From CMS_grandFather
CMS_grandFather::autoload()
CMS_grandFather::hasError()
CMS_grandFather::log()
CMS_grandFather::PHPErrorHandler()
CMS_grandFather::raiseError()
CMS_grandFather::setDebug()
CMS_grandFather::setLog()
CMS_grandFather::_raiseError()
CMS_grandFather::__call()