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