| @@ 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 | { |
|
| @@ 1231-1247 (lines=17) @@ | ||
| 1228 | ); |
|
| 1229 | } |
|
| 1230 | ||
| 1231 | protected function insertPTLinkData(array $data) |
|
| 1232 | { |
|
| 1233 | $defaultData = [ |
|
| 1234 | 'post' => null, |
|
| 1235 | 'tag' => null, |
|
| 1236 | ]; |
|
| 1237 | ||
| 1238 | $data = array_merge($defaultData, $data); |
|
| 1239 | ||
| 1240 | return self::$connection->getDefault()->perform(" |
|
| 1241 | INSERT INTO `jpemeric_blog`.`ptlink` |
|
| 1242 | (post_id, tag_id) |
|
| 1243 | VALUES |
|
| 1244 | (:post_id, :tag_id)", |
|
| 1245 | $data |
|
| 1246 | ); |
|
| 1247 | } |
|
| 1248 | ||
| 1249 | protected function insertSeriesPostData(array $data) |
|
| 1250 | { |
|
| @@ 1268-1284 (lines=17) @@ | ||
| 1265 | ); |
|
| 1266 | } |
|
| 1267 | ||
| 1268 | protected function insertTagData(array $data) |
|
| 1269 | { |
|
| 1270 | $defaultData = [ |
|
| 1271 | 'id' => null, |
|
| 1272 | 'tag' => '', |
|
| 1273 | ]; |
|
| 1274 | ||
| 1275 | $data = array_merge($defaultData, $data); |
|
| 1276 | ||
| 1277 | return self::$connection->getDefault()->perform(" |
|
| 1278 | INSERT INTO `jpemeric_blog`.`tag` |
|
| 1279 | (id, tag) |
|
| 1280 | VALUES |
|
| 1281 | (:id, :tag)", |
|
| 1282 | $data |
|
| 1283 | ); |
|
| 1284 | } |
|
| 1285 | ||
| 1286 | protected function tearDown() |
|
| 1287 | { |
|