| @@ 122-136 (lines=15) @@ | ||
| 119 | * |
|
| 120 | * @return bool True if set, false if invalid. |
|
| 121 | */ |
|
| 122 | public function set_duplicate($idea_id, $duplicate) |
|
| 123 | { |
|
| 124 | if ($duplicate && !is_numeric($duplicate)) |
|
| 125 | { |
|
| 126 | return false; |
|
| 127 | } |
|
| 128 | ||
| 129 | $sql_ary = array( |
|
| 130 | 'duplicate_id' => (int) $duplicate, |
|
| 131 | ); |
|
| 132 | ||
| 133 | $this->update_idea_data($sql_ary, $idea_id, $this->table_ideas); |
|
| 134 | ||
| 135 | return true; |
|
| 136 | } |
|
| 137 | ||
| 138 | /** |
|
| 139 | * Sets the RFC link of an idea. |
|
| @@ 171-185 (lines=15) @@ | ||
| 168 | * |
|
| 169 | * @return bool True if set, false if invalid. |
|
| 170 | */ |
|
| 171 | public function set_ticket($idea_id, $ticket) |
|
| 172 | { |
|
| 173 | if ($ticket && !is_numeric($ticket)) |
|
| 174 | { |
|
| 175 | return false; |
|
| 176 | } |
|
| 177 | ||
| 178 | $sql_ary = array( |
|
| 179 | 'ticket_id' => (int) $ticket, |
|
| 180 | ); |
|
| 181 | ||
| 182 | $this->update_idea_data($sql_ary, $idea_id, $this->table_ideas); |
|
| 183 | ||
| 184 | return true; |
|
| 185 | } |
|
| 186 | ||
| 187 | /** |
|
| 188 | * Sets the implemented version of an idea. |
|