| @@ 616-626 (lines=11) @@ | ||
| 613 | $contentData['other_parent_locations'] = $otherParentLocations; |
|
| 614 | } |
|
| 615 | break; |
|
| 616 | case 'update': |
|
| 617 | $contentData = array_merge( |
|
| 618 | $contentData, |
|
| 619 | array( |
|
| 620 | 'match' => array( |
|
| 621 | ContentMatcher::MATCH_CONTENT_REMOTE_ID => $content->contentInfo->remoteId |
|
| 622 | ), |
|
| 623 | 'new_remote_id' => $content->contentInfo->remoteId, |
|
| 624 | ) |
|
| 625 | ); |
|
| 626 | break; |
|
| 627 | case 'delete': |
|
| 628 | $contentData = array_merge( |
|
| 629 | $contentData, |
|
| @@ 627-636 (lines=10) @@ | ||
| 624 | ) |
|
| 625 | ); |
|
| 626 | break; |
|
| 627 | case 'delete': |
|
| 628 | $contentData = array_merge( |
|
| 629 | $contentData, |
|
| 630 | array( |
|
| 631 | 'match' => array( |
|
| 632 | ContentMatcher::MATCH_CONTENT_REMOTE_ID => $content->contentInfo->remoteId |
|
| 633 | ) |
|
| 634 | ) |
|
| 635 | ); |
|
| 636 | break; |
|
| 637 | default: |
|
| 638 | throw new \Exception("Executor 'content' doesn't support mode '$mode'"); |
|
| 639 | } |
|