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