RSSWriter
in package
Tags
Table of Contents
Properties
- $_arrItems : mixed
- $_currentItem : mixed
- $_rssVersion : mixed
- $_xmlElementLevel : mixed
- $_xmlVersion : mixed
- $arrErrorMsg : mixed
- $arrWarningMsg : mixed
- $channelCategory : mixed
- $channelCloud : mixed
- $channelCopyright : mixed
- $channelDescription : mixed
- $channelDocs : mixed
- $channelGenerator : mixed
- $channelImageDescription : mixed
- $channelImageHeight : mixed
- $channelImageLink : mixed
- $channelImageTitle : mixed
- $channelImageUrl : mixed
- $channelImageWidth : mixed
- $channelLanguage : mixed
- $channelLastBuildDate : mixed
- $channelLink : mixed
- $channelManagingEditor : mixed
- $channelPubDate : mixed
- $channelRating : mixed
- $channelSkipDays : mixed
- $channelSkipHours : mixed
- $channelTextInputDescription : mixed
- $channelTextInputLink : mixed
- $channelTextInputName : mixed
- $channelTextInputTitle : mixed
- $channelTitle : mixed
- $channelTtl : mixed
- $channelWebMaster : mixed
- $characterEncoding : mixed
- $feedType : mixed
- $xmlDocument : mixed
- $xmlDocumentPath : mixed
- $xmlItems : mixed
Methods
- __construct() : mixed
- PHP5 contructor
- _addChannelDescription() : bool
- Add channel description
- _addChannelLink() : bool
- Add channel link
- _addChannelTitle() : bool
- Add channel title
- _addCustomChannelElements() : bool
- Add custom channel elements
- _addOptionalChannelElements() : bool
- Add optional channel elements
- _create() : bool
- Create feed
- _createJS() : mixed
- _createXML() : mixed
- _parseItems() : mixed
- Parse items
- _visualElementLevel() : string
- Visual element level
- addItem() : bool
- Add item
- removeItems() : mixed
- Remove items
- write() : bool
- Write feed
- _js_umlauts() : mixed
- Takes a string and replaces all umlauts and special chars with their unicode escape sequence. This is needed so UTF8 Javascript news gets displayed correctly in Latin1 pages.
- _ordUTF8() : mixed
- returns the ord() of an UTF8 character.
- _uni_escape() : mixed
- Helper function for converting an special character into it's proper \uXXXX notation.
Properties
$_arrItems
public
mixed
$_arrItems
= array()
$_currentItem
public
mixed
$_currentItem
= 0
$_rssVersion
public
mixed
$_rssVersion
= '2.0'
$_xmlElementLevel
public
mixed
$_xmlElementLevel
= 0
$_xmlVersion
public
mixed
$_xmlVersion
= '1.0'
$arrErrorMsg
public
mixed
$arrErrorMsg
= array()
$arrWarningMsg
public
mixed
$arrWarningMsg
= array()
$channelCategory
public
mixed
$channelCategory
= ''
$channelCloud
public
mixed
$channelCloud
= ''
$channelCopyright
public
mixed
$channelCopyright
= ''
$channelDescription
public
mixed
$channelDescription
= ''
$channelDocs
public
mixed
$channelDocs
= ''
$channelGenerator
public
mixed
$channelGenerator
= ''
$channelImageDescription
public
mixed
$channelImageDescription
= ''
$channelImageHeight
public
mixed
$channelImageHeight
= ''
$channelImageLink
public
mixed
$channelImageLink
= ''
$channelImageTitle
public
mixed
$channelImageTitle
= ''
$channelImageUrl
public
mixed
$channelImageUrl
= ''
$channelImageWidth
public
mixed
$channelImageWidth
= ''
$channelLanguage
public
mixed
$channelLanguage
= ''
$channelLastBuildDate
public
mixed
$channelLastBuildDate
= ''
$channelLink
public
mixed
$channelLink
= ''
$channelManagingEditor
public
mixed
$channelManagingEditor
= ''
$channelPubDate
public
mixed
$channelPubDate
= ''
$channelRating
public
mixed
$channelRating
= ''
$channelSkipDays
public
mixed
$channelSkipDays
= ''
$channelSkipHours
public
mixed
$channelSkipHours
= ''
$channelTextInputDescription
public
mixed
$channelTextInputDescription
= ''
$channelTextInputLink
public
mixed
$channelTextInputLink
= ''
$channelTextInputName
public
mixed
$channelTextInputName
= ''
$channelTextInputTitle
public
mixed
$channelTextInputTitle
= ''
$channelTitle
public
mixed
$channelTitle
= ''
$channelTtl
public
mixed
$channelTtl
= ''
$channelWebMaster
public
mixed
$channelWebMaster
= ''
$characterEncoding
public
mixed
$characterEncoding
$feedType
public
mixed
$feedType
= 'xml'
$xmlDocument
public
mixed
$xmlDocument
$xmlDocumentPath
public
mixed
$xmlDocumentPath
$xmlItems
public
mixed
$xmlItems
= ''
Methods
__construct()
PHP5 contructor
public
__construct() : mixed
_addChannelDescription()
Add channel description
public
_addChannelDescription() : bool
Adds the channel description to the feed.
Return values
bool_addChannelLink()
Add channel link
public
_addChannelLink() : bool
Adds the link title to the feed.
Return values
bool_addChannelTitle()
Add channel title
public
_addChannelTitle() : bool
Adds the channel title to the feed.
Return values
bool_addCustomChannelElements()
Add custom channel elements
public
_addCustomChannelElements([mixed $array = array() ]) : bool
Adds all the custom channel elements to the feed.
Parameters
- $array : mixed = array()
Return values
bool_addOptionalChannelElements()
Add optional channel elements
public
_addOptionalChannelElements() : bool
Adds all the optional channel elements to the feed.
Return values
bool_create()
Create feed
public
_create() : bool
Create the content of the RSS feed.
Return values
bool_createJS()
public
_createJS() : mixed
_createXML()
public
_createXML() : mixed
_parseItems()
Parse items
public
_parseItems() : mixed
Parse the items of the feed and adds them to it.
_visualElementLevel()
Visual element level
public
_visualElementLevel() : string
Return a number of tabs to visual the locial structure of the RSS feed.
Return values
stringaddItem()
Add item
public
addItem([stirng $title = '' ][, string $link = '' ][, stirng $description = '' ][, string $author = '' ][, array<string|int, mixed> $arrCategory = array() ][, string $comments = '' ][, array<string|int, mixed> $arrEnclosure = array() ][, array<string|int, mixed> $arrGuid = array() ][, string $pubDate = '' ][, array<string|int, mixed> $arrSource = array() ]) : bool
Add an item to the RSS feed
Parameters
- $title : stirng = ''
- $link : string = ''
- $description : stirng = ''
- $author : string = ''
- $arrCategory : array<string|int, mixed> = array()
- $comments : string = ''
- $arrEnclosure : array<string|int, mixed> = array()
- $arrGuid : array<string|int, mixed> = array()
- $pubDate : string = ''
- $arrSource : array<string|int, mixed> = array()
Return values
boolremoveItems()
Remove items
public
removeItems() : mixed
Removes the items from the rss writer object.
write()
Write feed
public
write() : bool
Writes the rss feed.
Return values
bool_js_umlauts()
Takes a string and replaces all umlauts and special chars with their unicode escape sequence. This is needed so UTF8 Javascript news gets displayed correctly in Latin1 pages.
private
_js_umlauts(mixed $str) : mixed
Parameters
- $str : mixed
_ordUTF8()
returns the ord() of an UTF8 character.
private
_ordUTF8(mixed $c[, mixed $index = 0 ][, mixed &$bytes = null ]) : mixed
Parameters
- $c : mixed
- $index : mixed = 0
- $bytes : mixed = null
_uni_escape()
Helper function for converting an special character into it's proper \uXXXX notation.
private
_uni_escape(mixed $chr) : mixed
Parameters
- $chr : mixed