@@ 117-126 (lines=10) @@ | ||
114 | * @return bool True if set, false if not |
|
115 | * @access public |
|
116 | */ |
|
117 | public function duplicate() |
|
118 | { |
|
119 | if ($this->is_mod() && check_link_hash($this->get_hash(), "duplicate_{$this->data['idea_id']}")) |
|
120 | { |
|
121 | $duplicate = $this->request->variable('duplicate', 0); |
|
122 | return $this->ideas->set_duplicate($this->data['idea_id'], $duplicate); |
|
123 | } |
|
124 | ||
125 | return false; |
|
126 | } |
|
127 | ||
128 | /** |
|
129 | * Remove vote action (remove a user's vote from an idea) |
|
@@ 159-168 (lines=10) @@ | ||
156 | * @return bool True if set, false if not |
|
157 | * @access public |
|
158 | */ |
|
159 | public function rfc() |
|
160 | { |
|
161 | if (($this->is_own() || $this->is_mod()) && check_link_hash($this->get_hash(), "rfc_{$this->data['idea_id']}")) |
|
162 | { |
|
163 | $rfc = $this->request->variable('rfc', ''); |
|
164 | return $this->ideas->set_rfc($this->data['idea_id'], $rfc); |
|
165 | } |
|
166 | ||
167 | return false; |
|
168 | } |
|
169 | ||
170 | /** |
|
171 | * Status action (sets an idea's status) |
|
@@ 195-204 (lines=10) @@ | ||
192 | * @return bool True if set, false if not |
|
193 | * @access public |
|
194 | */ |
|
195 | public function ticket() |
|
196 | { |
|
197 | if (($this->is_own() || $this->is_mod()) && check_link_hash($this->get_hash(), "ticket_{$this->data['idea_id']}")) |
|
198 | { |
|
199 | $ticket = $this->request->variable('ticket', 0); |
|
200 | return $this->ideas->set_ticket($this->data['idea_id'], $ticket); |
|
201 | } |
|
202 | ||
203 | return false; |
|
204 | } |
|
205 | ||
206 | /** |
|
207 | * Implemented action (sets an idea's implemented phpBB version) |
|
@@ 212-221 (lines=10) @@ | ||
209 | * @return bool True if set, false if not |
|
210 | * @access public |
|
211 | */ |
|
212 | public function implemented() |
|
213 | { |
|
214 | if ($this->is_mod() && check_link_hash($this->get_hash(), "implemented_{$this->data['idea_id']}")) |
|
215 | { |
|
216 | $version = $this->request->variable('implemented', ''); |
|
217 | return $this->ideas->set_implemented($this->data['idea_id'], $version); |
|
218 | } |
|
219 | ||
220 | return false; |
|
221 | } |
|
222 | ||
223 | /** |
|
224 | * Vote action (sets an idea's vote) |