forked from moodle/moodle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
statslib-test02.xml
117 lines (117 loc) · 3.3 KB
/
statslib-test02.xml
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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
<?xml version="1.0" encoding="UTF-8" ?>
<!-- Single login - Tests queries 1, 2 (with logins), 4 -->
<dataset>
<table name="log">
<column>time</column>
<column>userid</column>
<column>course</column>
<column>action</column>
<row>
<value>[start_1]</value>
<value>[user1_id]</value>
<value>[site_id]</value>
<value>login</value>
</row>
</table>
<table name="stats_daily">
<column>courseid</column>
<column>timeend</column>
<column>roleid</column>
<column>stattype</column>
<column>stat1</column>
<column>stat2</column>
<!-- Query 2 -->
<row>
<value>[site_id]</value>
<value>[end]</value>
<value>0</value>
<value>logins</value>
<value>1</value>
<value>1</value>
</row>
<!-- Query 3 -->
<row>
<value>[course1_id]</value>
<value>[end]</value>
<value>[student_roleid]</value>
<value>enrolments</value>
<value>1</value>
<value>0</value>
</row>
<!-- Query 5 -->
<row>
<value>[course1_id]</value>
<value>[end]</value>
<value>0</value>
<value>enrolments</value>
<value>1</value>
<value>0</value>
</row>
<!-- Query 7 -->
<row>
<value>[site_id]</value>
<value>[end]</value>
<value>0</value>
<value>enrolments</value>
<value>4</value>
<value>1</value>
</row>
<!-- Query 9 -->
<row>
<value>[site_id]</value>
<value>[end]</value>
<value>[frontpage_roleid]</value>
<value>enrolments</value>
<value>4</value>
<value>1</value>
</row>
<!-- Query 11 -->
<row>
<value>[site_id]</value>
<value>[end]</value>
<value>0</value>
<value>activity</value>
<value>0</value>
<value>0</value>
</row>
</table>
<table name="stats_user_daily">
<column>courseid</column>
<column>userid</column>
<column>roleid</column>
<column>timeend</column>
<column>statsreads</column>
<column>statswrites</column>
<column>stattype</column>
<!-- Query 1 -->
<row>
<value>[site_id]</value>
<value>[user1_id]</value>
<value>0</value>
<value>[end]</value>
<value>1</value>
<value>0</value>
<value>logins</value>
</row>
<!-- Query 10 - read -->
<row>
<value>[site_id]</value>
<value>[user1_id]</value>
<value>0</value>
<value>[end]</value>
<value>0</value>
<value>0</value>
<value>activity</value>
</row>
<!-- Query 10 - default record -->
<row>
<value>[site_id]</value>
<value>0</value>
<value>0</value>
<value>[end]</value>
<value>0</value>
<value>0</value>
<value>activity</value>
</row>
</table>
</dataset>