$pdo
-$pdo : \PDO-
- - -
From a22425e8c781c1b5e8a3707ea67736673d6bc797 Mon Sep 17 00:00:00 2001 From: Camil Staps Date: Sun, 15 Feb 2015 10:15:59 +0100 Subject: Updated makefile, removed docs (users can compile it themselves if they want) --- docs/classes/contact.html | 1365 --------------------------------------------- 1 file changed, 1365 deletions(-) delete mode 100644 docs/classes/contact.html (limited to 'docs/classes/contact.html') diff --git a/docs/classes/contact.html b/docs/classes/contact.html deleted file mode 100644 index f0f8cd6..0000000 --- a/docs/classes/contact.html +++ /dev/null @@ -1,1365 +0,0 @@ - - -
- - -An interface to the contact table in the database
- - - -__construct(\PDO $pdo, integer $id)-
Create a new instance
- - -\PDO | -$pdo | -The PDO class, to access the database |
-
integer | -$id | -The id of the contact to fetch |
-
If something went wrong with the database
If the contact could not be found
getClient() : \client-
Get the client that this contact is linked to
- - - - -The client
- -setEmail(string $email) : boolean
- Set the email of the contact
- - -string | -The new email for the contact |
-
If something went wrong with the database
True on succes, false on failure
- -setAddress(string $address) : boolean
- Set the first address line of the contact
- - -string | -$address | -The new address for the contact |
-
If something went wrong with the database
True on succes, false on failure
- -setAddress_2(string $address_2) : boolean
- Set the second address line of the contact
- - -string | -$address_2 | -The new address for the contact |
-
If something went wrong with the database
True on succes, false on failure
- -setPostalCode( $postal_code) : boolean
- Set the postal code of the contact
- - -- | $postal_code | -string The new postal code for the contact |
-
If something went wrong with the database
True on succes, false on failure
- -setCountry(string $country) : boolean
- Set the country of the contact
- - -string | -$country | -The new country for the contact |
-
If something went wrong with the database
True on succes, false on failure
- -setLanguage(string $language) : boolean
- Set the language of the contact
- - -string | -$language | -The new language for the contact |
-
If something went wrong with the database
True on succes, false on failure
- -delete() : boolean-
Remove this contact from the database
-If this doesn't succeed (i.e. false is returned), that means the contact was removed manually or by another instance of this class
- - -If something went wrong with the database
True on success, false on failure
- -createOffer() : \offer-
Make a new offer for this contact
- - - -If something went wrong with the database
If there was a problem with the input
A new instance of the offer class containing the new offer
- -