[ Index ]

PHP Cross Reference of DokuWiki




/inc/Feed/ -> FeedItemProcessor.php (summary)

Accept more or less arbitrary data to represent data to later construct a feed item from. Provide lazy loading accessors to all the data we need for feed generation.

File Size: 172 lines (4 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 7 functions


Functions that are not part of a class:

__construct($data)   X-Ref

param: array $data Needs to have at least an 'id' key

getId()   X-Ref
Get the page ID

return: string

getRev()   X-Ref
Get the revision timestamp of this page

If the input gave us a revision, date or lastmodified already, we trust that it is correct.

Note: we only handle most current revisions in feeds, so the revision is usually just the
lastmodifed timestamp of the page file. However, if the item does not exist, we need to
determine the revision from the changelog.

return: int

getTitle()   X-Ref

return: string

getSummary()   X-Ref
Get the change summary for this item if any

return: string

getAuthor()   X-Ref
Get the author info for this item

return: string[] [email, author]

cleanHTML($html)   X-Ref
Clean HTML for the use in feeds

return: string
param: string $html