jRSS20Item
extends jXMLFeedItem
in package
Table of Contents
- $authorEmail : string
- author email
- $authorName : string
- author name
- $categories : array<string|int, mixed>
- list of category names
- $comments : string
- comments url
- $content : string
- content of the item. could be pure text or html
- $contentType : string
- says the type of content : text or html (or xhtml for atom) Values : 'text','html','xhtml'
- $enclosure : array<string|int, mixed>
- media description, attached to the item the array should contain this keys : 'url', 'size', 'mimetype'
- $id : string
- identifiant of the item (its url for example)
- $idIsPermalink : bool
- says if the id is a permanent link
- $link : string
- url of the item
- $published : string
- publication date of the item format : yyyy-mm-dd hh:mm:ss
- $sourceTitle : string
- Title of the information source
- $sourceUrl : string
- url of rss channel of the information source
- $title : string
- title
- $_mandatory : string
- setFromXML() : mixed
- fill item with the given xml node
Properties
$authorEmail
author email
public
string
$authorEmail
$authorName
author name
public
string
$authorName
$categories
list of category names
public
array<string|int, mixed>
$categories
= array()
$comments
comments url
public
string
$comments
$content
content of the item. could be pure text or html
public
string
$content
$contentType
says the type of content : text or html (or xhtml for atom) Values : 'text','html','xhtml'
public
string
$contentType
= 'text'
$enclosure
media description, attached to the item the array should contain this keys : 'url', 'size', 'mimetype'
public
array<string|int, mixed>
$enclosure
$id
identifiant of the item (its url for example)
public
string
$id
$idIsPermalink
says if the id is a permanent link
public
bool
$idIsPermalink
$link
url of the item
public
string
$link
$published
publication date of the item format : yyyy-mm-dd hh:mm:ss
public
string
$published
$sourceTitle
Title of the information source
public
string
$sourceTitle
$sourceUrl
url of rss channel of the information source
public
string
$sourceUrl
$title
title
public
string
$title
$_mandatory
protected
string
$_mandatory
= array()
Methods
setFromXML()
fill item with the given xml node
public
setFromXML(SimpleXMLElement $item) : mixed
Parameters
- $item : SimpleXMLElement