summaryrefslogtreecommitdiffstats
path: root/vendor/fguillot/picofeed/lib/PicoFeed/Syndication/Writer.php
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/fguillot/picofeed/lib/PicoFeed/Syndication/Writer.php')
m---------vendor/fguillot/picofeed0
-rw-r--r--vendor/fguillot/picofeed/lib/PicoFeed/Syndication/Writer.php104
2 files changed, 0 insertions, 104 deletions
diff --git a/vendor/fguillot/picofeed b/vendor/fguillot/picofeed
new file mode 160000
+Subproject 0a1d0d3950f7f047dc8fb1d80aa6296e15f306d
diff --git a/vendor/fguillot/picofeed/lib/PicoFeed/Syndication/Writer.php b/vendor/fguillot/picofeed/lib/PicoFeed/Syndication/Writer.php
deleted file mode 100644
index cbd35f2cf..000000000
--- a/vendor/fguillot/picofeed/lib/PicoFeed/Syndication/Writer.php
+++ /dev/null
@@ -1,104 +0,0 @@
-<?php
-
-namespace PicoFeed\Syndication;
-
-use RuntimeException;
-
-/**
- * Base writer class
- *
- * @author Frederic Guillot
- * @package Syndication
- */
-abstract class Writer
-{
- /**
- * Dom object
- *
- * @access protected
- * @var \DomDocument
- */
- protected $dom;
-
- /**
- * Items
- *
- * @access public
- * @var array
- */
- public $items = array();
-
- /**
- * Author
- *
- * @access public
- * @var array
- */
- public $author = array();
-
- /**
- * Feed URL
- *
- * @access public
- * @var string
- */
- public $feed_url = '';
-
- /**
- * Website URL
- *
- * @access public
- * @var string
- */
- public $site_url = '';
-
- /**
- * Feed title
- *
- * @access public
- * @var string
- */
- public $title = '';
-
- /**
- * Feed description
- *
- * @access public
- * @var string
- */
- public $description = '';
-
- /**
- * Feed modification date (timestamp)
- *
- * @access public
- * @var integer
- */
- public $updated = 0;
-
- /**
- * Generate the XML document
- *
- * @abstract
- * @access public
- * @param string $filename Optional filename
- * @return string
- */
- abstract public function execute($filename = '');
-
- /**
- * Check required properties to generate the output
- *
- * @access public
- * @param array $properties List of properties
- * @param mixed $container Object or array container
- */
- public function checkRequiredProperties(array $properties, $container)
- {
- foreach ($properties as $property) {
- if ((is_object($container) && ! isset($container->$property)) || (is_array($container) && ! isset($container[$property]))) {
- throw new RuntimeException('Required property missing: '.$property);
- }
- }
- }
-}