PHP Интерфейс Suin\RSSWriter\ItemInterface

Показать файл Открыть проект

Открытые методы

Метод Описание
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