1 | <?php |
||
30 | class Capabilities implements ICapability { |
||
31 | |||
32 | const MIMETYPES = [ |
||
33 | 'application/vnd.oasis.opendocument.text', |
||
34 | 'application/vnd.oasis.opendocument.spreadsheet', |
||
35 | 'application/vnd.oasis.opendocument.graphics', |
||
36 | 'application/vnd.oasis.opendocument.presentation', |
||
37 | 'application/vnd.lotus-wordpro', |
||
38 | 'application/vnd.visio', |
||
39 | 'application/vnd.ms-visio.drawing', |
||
40 | 'application/vnd.wordperfect', |
||
41 | 'application/msonenote', |
||
42 | 'application/msword', |
||
43 | 'application/rtf', |
||
44 | 'text/rtf', |
||
45 | 'application/vnd.openxmlformats-officedocument.wordprocessingml.document', |
||
46 | 'application/vnd.openxmlformats-officedocument.wordprocessingml.template', |
||
47 | 'application/vnd.ms-word.document.macroEnabled.12', |
||
48 | 'application/vnd.ms-word.template.macroEnabled.12', |
||
49 | 'application/vnd.ms-excel', |
||
50 | 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet', |
||
51 | 'application/vnd.openxmlformats-officedocument.spreadsheetml.template', |
||
52 | 'application/vnd.ms-excel.sheet.macroEnabled.12', |
||
53 | 'application/vnd.ms-excel.template.macroEnabled.12', |
||
54 | 'application/vnd.ms-excel.addin.macroEnabled.12', |
||
55 | 'application/vnd.ms-excel.sheet.binary.macroEnabled.12', |
||
56 | 'application/vnd.ms-powerpoint', |
||
57 | 'application/vnd.openxmlformats-officedocument.presentationml.presentation', |
||
58 | 'application/vnd.openxmlformats-officedocument.presentationml.template', |
||
59 | 'application/vnd.openxmlformats-officedocument.presentationml.slideshow', |
||
60 | 'application/vnd.ms-powerpoint.addin.macroEnabled.12', |
||
61 | 'application/vnd.ms-powerpoint.presentation.macroEnabled.12', |
||
62 | 'application/vnd.ms-powerpoint.template.macroEnabled.12', |
||
63 | 'application/vnd.ms-powerpoint.slideshow.macroEnabled.12', |
||
64 | 'text/csv' |
||
65 | ]; |
||
66 | |||
67 | const MIMETYPES_OPTIONAL = [ |
||
68 | 'image/svg+xml', |
||
69 | 'application/pdf', |
||
70 | 'text/plain', |
||
71 | 'text/spreadsheet' |
||
72 | ]; |
||
73 | |||
74 | /** @var IL10N */ |
||
75 | private $l10n; |
||
76 | /** @var AppConfig */ |
||
77 | private $config; |
||
78 | /** @var CapabilitiesService */ |
||
79 | private $capabilitiesService; |
||
80 | |||
81 | private $capabilities = null; |
||
82 | |||
83 | public function __construct(IL10N $l10n, AppConfig $config, CapabilitiesService $capabilitiesService) { |
||
88 | |||
89 | public function getCapabilities() { |
||
116 | } |
||
117 |