Lines Matching +full:- +full:- +full:name +full:- +full:only
15 'name' => 'RSS0.91',
16 'mime' => 'text/xml; charset=utf-8',
19 'name' => 'RSS1.0',
20 'mime' => 'text/xml; charset=utf-8',
23 'name' => 'RSS2.0',
24 'mime' => 'text/xml; charset=utf-8',
27 'name' => 'ATOM0.3',
28 'mime' => 'application/xml; charset=utf-8',
31 'name' => 'ATOM1.0',
32 'mime' => 'application/atom+xml; charset=utf-8',
68 $this->options['type'] = $INPUT->valid(
70 array_keys($this->types),
73 // we only support 'list', 'search', 'recent' but accept anything so plugins can take over
74 $this->options['feed_mode'] = $INPUT->str('mode', 'recent');
75 $this->options['link_to'] = $INPUT->valid(
80 $this->options['item_content'] = $INPUT->valid(
85 $this->options['namespace'] = $INPUT->filter('cleanID')->str('ns');
86 $this->options['items'] = $INPUT->int('num', $conf['recent']);
87 $this->options['show_minor'] = $INPUT->bool('minor');
88 $this->options['show_deleted'] = $conf['rss_show_deleted'];
89 $this->options['show_summary'] = $conf['rss_show_summary'];
90 $this->options['only_new'] = $INPUT->bool('onlynewpages');
91 $this->options['sort'] = $INPUT->valid(
96 $this->options['search_query'] = $INPUT->str('q');
97 $this->options['content_type'] = $INPUT->valid(
102 $this->options['guardmail'] = $conf['mailguard'];
103 $this->options['title'] = $conf['title'];
104 if ($this->options['namespace']) {
105 $this->options['title'] .= ' - ' . $this->options['namespace'];
107 $this->options['subtitle'] = $conf['tagline'];
109 $this->options = array_merge($this->options, $options);
111 $this->options['items'] = min(max(1, (int)$this->options['items']), $conf['recent'] * 5);
112 // only the recent mode is cached by default to prevent cache DoS;
114 $this->options['cache_allow'] = ($this->options['feed_mode'] === 'recent');
118 'opt' => &$this->options,
126 * Only includes options that affect the current mode's output.
133 if (!$this->options['cache_allow']) {
138 $this->options['feed_mode'],
139 $this->options['type'],
140 $this->options['link_to'],
141 $this->options['item_content'],
142 $this->options['show_summary'],
143 $this->options['guardmail'],
144 $this->options['namespace'],
145 $this->options['items'],
146 $this->options['show_minor'],
147 $this->options['show_deleted'],
148 $this->options['only_new'],
149 $this->options['content_type'],
150 $this->options['cache_key'],
155 * Return a feed option by name
157 * @param string $option The name of the option
163 return $this->options[$option] ?? $default;
175 return $this->types[$this->options['type']]['name'];
185 return $this->types[$this->options['type']]['mime'];