summaryrefslogtreecommitdiff
path: root/docs/DesignDocument.dot
blob: 820ec79ce1eaf39e03277de6c7ac5b284a1a91f1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
digraph systemModel {
	rankdir="LR";
	node[shape="record"];
	
	BaseController[label="Controller base class"];
	#subgraph clusterControllers {
	#	label="Controllers";
		MainController[label="<name> MainController | <index> showHomepage | <edit> editSettings"];
		TournamentController[label="<name> TournamentController | <index> listTournaments | <new> newTournament | <show> showTournament | <edit> editTournament | <delete> endTournament"];
		MessageController;
		LoginController[label="<name> LoginController | <index> showForm | <login> login | <logout> logout"];
		SearchController;
		UserController;
		MatchController;
	#}
	#subgraph clusterViews {
	#	label="views/";
		subgraph clusterCommonViews {
			label="views/common/";
			common_permission_denied;
			common_invalid;
		}
		subgraph clusterMainViews {
			label="views/main/";
			main_homepage;
			main_settings;
		}
		subgraph clusterLoginViews {
			label="views/login/";
			login_form
		}
		subgraph clusterTournamentViews {
			label="views/tournament/";
			tournament_index;
			tournament_new;
			tournament_show;
			tournament_edit;
		}
		subgraph clusterMessageViews {
			label="views/message/";
			message_private;
			message_new_alert;
		}
	#}

	BaseController -> MainController[arrowhead="onormal"];
	MainController:index -> main_homepage;
	MainController:edit -> main_settings;

	BaseController -> TournamentController[arrowhead="onormal"];
	TournamentController:index -> tournament_index;
	TournamentController:new -> tournament_new;
	TournamentController:show -> tournament_show;
	TournamentController:edit -> tournament_edit;
	TournamentController:edit -> common_permission_denied;
	TournamentController:delete -> common_permission_denied;

	BaseController -> MessageController[arrowhead="onormal"];
	MessageController -> message_private;
	MessageController -> message_new_alert;


	BaseController -> LoginController[arrowhead="onormal"];
	LoginController:index -> login_form;
	LoginController:login -> common_permission_denied;
	LoginController:logout -> common_invalid;

	BaseController -> SearchController[arrowhead="onormal"];
	
	BaseController -> UserController[arrowhead="onormal"];
	
	BaseController -> MatchController[arrowhead="onormal"];

}