| @@ 535-545 (lines=11) @@ | ||
| 532 | $contentData['other_parent_locations'] = $otherParentLocations; |
|
| 533 | } |
|
| 534 | break; |
|
| 535 | case 'update': |
|
| 536 | $contentData = array_merge( |
|
| 537 | $contentData, |
|
| 538 | array( |
|
| 539 | 'match' => array( |
|
| 540 | ContentMatcher::MATCH_CONTENT_REMOTE_ID => $content->contentInfo->remoteId |
|
| 541 | ), |
|
| 542 | 'new_remote_id' => $content->contentInfo->remoteId, |
|
| 543 | ) |
|
| 544 | ); |
|
| 545 | break; |
|
| 546 | case 'delete': |
|
| 547 | $contentData = array_merge( |
|
| 548 | $contentData, |
|
| @@ 546-555 (lines=10) @@ | ||
| 543 | ) |
|
| 544 | ); |
|
| 545 | break; |
|
| 546 | case 'delete': |
|
| 547 | $contentData = array_merge( |
|
| 548 | $contentData, |
|
| 549 | array( |
|
| 550 | 'match' => array( |
|
| 551 | ContentMatcher::MATCH_CONTENT_REMOTE_ID => $content->contentInfo->remoteId |
|
| 552 | ) |
|
| 553 | ) |
|
| 554 | ); |
|
| 555 | break; |
|
| 556 | default: |
|
| 557 | throw new \Exception("Executor 'content' doesn't support mode '$mode'"); |
|
| 558 | } |
|