summaryrefslogtreecommitdiffstats
path: root/lib/preview
diff options
context:
space:
mode:
authorGeorg Ehrke <developer@georgehrke.com>2013-07-11 20:35:55 +0200
committerGeorg Ehrke <developer@georgehrke.com>2013-07-11 20:35:55 +0200
commit14a35267c15115a1e7d2901ddd9b8c5c7e1b9a31 (patch)
tree67f42095ff7f5b76434dfef564f44c992ce31ec7 /lib/preview
parent1ffc42b4bea8120ffb765838d05de96393bdaf33 (diff)
downloadnextcloud-server-14a35267c15115a1e7d2901ddd9b8c5c7e1b9a31.tar.gz
nextcloud-server-14a35267c15115a1e7d2901ddd9b8c5c7e1b9a31.zip
OC\Preview - outsource static methods
Diffstat (limited to 'lib/preview')
-rw-r--r--lib/preview/images.php2
-rw-r--r--lib/preview/libreoffice-cl.php10
-rw-r--r--lib/preview/movies.php2
-rw-r--r--lib/preview/mp3.php2
-rw-r--r--lib/preview/msoffice.php12
-rw-r--r--lib/preview/pdf.php2
-rw-r--r--lib/preview/svg.php2
-rw-r--r--lib/preview/txt.php6
-rw-r--r--lib/preview/unknown.php2
9 files changed, 20 insertions, 20 deletions
diff --git a/lib/preview/images.php b/lib/preview/images.php
index 987aa9aef0a..84ab9f1ae43 100644
--- a/lib/preview/images.php
+++ b/lib/preview/images.php
@@ -30,4 +30,4 @@ class Image extends Provider {
}
}
-\OC\Preview::registerProvider('OC\Preview\Image'); \ No newline at end of file
+\OC\PreviewManager::registerProvider('OC\Preview\Image'); \ No newline at end of file
diff --git a/lib/preview/libreoffice-cl.php b/lib/preview/libreoffice-cl.php
index 2749c4867e9..ffe8de505f7 100644
--- a/lib/preview/libreoffice-cl.php
+++ b/lib/preview/libreoffice-cl.php
@@ -80,7 +80,7 @@ class MSOfficeDoc extends Office {
}
-\OC\Preview::registerProvider('OC\Preview\MSOfficeDoc');
+\OC\PreviewManager::registerProvider('OC\Preview\MSOfficeDoc');
//.docm, .dotm, .xls(m), .xlt(m), .xla(m), .ppt(m), .pot(m), .pps(m), .ppa(m)
class MSOffice2003 extends Office {
@@ -91,7 +91,7 @@ class MSOffice2003 extends Office {
}
-\OC\Preview::registerProvider('OC\Preview\MSOffice2003');
+\OC\PreviewManager::registerProvider('OC\Preview\MSOffice2003');
//.docx, .dotx, .xlsx, .xltx, .pptx, .potx, .ppsx
class MSOffice2007 extends Office {
@@ -102,7 +102,7 @@ class MSOffice2007 extends Office {
}
-\OC\Preview::registerProvider('OC\Preview\MSOffice2007');
+\OC\PreviewManager::registerProvider('OC\Preview\MSOffice2007');
//.odt, .ott, .oth, .odm, .odg, .otg, .odp, .otp, .ods, .ots, .odc, .odf, .odb, .odi, .oxt
class OpenDocument extends Office {
@@ -113,7 +113,7 @@ class OpenDocument extends Office {
}
-\OC\Preview::registerProvider('OC\Preview\OpenDocument');
+\OC\PreviewManager::registerProvider('OC\Preview\OpenDocument');
//.sxw, .stw, .sxc, .stc, .sxd, .std, .sxi, .sti, .sxg, .sxm
class StarOffice extends Office {
@@ -124,4 +124,4 @@ class StarOffice extends Office {
}
-\OC\Preview::registerProvider('OC\Preview\StarOffice'); \ No newline at end of file
+\OC\PreviewManager::registerProvider('OC\Preview\StarOffice'); \ No newline at end of file
diff --git a/lib/preview/movies.php b/lib/preview/movies.php
index 8531050d112..f4452e02fc2 100644
--- a/lib/preview/movies.php
+++ b/lib/preview/movies.php
@@ -39,5 +39,5 @@ if(!is_null(shell_exec('ffmpeg -version'))) {
}
}
- \OC\Preview::registerProvider('OC\Preview\Movie');
+ \OC\PreviewManager::registerProvider('OC\Preview\Movie');
} \ No newline at end of file
diff --git a/lib/preview/mp3.php b/lib/preview/mp3.php
index 835ff529000..baa24ad129e 100644
--- a/lib/preview/mp3.php
+++ b/lib/preview/mp3.php
@@ -43,4 +43,4 @@ class MP3 extends Provider {
}
-\OC\Preview::registerProvider('OC\Preview\MP3'); \ No newline at end of file
+\OC\PreviewManager::registerProvider('OC\Preview\MP3'); \ No newline at end of file
diff --git a/lib/preview/msoffice.php b/lib/preview/msoffice.php
index ccf1d674c7a..9f6ea7f74cf 100644
--- a/lib/preview/msoffice.php
+++ b/lib/preview/msoffice.php
@@ -20,7 +20,7 @@ class DOC extends Provider {
}
-\OC\Preview::registerProvider('OC\Preview\DOC');
+\OC\PreviewManager::registerProvider('OC\Preview\DOC');
*/
class DOCX extends Provider {
@@ -50,7 +50,7 @@ class DOCX extends Provider {
}
-\OC\Preview::registerProvider('OC\Preview\DOCX');
+\OC\PreviewManager::registerProvider('OC\Preview\DOCX');
class MSOfficeExcel extends Provider {
@@ -95,7 +95,7 @@ class XLS extends MSOfficeExcel {
}
-\OC\Preview::registerProvider('OC\Preview\XLS');
+\OC\PreviewManager::registerProvider('OC\Preview\XLS');
class XLSX extends MSOfficeExcel {
@@ -105,7 +105,7 @@ class XLSX extends MSOfficeExcel {
}
-\OC\Preview::registerProvider('OC\Preview\XLSX');
+\OC\PreviewManager::registerProvider('OC\Preview\XLSX');
/* //There is no (good) php-only solution for converting powerpoint documents to pdfs / pngs ...
class MSOfficePowerPoint extends Provider {
@@ -128,7 +128,7 @@ class PPT extends MSOfficePowerPoint {
}
-\OC\Preview::registerProvider('OC\Preview\PPT');
+\OC\PreviewManager::registerProvider('OC\Preview\PPT');
class PPTX extends MSOfficePowerPoint {
@@ -138,5 +138,5 @@ class PPTX extends MSOfficePowerPoint {
}
-\OC\Preview::registerProvider('OC\Preview\PPTX');
+\OC\PreviewManager::registerProvider('OC\Preview\PPTX');
*/ \ No newline at end of file
diff --git a/lib/preview/pdf.php b/lib/preview/pdf.php
index 3eabd201156..0d289e9db94 100644
--- a/lib/preview/pdf.php
+++ b/lib/preview/pdf.php
@@ -36,5 +36,5 @@ if (extension_loaded('imagick')) {
}
}
- \OC\Preview::registerProvider('OC\Preview\PDF');
+ \OC\PreviewManager::registerProvider('OC\Preview\PDF');
}
diff --git a/lib/preview/svg.php b/lib/preview/svg.php
index bafaf71b15a..5507686af97 100644
--- a/lib/preview/svg.php
+++ b/lib/preview/svg.php
@@ -39,6 +39,6 @@ if (extension_loaded('imagick')) {
}
}
- \OC\Preview::registerProvider('OC\Preview\SVG');
+ \OC\PreviewManager::registerProvider('OC\Preview\SVG');
} \ No newline at end of file
diff --git a/lib/preview/txt.php b/lib/preview/txt.php
index c7b8fabc6b0..acbf34c5e42 100644
--- a/lib/preview/txt.php
+++ b/lib/preview/txt.php
@@ -46,7 +46,7 @@ class TXT extends Provider {
}
}
-\OC\Preview::registerProvider('OC\Preview\TXT');
+\OC\PreviewManager::registerProvider('OC\Preview\TXT');
class PHP extends TXT {
@@ -56,7 +56,7 @@ class PHP extends TXT {
}
-\OC\Preview::registerProvider('OC\Preview\PHP');
+\OC\PreviewManager::registerProvider('OC\Preview\PHP');
class JavaScript extends TXT {
@@ -66,4 +66,4 @@ class JavaScript extends TXT {
}
-\OC\Preview::registerProvider('OC\Preview\JavaScript'); \ No newline at end of file
+\OC\PreviewManager::registerProvider('OC\Preview\JavaScript'); \ No newline at end of file
diff --git a/lib/preview/unknown.php b/lib/preview/unknown.php
index a31b365722e..f9f6fe957b2 100644
--- a/lib/preview/unknown.php
+++ b/lib/preview/unknown.php
@@ -40,4 +40,4 @@ class Unknown extends Provider {
}
}
-\OC\Preview::registerProvider('OC\Preview\Unknown'); \ No newline at end of file
+\OC\PreviewManager::registerProvider('OC\Preview\Unknown'); \ No newline at end of file