| @@ 526-536 (lines=11) @@ | ||
| 523 | $contentData['other_parent_locations'] = $otherParentLocations; |
|
| 524 | } |
|
| 525 | break; |
|
| 526 | case 'update': |
|
| 527 | $contentData = array_merge( |
|
| 528 | $contentData, |
|
| 529 | array( |
|
| 530 | 'match' => array( |
|
| 531 | ContentMatcher::MATCH_CONTENT_REMOTE_ID => $content->contentInfo->remoteId |
|
| 532 | ), |
|
| 533 | 'new_remote_id' => $content->contentInfo->remoteId, |
|
| 534 | ) |
|
| 535 | ); |
|
| 536 | break; |
|
| 537 | case 'delete': |
|
| 538 | $contentData = array_merge( |
|
| 539 | $contentData, |
|
| @@ 537-546 (lines=10) @@ | ||
| 534 | ) |
|
| 535 | ); |
|
| 536 | break; |
|
| 537 | case 'delete': |
|
| 538 | $contentData = array_merge( |
|
| 539 | $contentData, |
|
| 540 | array( |
|
| 541 | 'match' => array( |
|
| 542 | ContentMatcher::MATCH_CONTENT_REMOTE_ID => $content->contentInfo->remoteId |
|
| 543 | ) |
|
| 544 | ) |
|
| 545 | ); |
|
| 546 | break; |
|
| 547 | default: |
|
| 548 | throw new \Exception("Executor 'content' doesn't support mode '$mode'"); |
|
| 549 | } |
|