| @@ 474-490 (lines=17) @@ | ||
| 471 | ); |
|
| 472 | } |
|
| 473 | ||
| 474 | protected function insertPTLinkData(array $data) |
|
| 475 | { |
|
| 476 | $defaultData = [ |
|
| 477 | 'post' => null, |
|
| 478 | 'tag' => null, |
|
| 479 | ]; |
|
| 480 | ||
| 481 | $data = array_merge($defaultData, $data); |
|
| 482 | ||
| 483 | return self::$connection->getDefault()->perform(" |
|
| 484 | INSERT INTO `jpemeric_blog`.`ptlink` |
|
| 485 | (post_id, tag_id) |
|
| 486 | VALUES |
|
| 487 | (:post_id, :tag_id)", |
|
| 488 | $data |
|
| 489 | ); |
|
| 490 | } |
|
| 491 | ||
| 492 | protected function insertTagData(array $data) |
|
| 493 | { |
|
| @@ 492-508 (lines=17) @@ | ||
| 489 | ); |
|
| 490 | } |
|
| 491 | ||
| 492 | protected function insertTagData(array $data) |
|
| 493 | { |
|
| 494 | $defaultData = [ |
|
| 495 | 'id' => null, |
|
| 496 | 'tag' => '', |
|
| 497 | ]; |
|
| 498 | ||
| 499 | $data = array_merge($defaultData, $data); |
|
| 500 | ||
| 501 | return self::$connection->getDefault()->perform(" |
|
| 502 | INSERT INTO `jpemeric_blog`.`tag` |
|
| 503 | (id, tag) |
|
| 504 | VALUES |
|
| 505 | (:id, :tag)", |
|
| 506 | $data |
|
| 507 | ); |
|
| 508 | } |
|
| 509 | ||
| 510 | protected function tearDown() |
|
| 511 | { |
|
| @@ 739-755 (lines=17) @@ | ||
| 736 | ); |
|
| 737 | } |
|
| 738 | ||
| 739 | protected function insertPTLinkData(array $data) |
|
| 740 | { |
|
| 741 | $defaultData = [ |
|
| 742 | 'post' => null, |
|
| 743 | 'tag' => null, |
|
| 744 | ]; |
|
| 745 | ||
| 746 | $data = array_merge($defaultData, $data); |
|
| 747 | ||
| 748 | return self::$connection->getDefault()->perform(" |
|
| 749 | INSERT INTO `jpemeric_blog`.`ptlink` |
|
| 750 | (post_id, tag_id) |
|
| 751 | VALUES |
|
| 752 | (:post_id, :tag_id)", |
|
| 753 | $data |
|
| 754 | ); |
|
| 755 | } |
|
| 756 | ||
| 757 | protected function insertTagData(array $data) |
|
| 758 | { |
|
| @@ 757-773 (lines=17) @@ | ||
| 754 | ); |
|
| 755 | } |
|
| 756 | ||
| 757 | protected function insertTagData(array $data) |
|
| 758 | { |
|
| 759 | $defaultData = [ |
|
| 760 | 'id' => null, |
|
| 761 | 'tag' => '', |
|
| 762 | ]; |
|
| 763 | ||
| 764 | $data = array_merge($defaultData, $data); |
|
| 765 | ||
| 766 | return self::$connection->getDefault()->perform(" |
|
| 767 | INSERT INTO `jpemeric_blog`.`tag` |
|
| 768 | (id, tag) |
|
| 769 | VALUES |
|
| 770 | (:id, :tag)", |
|
| 771 | $data |
|
| 772 | ); |
|
| 773 | } |
|
| 774 | ||
| 775 | protected function tearDown() |
|
| 776 | { |
|