[ Index ]

PHP Cross Reference of DokuWiki

title

Body

[close]

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

(no description)

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

Defines 1 class

FeedCreatorOptions:: (5 methods):
  __construct()
  getCacheKey()
  get()
  getType()
  getMimeType()


Class: FeedCreatorOptions  - X-Ref

Hold the options for feed generation

__construct($options = [])   X-Ref
Initialize the options from the request, falling back to config defaults

triggers: FEED_OPTS_POSTPROCESS
param: array $options additional options to set (for testing)

getCacheKey()   X-Ref
The cache key to use for a feed with these options

Does not contain user or host specific information yet

return: string

get($option, $default = null)   X-Ref
Return a feed option by name

return: mixed
param: string $option The name of the option
param: mixed $default default value if option is not set (should usually not happen)

getType()   X-Ref
Return the feed type for UniversalFeedCreator

This returns the apropriate type for UniversalFeedCreator

return: string

getMimeType()   X-Ref
Return the feed mime type

return: string