$pdo
+$pdo : \PDO+
+ + +
From 29955216d69ca08b69afe1ace71151839049c045 Mon Sep 17 00:00:00 2001 From: Camil Staps Date: Sat, 7 Feb 2015 21:06:17 +0100 Subject: Added documentation --- docs/classes/contact.html | 1365 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 1365 insertions(+) create mode 100644 docs/classes/contact.html (limited to 'docs/classes/contact.html') diff --git a/docs/classes/contact.html b/docs/classes/contact.html new file mode 100644 index 0000000..09ba426 --- /dev/null +++ b/docs/classes/contact.html @@ -0,0 +1,1365 @@ + + +
+ + +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
+ +