@@ 389-400 (lines=12) @@ | ||
386 | * @return bool|null |
|
387 | * @throws InvalidArgumentException |
|
388 | */ |
|
389 | public function deleteItemsByTags(array $tagNames) |
|
390 | { |
|
391 | $return = null; |
|
392 | foreach ($tagNames as $tagName) { |
|
393 | $result = $this->deleteItemsByTag($tagName); |
|
394 | if ($return !== false) { |
|
395 | $return = $result; |
|
396 | } |
|
397 | } |
|
398 | ||
399 | return $return; |
|
400 | } |
|
401 | ||
402 | /** |
|
403 | * @inheritdoc |
|
@@ 421-433 (lines=13) @@ | ||
418 | /** |
|
419 | * @inheritdoc |
|
420 | */ |
|
421 | public function incrementItemsByTags(array $tagNames, $step = 1) |
|
422 | { |
|
423 | $return = null; |
|
424 | foreach ($tagNames as $tagName) |
|
425 | { |
|
426 | $result = $this->incrementItemsByTag($tagName, $step); |
|
427 | if ($return !== false) { |
|
428 | $return = $result; |
|
429 | } |
|
430 | } |
|
431 | ||
432 | return $return; |
|
433 | } |
|
434 | ||
435 | /** |
|
436 | * @inheritdoc |
|
@@ 454-466 (lines=13) @@ | ||
451 | /** |
|
452 | * @inheritdoc |
|
453 | */ |
|
454 | public function decrementItemsByTags(array $tagNames, $step = 1) |
|
455 | { |
|
456 | $return = null; |
|
457 | foreach ($tagNames as $tagName) |
|
458 | { |
|
459 | $result = $this->decrementItemsByTag($tagName, $step); |
|
460 | if ($return !== false) { |
|
461 | $return = $result; |
|
462 | } |
|
463 | } |
|
464 | ||
465 | return $return; |
|
466 | } |
|
467 | ||
468 | /** |
|
469 | * @inheritdoc |
|
@@ 487-499 (lines=13) @@ | ||
484 | /** |
|
485 | * @inheritdoc |
|
486 | */ |
|
487 | public function appendItemsByTags(array $tagNames, $data) |
|
488 | { |
|
489 | $return = null; |
|
490 | foreach ($tagNames as $tagName) |
|
491 | { |
|
492 | $result = $this->decrementItemsByTag($tagName, $data); |
|
493 | if ($return !== false) { |
|
494 | $return = $result; |
|
495 | } |
|
496 | } |
|
497 | ||
498 | return $return; |
|
499 | } |
|
500 | ||
501 | /** |
|
502 | * @inheritdoc |
|
@@ 520-532 (lines=13) @@ | ||
517 | /** |
|
518 | * @inheritdoc |
|
519 | */ |
|
520 | public function prependItemsByTags(array $tagNames, $data) |
|
521 | { |
|
522 | $return = null; |
|
523 | foreach ($tagNames as $tagName) |
|
524 | { |
|
525 | $result = $this->decrementItemsByTag($tagName, $data); |
|
526 | if ($return !== false) { |
|
527 | $return = $result; |
|
528 | } |
|
529 | } |
|
530 | ||
531 | return $return; |
|
532 | } |
|
533 | ||
534 | /** |
|
535 | * Abstract Drivers Methods |