PHP 클래스 Suin\RSSWriter\Channel

상속: implements Suin\RSSWriter\ChannelInterface
파일 보기 프로젝트 열기: suin/php-rss-writer 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$copyright string
$description string
$items Suin\RSSWriter\ItemInterface[]
$language string
$lastBuildDate integer
$pubDate integer
$pubsubhubbub string[]
$title string
$ttl integer
$url string

공개 메소드들

메소드 설명
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

메소드 상세

addItem() 공개 메소드

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

appendTo() 공개 메소드

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

asXML() 공개 메소드

Return XML object
public asXML ( ) : SimpleXMLElement
리턴 SimpleXMLElement

description() 공개 메소드

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

language() 공개 메소드

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() 공개 메소드

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

pubDate() 공개 메소드

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

pubsubhubbub() 공개 메소드

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

title() 공개 메소드

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

ttl() 공개 메소드

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

url() 공개 메소드

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

프로퍼티 상세

$description 보호되어 있는 프로퍼티

protected string $description
리턴 string

$items 보호되어 있는 프로퍼티

protected ItemInterface[],Suin\RSSWriter $items
리턴 Suin\RSSWriter\ItemInterface[]

$language 보호되어 있는 프로퍼티

protected string $language
리턴 string

$lastBuildDate 보호되어 있는 프로퍼티

protected int $lastBuildDate
리턴 integer

$pubDate 보호되어 있는 프로퍼티

protected int $pubDate
리턴 integer

$pubsubhubbub 보호되어 있는 프로퍼티

protected string[] $pubsubhubbub
리턴 string[]

$title 보호되어 있는 프로퍼티

protected string $title
리턴 string

$ttl 보호되어 있는 프로퍼티

protected int $ttl
리턴 integer

$url 보호되어 있는 프로퍼티

protected string $url
리턴 string