$pdo
$pdo : \pdo
An interface to the client table in the database
getContacts() : array<mixed,\contact>
Get all contacts for this client
If something went wrong with the database
An array indexed by id of instances of the contact class
delete() : boolean
Remove this client from the database
If this doesn't succeed (i.e. false is returned), that means the client was removed manually or by another instance of this class
If something went wrong with the database
True on success, false on failure
createContact(string $name, string $email, string $address, string $address_2, string $postal_code, string $city, string $country) : \contact
Make a new contact for this client
string | $name | The name for this contact |
string | The email for this contact |
|
string | $address | The first address line of this contact (normally street and house number) |
string | $address_2 | The second address line of this contact |
string | $postal_code | The postal code for this contact |
string | $city | The city for this contact |
string | $country | The country for this contact |
If something went wrong with the database
If there was a problem with the input
A new instance of the contact class containing the new contact