1: | <?php |
2: | |
3: | |
4: | |
5: | |
6: | |
7: | |
8: | namespace Aurora\Modules\OfficeDocumentViewer; |
9: | |
10: | use Aurora\System\SettingsProperty; |
11: | |
12: | |
13: | |
14: | |
15: | |
16: | |
17: | |
18: | |
19: | class Settings extends \Aurora\System\Module\Settings |
20: | { |
21: | protected function initDefaults() |
22: | { |
23: | $this->aContainer = [ |
24: | "Disabled" => new SettingsProperty( |
25: | false, |
26: | "bool", |
27: | null, |
28: | "Setting to true disables the module", |
29: | ), |
30: | "IncludeInMobile" => new SettingsProperty( |
31: | true, |
32: | "bool", |
33: | null, |
34: | "If true, the module is used in mobile version of the interface", |
35: | ), |
36: | "ExtensionsToView" => new SettingsProperty( |
37: | [ |
38: | "doc", |
39: | "docx", |
40: | "docm", |
41: | "dotm", |
42: | "dotx", |
43: | "xlsx", |
44: | "xlsb", |
45: | "xls", |
46: | "xlsm", |
47: | "pptx", |
48: | "ppsx", |
49: | "ppt", |
50: | "pps", |
51: | "pptm", |
52: | "potm", |
53: | "ppam", |
54: | "potx", |
55: | "ppsm", |
56: | "odt", |
57: | "odx" |
58: | ], |
59: | "array", |
60: | null, |
61: | "Defines a list of file types which can be viewed by external web service", |
62: | ), |
63: | "ViewerUrl" => new SettingsProperty( |
64: | "https://view.officeapps.live.com/op/view.aspx?src=", |
65: | "string", |
66: | null, |
67: | "URL of external web service used for viewing files", |
68: | ), |
69: | ]; |
70: | } |
71: | } |
72: | |