\FeedBlock
Class FeedBlock
Extends to facilitate RSS feeds
Synopsis
class FeedBlock
extends Block
{
- // members
- private static array $db = ;
- private static array $summary_fields = ;
- // methods
- public FieldList getCMSFields()
- public string URL()
- public bool IsExternal()
- public bool IsInternal()
- public ArrayList Items()
- public string ItemsInFeed()
- private bool|SimpleXMLElement loadXml()
- public void refresh()
- // Inherited methods from Block
- public void __construct()
- public FieldList getCMSFields()
- public string LeadInText()
- public string ContentText()
- public Image Thumbnail()
- public bool HasLink()
- public bool LinkIsExternal()
- public string LinkURL()
- public string LinkTitle()
- public string Link()
- public string LinkDetails()
Hierarchy
Extends
Members
private
- $db
—
array
Fields - $summary_fields
—
array
Summary fields for GridField
Methods
private
- loadXml() — Load RSS Feed XML
public
- IsExternal() — Get block link is external
- IsInternal() — Get block link is internal
- Items() — Load feed xml and return items
- ItemsInFeed() — Get number of items in feed
- URL() — Get block link url
- getCMSFields() — Get CMS fields
- refresh() — Refresh feed
Inherited from Block
public
- ContentText() — Text-only Content
- HasLink() — Check if this block has a valid link
- LeadInText() — Text-only Lead In
- Link() — Get compiled link
- LinkDetails() — Get link details
- LinkIsExternal() — Check if link is external
- LinkTitle() — Get link title
- LinkURL() — Get link url
- Thumbnail() — Get thumbnail for list in admin
- getCMSFields() — Get CMS fields