PHP 인터페이스 Suin\RSSWriter\ItemInterface

파일 보기 프로젝트 열기: suin/php-rss-writer

공개 메소드들

메소드 설명
appendTo ( Suin\RSSWriter\ChannelInterface $channel ) Append item to the channel
asXML ( ) : SimpleXMLElement Return XML object
author ( string $author ) Set the author
category ( string $name, string $domain = null ) Set item category
contentEncoded ( string $content ) Set content:encoded
description ( string $description ) Set item description
enclosure ( string $url, integer $length, string $type = 'audio/mpeg' ) Set enclosure
guid ( string $guid, boolean $isPermalink = false ) Set GUID
pubDate ( integer $pubDate ) Set published date
title ( string $title ) Set item title
url ( string $url ) Set item URL

메소드 상세

appendTo() 공개 메소드

Append item to the channel
public appendTo ( Suin\RSSWriter\ChannelInterface $channel )
$channel Suin\RSSWriter\ChannelInterface

asXML() 공개 메소드

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

author() 공개 메소드

Set the author
public author ( string $author )
$author string Email of item author

category() 공개 메소드

Set item category
public category ( string $name, string $domain = null )
$name string Category name
$domain string Category URL

contentEncoded() 공개 메소드

Set content:encoded
public contentEncoded ( string $content )
$content string

description() 공개 메소드

Set item description
public description ( string $description )
$description string

enclosure() 공개 메소드

Set enclosure
public enclosure ( string $url, integer $length, string $type = 'audio/mpeg' )
$url string Url to media file
$length integer Length in bytes of the media file
$type string Media type, default is audio/mpeg

guid() 공개 메소드

Set GUID
public guid ( string $guid, boolean $isPermalink = false )
$guid string
$isPermalink boolean

pubDate() 공개 메소드

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

title() 공개 메소드

Set item title
public title ( string $title )
$title string

url() 공개 메소드

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