diff --git a/Documentation/diagClasse.md b/Documentation/diagClasse.md new file mode 100644 index 0000000..8873299 --- /dev/null +++ b/Documentation/diagClasse.md @@ -0,0 +1,91 @@ +@startuml IEP + +hide circle +allowmixing +skinparam classAttributeIconSize 9 +skinparam classBackgroundColor #123123 +skinparam classBorderColor #fff +skinparam classArrowColor #123123 +skinparam classFontColor #white +skinparam classFontName arial +skinparam BackgroundColor #white + +namespace Model #lightgrey{ + abstract Class AbsModel{ + - gtw : AbsGateway + - role : string + + connection() : void + + deconnection() : void + } + + abstract Class User { + - id : int + - password : string + - email : string + - name : string + - surname : string + - nickname : string + - image : string + - extraTime : bool + - group : int + + + User(id : int, password : string, email : string, string name, string surname, string nickname, string image, bool extraTime, int group) + } + + Class StudentModel { + + action() : void + } + + AbsModel *--> Gateway.AbsGateway + AbsModel <|-- StudentModel + +} + + +namespace Controller #lightgray{ + Class studentController { + - attribut + + fct() : void + } +} + + +namespace Config #lightgray{ + Class Connection { + - stmt + + executeQuery(query : string, parameters : array) : bool + + getResult() : array + } +} + +namespace Gateway #lightgray{ + abstract Class AbsGateway { + - con : Connection + + {abstract} add() : void + + {abstract} remove() : void + } + + Class studentGateway { + + findVocabulary() : string + } + + Class adminGateway { + + findStudent(): User + } + + class teacherGateway { + + findGroup() : Group + } + + class groupGateway { + + fct(): void + } + + + AbsGateway <|-- studentGateway + AbsGateway <|-- teacherGateway + AbsGateway <|-- adminGateway + AbsGateway <|-- groupGateway +} + +@enduml