PHP Class Frontend\Core\Engine\RssItem

Inheritance: extends SpoonFeedRSSItem
Datei anzeigen Open project: forkcms/forkcms Class Usage Examples

Public Methods

Method Description
__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.

Method Details

__construct() public method

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() public method

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

setDescription() public method

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() public method

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?