Skip to main content

%ZEN.Mobile.RSS.Feed

Class %ZEN.Mobile.RSS.Feed Extends %Persistent [ Deprecated, System = 3 ]

This represents an RSS feed

Parameters

DEFAULTGLOBAL

Parameter DEFAULTGLOBAL = "^ZEN.Mobile.RSS.Feed";

Properties

URL

Property URL As %String(MAXLEN = "") [ Required ];

This is the feed URL

Title

Property Title As %String(MAXLEN = "") [ Required ];

This is the Title of the feed (derived from Channel/title)

Property Link As %String(MAXLEN = "") [ Required ];

This represents the URL at which the feed presents itself (derived from Channel/link)

Description

Property Description As %String(MAXLEN = "") [ Required ];

This is a description of the contents of the feed

Tag

Property Tag As %String(MAXLEN = "");

This holds whatever data the user wishes to add to categorize this feed

Application

Relationship Application As Application [ Cardinality = parent, Inverse = Feeds ];

This defines the relationship to the parent

Items

Relationship Items As Item [ Cardinality = children, Inverse = Feed ];

This represents the collection of items which makes up the feed

XDatas

FeedChannelXSLT

XData FeedChannelXSLT

FeedItemsXSLT

XData FeedItemsXSLT

Methods

%OnNew

Method %OnNew(pURL As %String, pTag As %String = "", pTimeout As %Integer = -1, pHttpRequest As %Net.HttpRequest = "") As %Status

Refresh

Method Refresh(Output pItemsFiled As %Integer, pPurgeCurrent As %Boolean, pTimeout As %Integer = -1, pHttpRequest As %Net.HttpRequest = "") As %Status

Call this method to refresh the items from the feed

FetchFromURL

ClassMethod FetchFromURL(pURL, Output pStream, pTimeout, pHttpRequest) As %Status [ Private ]

Given a URL fetch the contents and present as a stream

FetchNetURL

ClassMethod FetchNetURL(pURL As %Status, Output pStream As %BinaryStream, pTimeout As %Integer = -1, pHttpRequest As %Net.HttpRequest = "") As %Status

Fetch the contents of a net URL

ExtractItemsFromResults

ClassMethod ExtractItemsFromResults(pResults As %ListOfObjects(CLASSNAME="%XML.XPATH.Result"), Output pItems) As %Status

This method extracts the retrieve item objects from the XPATH results

BuildItem

ClassMethod BuildItem(ByRef pItem As %String) As %ZEN.Mobile.RSS.Item [ CodeMode = expression ]