summaryrefslogtreecommitdiffstats
path: root/vendor/fguillot/picofeed/lib/PicoFeed/Parser/Item.php
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/fguillot/picofeed/lib/PicoFeed/Parser/Item.php')
-rw-r--r--vendor/fguillot/picofeed/lib/PicoFeed/Parser/Item.php104
1 files changed, 30 insertions, 74 deletions
diff --git a/vendor/fguillot/picofeed/lib/PicoFeed/Parser/Item.php b/vendor/fguillot/picofeed/lib/PicoFeed/Parser/Item.php
index c9dff5a6f..22d7c5951 100644
--- a/vendor/fguillot/picofeed/lib/PicoFeed/Parser/Item.php
+++ b/vendor/fguillot/picofeed/lib/PicoFeed/Parser/Item.php
@@ -3,17 +3,15 @@
namespace PicoFeed\Parser;
/**
- * Feed Item
+ * Feed Item.
*
* @author Frederic Guillot
- * @package Parser
*/
class Item
{
/**
- * List of known RTL languages
+ * List of known RTL languages.
*
- * @access public
* @var public
*/
public $rtl = array(
@@ -28,100 +26,89 @@ class Item
);
/**
- * Item id
+ * Item id.
*
- * @access public
* @var string
*/
public $id = '';
/**
- * Item title
+ * Item title.
*
- * @access public
* @var string
*/
public $title = '';
/**
- * Item url
+ * Item url.
*
- * @access public
* @var string
*/
public $url = '';
/**
- * Item author
+ * Item author.
*
- * @access public
* @var string
*/
- public $author= '';
+ public $author = '';
/**
- * Item date
+ * Item date.
*
- * @access public
* @var \DateTime
*/
public $date = null;
/**
- * Item content
+ * Item content.
*
- * @access public
* @var string
*/
public $content = '';
/**
- * Item enclosure url
+ * Item enclosure url.
*
- * @access public
* @var string
*/
public $enclosure_url = '';
/**
- * Item enclusure type
+ * Item enclusure type.
*
- * @access public
* @var string
*/
public $enclosure_type = '';
/**
- * Item language
+ * Item language.
*
- * @access public
* @var string
*/
public $language = '';
/**
- * Raw XML
+ * Raw XML.
*
- * @access public
* @var \SimpleXMLElement
*/
public $xml;
/**
- * List of namespaces
+ * List of namespaces.
*
- * @access public
* @var array
*/
public $namespaces = array();
/**
- * Get specific XML tag or attribute value
+ * Get specific XML tag or attribute value.
*
- * @access public
- * @param string $tag Tag name (examples: guid, media:content)
- * @param string $attribute Tag attribute
- * @return array|false Tag values or error
+ * @param string $tag Tag name (examples: guid, media:content)
+ * @param string $attribute Tag attribute
+ *
+ * @return array|false Tag values or error
*/
public function getTag($tag, $attribute = '')
{
@@ -142,10 +129,7 @@ class Item
}
/**
- * Return item information
- *
- * @access public
- * $return string
+ * Return item information.
*/
public function __toString()
{
@@ -163,10 +147,7 @@ class Item
}
/**
- * Get title
- *
- * @access public
- * $return string
+ * Get title.
*/
public function getTitle()
{
@@ -174,10 +155,7 @@ class Item
}
/**
- * Get url
- *
- * @access public
- * $return string
+ * Get url.
*/
public function getUrl()
{
@@ -185,10 +163,7 @@ class Item
}
/**
- * Get id
- *
- * @access public
- * $return string
+ * Get id.
*/
public function getId()
{
@@ -196,10 +171,7 @@ class Item
}
/**
- * Get date
- *
- * @access public
- * $return \DateTime
+ * Get date.
*/
public function getDate()
{
@@ -207,10 +179,7 @@ class Item
}
/**
- * Get content
- *
- * @access public
- * $return string
+ * Get content.
*/
public function getContent()
{
@@ -218,10 +187,7 @@ class Item
}
/**
- * Get enclosure url
- *
- * @access public
- * $return string
+ * Get enclosure url.
*/
public function getEnclosureUrl()
{
@@ -229,10 +195,7 @@ class Item
}
/**
- * Get enclosure type
- *
- * @access public
- * $return string
+ * Get enclosure type.
*/
public function getEnclosureType()
{
@@ -240,10 +203,7 @@ class Item
}
/**
- * Get language
- *
- * @access public
- * $return string
+ * Get language.
*/
public function getLanguage()
{
@@ -251,10 +211,7 @@ class Item
}
/**
- * Get author
- *
- * @access public
- * $return string
+ * Get author.
*/
public function getAuthor()
{
@@ -262,9 +219,8 @@ class Item
}
/**
- * Return true if the item is "Right to Left"
+ * Return true if the item is "Right to Left".
*
- * @access public
* @return bool
*/
public function isRTL()