summaryrefslogtreecommitdiffstats
path: root/vendor/fguillot/picofeed/lib/PicoFeed/Generator/FileContentGenerator.php
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/fguillot/picofeed/lib/PicoFeed/Generator/FileContentGenerator.php')
-rw-r--r--vendor/fguillot/picofeed/lib/PicoFeed/Generator/FileContentGenerator.php36
1 files changed, 0 insertions, 36 deletions
diff --git a/vendor/fguillot/picofeed/lib/PicoFeed/Generator/FileContentGenerator.php b/vendor/fguillot/picofeed/lib/PicoFeed/Generator/FileContentGenerator.php
deleted file mode 100644
index 03f37e16f..000000000
--- a/vendor/fguillot/picofeed/lib/PicoFeed/Generator/FileContentGenerator.php
+++ /dev/null
@@ -1,36 +0,0 @@
-<?php
-
-namespace PicoFeed\Generator;
-
-use PicoFeed\Base;
-use PicoFeed\Parser\Item;
-
-/**
- * File Content Generator
- *
- * @package PicoFeed\Generator
- * @author Frederic Guillot
- */
-class FileContentGenerator extends Base implements ContentGeneratorInterface
-{
- private $extensions = array('pdf');
-
- /**
- * Execute Content Generator
- *
- * @access public
- * @param Item $item
- * @return boolean
- */
- public function execute(Item $item)
- {
- foreach ($this->extensions as $extension) {
- if (substr($item->getUrl(), - strlen($extension)) === $extension) {
- $item->setContent('<a href="'.$item->getUrl().'" target="_blank">'.$item->getUrl().'</a>');
- return true;
- }
- }
-
- return false;
- }
-}