| @@ 504-514 (lines=11) @@ | ||
| 501 | $contentData['other_parent_locations'] = $otherParentLocations; |
|
| 502 | } |
|
| 503 | break; |
|
| 504 | case 'update': |
|
| 505 | $contentData = array_merge( |
|
| 506 | $contentData, |
|
| 507 | array( |
|
| 508 | 'match' => array( |
|
| 509 | ContentMatcher::MATCH_CONTENT_REMOTE_ID => $content->contentInfo->remoteId |
|
| 510 | ), |
|
| 511 | 'new_remote_id' => $content->contentInfo->remoteId, |
|
| 512 | ) |
|
| 513 | ); |
|
| 514 | break; |
|
| 515 | case 'delete': |
|
| 516 | $contentData = array_merge( |
|
| 517 | $contentData, |
|
| @@ 515-524 (lines=10) @@ | ||
| 512 | ) |
|
| 513 | ); |
|
| 514 | break; |
|
| 515 | case 'delete': |
|
| 516 | $contentData = array_merge( |
|
| 517 | $contentData, |
|
| 518 | array( |
|
| 519 | 'match' => array( |
|
| 520 | ContentMatcher::MATCH_CONTENT_REMOTE_ID => $content->contentInfo->remoteId |
|
| 521 | ) |
|
| 522 | ) |
|
| 523 | ); |
|
| 524 | break; |
|
| 525 | default: |
|
| 526 | throw new \Exception("Executor 'content' doesn't support mode '$mode'"); |
|
| 527 | } |
|