Autor Beitrag
Marco D.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 2750

Windows Vista
Delphi 7, Delphi 2005 PE, PHP 4 + 5 (Notepad++), Java (Eclipse), XML, XML Schema, ABAP, ABAP OO
BeitragVerfasst: Fr 12.01.07 21:59 
Ich denke gerade über die Klasse "User" betrefflich einer Website nach.
Bis jetzt habe ich folgendes:

Methoden (Parameter habe ich weggelassen!):
- IsLoggedIn();
- Login()
- Logout()

Attribute:
- userid
- username
- language
- ip

Kann man da noch was ergänzen?

Und vor allem, wo packe ich die Routinen zum Löschen oder Sperren eines Users an? Ich würde sagen, diese gehören nicht in diese "User"-Klasse, weil es ist ja sinnlos, wenn ich ein neues Benutzer-Objekt erschaffe, um diesen dann wieder per Delete() zu löschen! :roll: (zumindest denke ich ATM so ;) )

_________________
Pascal keeps your hand tied. C gives you enough rope to hang yourself. C++ gives you enough rope to shoot yourself in the foot
Marco D. Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 2750

Windows Vista
Delphi 7, Delphi 2005 PE, PHP 4 + 5 (Notepad++), Java (Eclipse), XML, XML Schema, ABAP, ABAP OO
BeitragVerfasst: So 14.01.07 14:08 
Na hat hier niemand eine Meinung zu? :zwinker:

_________________
Pascal keeps your hand tied. C gives you enough rope to hang yourself. C++ gives you enough rope to shoot yourself in the foot
Luckie
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: So 14.01.07 14:20 
user profile iconMarco D. hat folgendes geschrieben:
Na hat hier niemand eine Meinung zu? :zwinker:

Schwer, da du uns nicht verrätst wozu du die Klasse brauchst bzw. was sie können soll. ;)
Marco D. Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 2750

Windows Vista
Delphi 7, Delphi 2005 PE, PHP 4 + 5 (Notepad++), Java (Eclipse), XML, XML Schema, ABAP, ABAP OO
BeitragVerfasst: So 14.01.07 14:33 
user profile iconLuckie hat folgendes geschrieben:
user profile iconMarco D. hat folgendes geschrieben:
Na hat hier niemand eine Meinung zu? :zwinker:

Schwer, da du uns nicht verrätst wozu du die Klasse brauchst bzw. was sie können soll. ;)

Na die Klasse brauche ich für die Benutzerverwaltung auf einer Website.
Was sie können soll? Das ist ja gerade die Frage:
user profile iconMarco D. hat folgendes geschrieben:

Und vor allem, wo packe ich die Routinen zum Löschen oder Sperren eines Users an? Ich würde sagen, diese gehören nicht in diese "User"-Klasse, weil es ist ja sinnlos, wenn ich ein neues Benutzer-Objekt erschaffe, um diesen dann wieder per Delete() zu löschen! :roll: (zumindest denke ich ATM so ;) )

_________________
Pascal keeps your hand tied. C gives you enough rope to hang yourself. C++ gives you enough rope to shoot yourself in the foot
freak4fun
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 604
Erhaltene Danke: 4

Win 7 Pro
VS 2013 Express, Delphi, C#, PHP, Java
BeitragVerfasst: So 14.01.07 14:40 
Wie wäre es dann mit einer "UserManager"-KLasse? :)

MfG
freak

_________________
"Ich werde auf GAR KEINEN Fall…!" - "Keks?" - "Okay, ich tu's."
i++; // zaehler i um 1 erhoehen
Marco D. Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 2750

Windows Vista
Delphi 7, Delphi 2005 PE, PHP 4 + 5 (Notepad++), Java (Eclipse), XML, XML Schema, ABAP, ABAP OO
BeitragVerfasst: So 14.01.07 16:21 
user profile iconfreak4fun hat folgendes geschrieben:
Wie wäre es dann mit einer "UserManager"-KLasse? :)

MfG
freak

Gute Idee!

_________________
Pascal keeps your hand tied. C gives you enough rope to hang yourself. C++ gives you enough rope to shoot yourself in the foot
freak4fun
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 604
Erhaltene Danke: 4

Win 7 Pro
VS 2013 Express, Delphi, C#, PHP, Java
BeitragVerfasst: Mo 15.01.07 09:11 
Moin Marco,
wie sieht es denn aus? Ich hab sowas auch vor! :)

MfG
freak

_________________
"Ich werde auf GAR KEINEN Fall…!" - "Keks?" - "Okay, ich tu's."
i++; // zaehler i um 1 erhoehen
Marco D. Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 2750

Windows Vista
Delphi 7, Delphi 2005 PE, PHP 4 + 5 (Notepad++), Java (Eclipse), XML, XML Schema, ABAP, ABAP OO
BeitragVerfasst: Mo 15.01.07 16:22 
user profile iconfreak4fun hat folgendes geschrieben:
Moin Marco,
wie sieht es denn aus? Ich hab sowas auch vor! :)

MfG
freak

Naja die Idee habe ich mich erstmal in meinen Unterlagen zu dem Projekt notiert. Da ich aber in den letzten Tagen kaum daran arbeiten konnte, bin ich noch nicht weiter.
Was willst du denn genau wissen? ;)

_________________
Pascal keeps your hand tied. C gives you enough rope to hang yourself. C++ gives you enough rope to shoot yourself in the foot