WEB-INF.cftags.component coldbox.system.web.feeds.FeedReader
Feed reader plug-in additional methods
Constructor Summary | |
---|---|
init([any controller])
|
Method Summary | |
---|---|
array
|
arrayOfStructsSort(array aOfS, string key, [string sortOrder='desc'], [string sortType='textnocase'])
Sorts a structured array by a selected value. |
string
|
findAuthor(xml itemRoot)
Parse an item and find an author. |
array
|
findCategory(xml itemRoot, array categorynode)
Parse an item and find a categories. |
struct
|
findComments(xml itemRoot, struct commentsnode)
Parse an item and find comments. |
string
|
findCreatedDate(xml xmlRoot)
Parse the document to find a created date. |
string
|
findKeywords(array categoryRoot)
Parse an item's category array and find keywords. |
array
|
findMediaContent(xml itemRoot, array attachmentnode)
Parse an item and find media content. |
array
|
findThumbnails(xml itemRoot, array attachmentnode)
Parse an item and find thumbnails. |
string
|
findUpdatedDate(xml xmlRoot)
Parse the document and find a updated date. |
boolean
|
isDateISO8601(string datetime)
Checks if a date is in ISO8601 format. |
string
|
normalizeAtomTextConstruct(any entity)
Send an element and it will return the appropriate text construct. |
any
|
parseAtomItems(any items, [string itemsType='array'], [numeric maxItems='0'])
Parse the items an return an array of structures. |
any
|
parseRSSItems(any items, [string itemsType='array'], [numeric maxItems='0'])
Parse the items an return an array of structures. |
struct
|
parseVariablesSet(struct feed)
Set empty structure variables that will be used by parseFeed. |
query
|
querySortandTrim(query query, numeric maxRecords, string sort, string direction)
Sorts a structured array by a selected value. |
Methods inherited from class WEB-INF.cftags.component |
---|
None |
Constructor Detail |
---|
controller
Method Detail |
---|
Sorts a structured array by a selected value
aOfS
- The array to sortkey
- Structure Key to sort bysortOrder
- Order to sort by, asc or descsortType
- Text, textnocase, or numericParse an item and find an author
itemRoot
- The item to look inParse an item and find a categories
itemRoot
- The item to look incategorynode
- Existing category to merge with categoriesParse an item and find comments
itemRoot
- The item to look incommentsnode
- Existing comments structure to be updatedParse the document to find a created date
xmlRoot
- The XML root to look inParse an item's category array and find keywords
categoryRoot
- The category root to look inParse an item and find media content
itemRoot
- The item to look inattachmentnode
- Existing attachments to merge with media contentParse an item and find thumbnails
itemRoot
- The item to look inattachmentnode
- Existing attachments to merge with thumbnailsParse the document and find a updated date
xmlRoot
- The XML root to look inChecks if a date is in ISO8601 format
datetime
- The datetime string to checkSend an element and it will return the appropriate text construct
entity
- The XML constructParse the items an return an array of structures
items
- The xml of itemsitemsType
- The type of the items either query or array, array is used by defaultmaxItems
- The maximum number of entries to retrieve, default is display allParse the items an return an array of structures
items
- The xml of itemsitemsType
- The type of the items either query or array, array is used by defaultmaxItems
- The maximum number of entries to retrieve, default is display allSet empty structure variables that will be used by parseFeed
feed
- Structure of the current state of the parseFeed processSorts a structured array by a selected value
query
- The query to trimmaxRecords
- Trim to maximum recordssort
- Sort query by this columndirection
- Sort direction, either 'asc' or 'desc'