Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
0.00% |
0 / 104 |
n/a |
0 / 0 |
CRAP | n/a |
0 / 0 |
1 | <?php |
2 | return [ |
3 | 'type' => 'object', |
4 | 'required' => [ 'description', 'items', 'options', 'displaymode' ], |
5 | 'properties' => [ |
6 | 'displaymode' => [ |
7 | 'enum' => [ |
8 | 0 => 'normal', |
9 | 1 => 'members', |
10 | 2 => 'error' |
11 | ] |
12 | ], |
13 | 'errortext' => [ |
14 | 'type' => 'string' |
15 | ], |
16 | 'description' => [ |
17 | 'type' => 'string' |
18 | ], |
19 | 'columns' => [ |
20 | 'type' => 'array', |
21 | 'maxItems' => 10, |
22 | 'items' => [ [ |
23 | 'label' => [ |
24 | 'type' => 'string' |
25 | ], |
26 | 'notes' => [ |
27 | 'type' => 'string' |
28 | ], |
29 | 'items' => [ |
30 | 'type' => 'array', |
31 | 'maxItems' => 2000, |
32 | 'items' => [ [ |
33 | 'type' => 'object', |
34 | 'required' => [ 'title' ], |
35 | 'properties' => [ |
36 | 'title' => [ |
37 | 'type' => 'string' |
38 | ], |
39 | 'link' => [ |
40 | 'type' => 'string' |
41 | ], |
42 | 'notes' => [ |
43 | 'type' => 'string' |
44 | ], |
45 | 'image' => [ |
46 | 'type' => 'string' |
47 | ], |
48 | 'sortkey' => [ |
49 | 'type' => 'object', |
50 | 'properties' => [ |
51 | 'criterianame' => [ |
52 | 'type' => 'string' |
53 | ], |
54 | 'value' => [ |
55 | 'type' => 'string' |
56 | ] |
57 | ] |
58 | ], |
59 | 'tags' => [ |
60 | 'type' => 'array', |
61 | 'maxItems' => 50, |
62 | 'items' => [ [ |
63 | 'type' => 'string' |
64 | ] ] |
65 | ] |
66 | ] |
67 | ] ] |
68 | ] |
69 | ] ] |
70 | ], |
71 | 'options' => [ |
72 | 'type' => 'object', |
73 | 'properties' => [ |
74 | 'defaultsort' => [ |
75 | 'type' => 'string', |
76 | 'default' => 'random' |
77 | ], |
78 | 'maxitems' => [ |
79 | 'type' => 'number', |
80 | 'default' => 5 |
81 | ], |
82 | 'includedesc' => [ |
83 | 'type' => 'boolean', |
84 | 'default' => false |
85 | ], |
86 | 'offset' => [ |
87 | 'type' => 'number', |
88 | 'default' => 0 |
89 | ], |
90 | 'mode' => [ |
91 | 'type' => 'string', |
92 | 'default' => 'normal' |
93 | ], |
94 | 'tags' => [ |
95 | 'type' => 'array', |
96 | 'items' => [ [] ] |
97 | ], |
98 | 'iconWidth' => [ |
99 | 'type' => 'number', |
100 | 'default' => 64 |
101 | ] |
102 | ] |
103 | ] |
104 | ] |
105 | ]; |