|
@@ 74-77 (lines=4) @@
|
| 71 |
|
$contentCreateStruct->sectionId = $sectionId; |
| 72 |
|
} |
| 73 |
|
|
| 74 |
|
if (isset($this->dsl['owner'])) { |
| 75 |
|
$owner = $this->getUser($this->dsl['owner']); |
| 76 |
|
$contentCreateStruct->ownerId = $owner->id; |
| 77 |
|
} |
| 78 |
|
|
| 79 |
|
// This is a bit tricky, as the eZPublish API does not support having a different creator and owner with only 1 version. |
| 80 |
|
// We allow it, hoping that nothing gets broken because of it |
|
@@ 220-223 (lines=4) @@
|
| 217 |
|
$contentMetaDataUpdateStruct->remoteId = $this->dsl['new_remote_id']; |
| 218 |
|
} |
| 219 |
|
|
| 220 |
|
if (isset($this->dsl['owner'])) { |
| 221 |
|
$owner = $this->getUser($this->dsl['owner']); |
| 222 |
|
$contentMetaDataUpdateStruct->ownerId = $owner->id; |
| 223 |
|
} |
| 224 |
|
|
| 225 |
|
if (isset($this->dsl['modification_date'])) { |
| 226 |
|
$contentMetaDataUpdateStruct->modificationDate = $this->toDateTime($this->dsl['modification_date']); |