| @@ 401-415 (lines=15) @@ | ||
| 398 | * |
|
| 399 | * @return bool True if set, false if invalid. |
|
| 400 | */ |
|
| 401 | public function set_duplicate($idea_id, $duplicate) |
|
| 402 | { |
|
| 403 | if ($duplicate && !is_numeric($duplicate)) |
|
| 404 | { |
|
| 405 | return false; |
|
| 406 | } |
|
| 407 | ||
| 408 | $sql_ary = array( |
|
| 409 | 'duplicate_id' => (int) $duplicate, |
|
| 410 | ); |
|
| 411 | ||
| 412 | $this->update_idea_data($sql_ary, $idea_id, $this->table_ideas); |
|
| 413 | ||
| 414 | return true; |
|
| 415 | } |
|
| 416 | ||
| 417 | /** |
|
| 418 | * Sets the RFC link of an idea. |
|
| @@ 450-464 (lines=15) @@ | ||
| 447 | * |
|
| 448 | * @return bool True if set, false if invalid. |
|
| 449 | */ |
|
| 450 | public function set_ticket($idea_id, $ticket) |
|
| 451 | { |
|
| 452 | if ($ticket && !is_numeric($ticket)) |
|
| 453 | { |
|
| 454 | return false; |
|
| 455 | } |
|
| 456 | ||
| 457 | $sql_ary = array( |
|
| 458 | 'ticket_id' => (int) $ticket, |
|
| 459 | ); |
|
| 460 | ||
| 461 | $this->update_idea_data($sql_ary, $idea_id, $this->table_ideas); |
|
| 462 | ||
| 463 | return true; |
|
| 464 | } |
|
| 465 | ||
| 466 | /** |
|
| 467 | * Sets the implemented version of an idea. |
|