| @@ 218-226 (lines=9) @@ | ||
| 215 | /** |
|
| 216 | * {@inheritdoc} |
|
| 217 | */ |
|
| 218 | public function setContentState($contentId, $groupId, $stateId) |
|
| 219 | { |
|
| 220 | $this->logger->logCall(__METHOD__, array('contentId' => $contentId, 'groupId' => $groupId, 'stateId' => $stateId)); |
|
| 221 | $return = $this->persistenceHandler->objectStateHandler()->setContentState($contentId, $groupId, $stateId); |
|
| 222 | ||
| 223 | $this->cache->clear('objectstate', 'byContent', $contentId, $groupId); |
|
| 224 | ||
| 225 | return $return; |
|
| 226 | } |
|
| 227 | ||
| 228 | /** |
|
| 229 | * {@inheritdoc} |
|
| @@ 350-373 (lines=24) @@ | ||
| 347 | /** |
|
| 348 | * {@inheritdoc} |
|
| 349 | */ |
|
| 350 | public function locationSwapped($location1Id, $location1ParentId, $location2Id, $location2ParentId) |
|
| 351 | { |
|
| 352 | $this->logger->logCall( |
|
| 353 | __METHOD__, |
|
| 354 | [ |
|
| 355 | 'location1Id' => $location1Id, |
|
| 356 | 'location1ParentId' => $location1ParentId, |
|
| 357 | 'location2Id' => $location2Id, |
|
| 358 | 'location2ParentId' => $location2ParentId, |
|
| 359 | ] |
|
| 360 | ); |
|
| 361 | ||
| 362 | $return = $this->persistenceHandler->urlAliasHandler()->locationSwapped( |
|
| 363 | $location1Id, |
|
| 364 | $location1ParentId, |
|
| 365 | $location2Id, |
|
| 366 | $location2ParentId |
|
| 367 | ); |
|
| 368 | ||
| 369 | $this->clearLocation($location1Id); |
|
| 370 | $this->clearLocation($location2Id); |
|
| 371 | ||
| 372 | return $return; |
|
| 373 | } |
|
| 374 | } |
|
| 375 | ||