aboutsummaryrefslogtreecommitdiff
path: root/src/SemanticScuttle/Thumbnailer/Null.php
diff options
context:
space:
mode:
authorChristian Weiske <cweiske@cweiske.de>2014-04-23 23:12:55 +0200
committerChristian Weiske <cweiske@cweiske.de>2014-04-23 23:12:55 +0200
commit6b3f1d4bb5c909413f31d7df5bab0e8a4084e29e (patch)
treefe1ea7bbefe3721bd3bb536da4c9c20bffca35df /src/SemanticScuttle/Thumbnailer/Null.php
parentaf2a061ecdfb4414ee0e8b500eccdf39a8d8cec5 (diff)
downloadsemanticscuttle-6b3f1d4bb5c909413f31d7df5bab0e8a4084e29e.tar.gz
semanticscuttle-6b3f1d4bb5c909413f31d7df5bab0e8a4084e29e.tar.bz2
Add support for phancap website thumbnailer.
Drop support for artviper, since their service is gone.
Diffstat (limited to 'src/SemanticScuttle/Thumbnailer/Null.php')
-rw-r--r--src/SemanticScuttle/Thumbnailer/Null.php52
1 files changed, 52 insertions, 0 deletions
diff --git a/src/SemanticScuttle/Thumbnailer/Null.php b/src/SemanticScuttle/Thumbnailer/Null.php
new file mode 100644
index 0000000..ec12135
--- /dev/null
+++ b/src/SemanticScuttle/Thumbnailer/Null.php
@@ -0,0 +1,52 @@
+<?php
+/**
+ * SemanticScuttle - your social bookmark manager.
+ *
+ * PHP version 5.
+ *
+ * @category Bookmarking
+ * @package SemanticScuttle
+ * @author Christian Weiske <cweiske@cweiske.de>
+ * @license GPL http://www.gnu.org/licenses/gpl.html
+ * @link http://sourceforge.net/projects/semanticscuttle
+ */
+
+/**
+ * Dummy thumbnailer that never returns a thumbnail URL
+ *
+ * @category Bookmarking
+ * @package SemanticScuttle
+ * @author Christian Weiske <cweiske@cweiske.de>
+ * @license GPL http://www.gnu.org/licenses/gpl.html
+ * @link http://sourceforge.net/projects/semanticscuttle
+ */
+class SemanticScuttle_Thumbnailer_Null
+{
+ /**
+ * Set dummy configuration
+ *
+ * @param array $config Dummy configuration
+ *
+ * @return void
+ */
+ public function setConfig($config)
+ {
+ }
+
+ /**
+ * Get the URL for a website thumbnail.
+ * Always returns false.
+ *
+ * @param string $bookmarkUrl URL of website to create thumbnail for
+ * @param integer $width Screenshot width
+ * @param integer $height Screenshot height
+ *
+ * @return mixed FALSE when no screenshot could be obtained,
+ * string with the URL otherwise
+ */
+ public function getThumbnailUrl($bookmarkUrl, $width, $height)
+ {
+ return false;
+ }
+}
+?>