MAJ diag classe

php
Antoine JOURDAIN 1 year ago
parent 4669e0ef5f
commit 6a3d2bd6d0

@ -1,5 +1,4 @@
'''plantuml ```plantuml
@startuml IEP @startuml IEP
hide circle hide circle
@ -14,10 +13,10 @@ skinparam BackgroundColor #white
namespace Model #lightgrey{ namespace Model #lightgrey{
abstract Class AbsModel{ abstract Class AbsModel{
- gtw : AbsGateway
- role : string - role : string
+ connection() : void + connection(login: string, password: string) : void
+ deconnection() : void + deconnection()
+ {abstract} is()
} }
abstract Class User { abstract Class User {
@ -30,25 +29,110 @@ namespace Model #lightgrey{
- image : string - image : string
- extraTime : bool - extraTime : bool
- group : int - group : int
- roles : array
+ User(id : int, password : string, email : string, string name, string surname, string nickname, string image, bool extraTime, int group) + User(id : int, password : string, email : string, string name, string surname, string nickname, string image, bool extraTime, int group)
} }
Class StudentModel { Class MdlAdmin{
+ action() : void + getAllUsers() : array
+ getAllAdmins() : array
+ getAllTeachers() : array
+ getAllStudents() : array
+ getAllGroups() : array
+ removeUser(id: int) : void
+ getUsersOfGroup(id: int) : array
+ removeUserFromGroup(id: int) : void
+ removeGroup(id: int) : void
+ addGroup(num: int, year: int, sector: string) : int
+ addUserToGroup(user: int, group: int) : void
+ getUnassignedUsers(): array
}
Class MdlStudent{
+ getAll() : array
+ getVocabByNale(name: string) : array
+ getUser(id: int) : User
+ modifyNickname(id: int, newNickname: string) : void
+ modifyPassword(id: int, newPassword: string) : void
}
Class MdlTeacher{
+ getAll() : array
+ getAllStudent() : array
+ getVocabByName(name: string) : array
+ RemoveVocById(id: int) : void
}
Class Translation{
- id : int
- word1 : string
- word2 : string
- listVocab : int
+ Translation(id : int, word1 : string, word2 : string, listVocab : int)
}
Class Group{
- id : int
- num : int
- year : int
- sector : string
+ Group(id : int, num : int, year : int, sector : string)
}
Class VocabularyList{
- id : int
- name : string
- image : string
- aut : string
+ VocabularyList(id : int, name : string, image : string, aut : string)
} }
AbsModel *--> Gateway.AbsGateway AbsModel *-> Gateway.AbsGateway
AbsModel <|-- StudentModel AbsModel <|-- MdlStudent
AbsModel <|-- MdlAdmin
AbsModel <|-- MdlTeacher
} }
namespace Controller #lightgray{ namespace Controller #lightgray{
Class studentController { Class AdminController{
- attribut + showAllUsers() : void
+ fct() : void + showAllAdmins() : void
+ showAllTeachers() : void
+ showAllStudents() : void
+ showAllGroups() : void
+ removeUser() : void
+ showGroupDetails() : void
+ removeUserFromGroup() : void
+ removeGroup() : void
+ addGroup() : void
+ addUserToGroup() : void
}
Class StudentController{
+ affAllVocab() : void
+ affAllStudent() : void
+ getByName() : void
+ showAccountInfos() : void
+ modifyNickname() : void
+ modifyPassword() : void
} }
Class TeacherController{
+ affAllStudent() : void
+ affAllVocab() : void
+ getByName() : void
+ DelById() : void
}
Model.MdlTeacher <-- TeacherController
Model.MdlStudent <-- StudentController
Model.MdlAdmin <-- AdminController
} }
@ -56,8 +140,22 @@ namespace Config #lightgray{
Class Connection { Class Connection {
- stmt - stmt
+ executeQuery(query : string, parameters : array) : bool + executeQuery(query : string, parameters : array) : bool
+ getResult() : array + getResult() : array
} }
Class Validation{
+ {static} val_action(action) : string
+ {static} val_password(value) : string
+ {static} filter_int(value) : int
+ {static} filter_str_simple(value) : string
+ {static} filter_str_nospecialchar(value) : string
}
Connection *--> Gateway.AbsGateway
Validation <-- Controller.AdminController
Validation <-- Controller.StudentController
Validation <-- Controller.TeacherController
} }
namespace Gateway #lightgray{ namespace Gateway #lightgray{

Loading…
Cancel
Save