PHP Класс Frontend\Core\Engine\RssItem

Наследование: extends SpoonFeedRSSItem
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
__construct ( string $title, string $link, string $description )
processLinks ( string $content ) : string Process links, will prepend SITE_URL if needed and append UTM-parameters
setAuthor ( string $author ) Set the author.
setDescription ( string $description ) Set the description.
setGuid ( string $link, boolean $isPermaLink = true ) Set the guid.
setLink ( string $link ) Set the link.

Описание методов

__construct() публичный метод

public __construct ( string $title, string $link, string $description )
$title string The title for the item.
$link string The link for the item.
$description string The content for the item.

setAuthor() публичный метод

Set the author.
public setAuthor ( string $author )
$author string The author to use.

setDescription() публичный метод

All links and images that link to internal files will be prepended with the sites URL
public setDescription ( string $description )
$description string The content of the item.

setGuid() публичный метод

If the link is an internal link the sites URL will be prepended.
public setGuid ( string $link, boolean $isPermaLink = true )
$link string The guid for an item.
$isPermaLink boolean Is this link permanent?