PHP Class Suin\RSSWriter\Channel

Inheritance: implements Suin\RSSWriter\ChannelInterface
Mostra file Open project: suin/php-rss-writer Class Usage Examples

Protected Properties

Property Type Description
$copyright string
$description string
$items Suin\RSSWriter\ItemInterface[]
$language string
$lastBuildDate integer
$pubDate integer
$pubsubhubbub string[]
$title string
$ttl integer
$url string

Public Methods

Method Description
addItem ( Suin\RSSWriter\ItemInterface $item ) Add item object
appendTo ( Suin\RSSWriter\FeedInterface $feed ) Append to feed
asXML ( ) : SimpleXMLElement Return XML object
copyright ( string $copyright ) Set channel copyright
description ( string $description ) Set channel description
language ( string $language ) Set ISO639 language code
lastBuildDate ( integer $lastBuildDate ) Set channel last build date
pubDate ( integer $pubDate ) Set channel published date
pubsubhubbub ( string $feedUrl, string $hubUrl ) Enable PubSubHubbub discovery
title ( string $title ) Set channel title
ttl ( integer $ttl ) Set channel ttl (minutes)
url ( string $url ) Set channel URL

Method Details

addItem() public method

Add item object
public addItem ( Suin\RSSWriter\ItemInterface $item )
$item Suin\RSSWriter\ItemInterface

appendTo() public method

Append to feed
public appendTo ( Suin\RSSWriter\FeedInterface $feed )
$feed Suin\RSSWriter\FeedInterface

asXML() public method

Return XML object
public asXML ( ) : SimpleXMLElement
return SimpleXMLElement

description() public method

Set channel description
public description ( string $description )
$description string

language() public method

The language the channel is written in. This allows aggregators to group all Italian language sites, for example, on a single page. A list of allowable values for this element, as provided by Netscape, is here. You may also use values defined by the W3C.
public language ( string $language )
$language string

lastBuildDate() public method

Set channel last build date
public lastBuildDate ( integer $lastBuildDate )
$lastBuildDate integer Unix timestamp

pubDate() public method

Set channel published date
public pubDate ( integer $pubDate )
$pubDate integer Unix timestamp

pubsubhubbub() public method

Enable PubSubHubbub discovery
public pubsubhubbub ( string $feedUrl, string $hubUrl )
$feedUrl string
$hubUrl string

title() public method

Set channel title
public title ( string $title )
$title string

ttl() public method

Set channel ttl (minutes)
public ttl ( integer $ttl )
$ttl integer

url() public method

Set channel URL
public url ( string $url )
$url string

Property Details

$description protected_oe property

protected string $description
return string

$items protected_oe property

protected ItemInterface[],Suin\RSSWriter $items
return Suin\RSSWriter\ItemInterface[]

$language protected_oe property

protected string $language
return string

$lastBuildDate protected_oe property

protected int $lastBuildDate
return integer

$pubDate protected_oe property

protected int $pubDate
return integer

$pubsubhubbub protected_oe property

protected string[] $pubsubhubbub
return string[]

$title protected_oe property

protected string $title
return string

$ttl protected_oe property

protected int $ttl
return integer

$url protected_oe property

protected string $url
return string