|
Dream Park
0.1
Gestionnaire de parking Dream Park
|
Représentation d'un client de DreamPark. More...
Public Member Functions | |
| def | __init__ |
| Contsructeur du client. More... | |
| def | maj (self, nom, prenom, cb, typeAbonnement) |
| Mise a jour du client. More... | |
| def | desabo (self) |
| Desabonne le client en le supprimant. | |
| def | prenom (self) |
| Propriete : prenom du client. | |
| def | nom (self) |
| Propriete : nom du client. | |
| def | id (self) |
| Propriete : id du client. | |
| def | cb (self) |
| Propriete : cb du client. | |
| def | abonnement (self) |
| Propriete : abonnement du client. | |
| def | __str__ (self) |
| Representation du client en chaine. | |
Représentation d'un client de DreamPark.
| def m.Client.Client.__init__ | ( | self, | |
| id, | |||
nom = None, |
|||
prenom = None, |
|||
cb = None, |
|||
typeAbonnement = None |
|||
| ) |
Contsructeur du client.
| id | Si None -> Création du client dans la bd a l'aide des autres parametres. Sinon tentative de récupération du client avec cet id dans la bd |
| nom | nom du client si creation |
| prenom | prenom du client si creation |
| cb | cb du client si creation |
| typeAbonnement | typeabonnement du client si creation |
| def m.Client.Client.maj | ( | self, | |
| nom, | |||
| prenom, | |||
| cb, | |||
| typeAbonnement | |||
| ) |
Mise a jour du client.
| nom | nouveau nom |
| prenom | nouveau prenom |
| cb | nouveau nom |
| typeAbonnement | nouveau nom |