PHP Class Suin\RSSWriter\Channel

Inheritance: implements Suin\RSSWriter\ChannelInterface
Afficher le fichier Open project: suin/php-rss-writer Class Usage Examples

Protected Properties

Свойство Type Description
$copyright string
$description string
$items Suin\RSSWriter\ItemInterface[]
$language string
$lastBuildDate integer
$pubDate integer
$pubsubhubbub string[]
$title string
$ttl integer
$url string

Méthodes publiques

Méthode 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 méthode

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

appendTo() public méthode

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

asXML() public méthode

Return XML object
public asXML ( ) : SimpleXMLElement
Résultat SimpleXMLElement

description() public méthode

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

language() public méthode

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 méthode

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

pubDate() public méthode

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

pubsubhubbub() public méthode

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

title() public méthode

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

ttl() public méthode

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

url() public méthode

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

Property Details

$description protected_oe property

protected string $description
Résultat string

$items protected_oe property

protected ItemInterface[],Suin\RSSWriter $items
Résultat Suin\RSSWriter\ItemInterface[]

$language protected_oe property

protected string $language
Résultat string

$lastBuildDate protected_oe property

protected int $lastBuildDate
Résultat integer

$pubDate protected_oe property

protected int $pubDate
Résultat integer

$pubsubhubbub protected_oe property

protected string[] $pubsubhubbub
Résultat string[]

$title protected_oe property

protected string $title
Résultat string

$ttl protected_oe property

protected int $ttl
Résultat integer

$url protected_oe property

protected string $url
Résultat string