| @@ 330-353 (lines=24) @@ | ||
| 327 | /** |
|
| 328 | * @see \eZ\Publish\SPI\Persistence\Content\UrlAlias\Handler::swap |
|
| 329 | */ |
|
| 330 | public function locationSwapped($location1Id, $location1ParentId, $location2Id, $location2ParentId) |
|
| 331 | { |
|
| 332 | $this->logger->logCall( |
|
| 333 | __METHOD__, |
|
| 334 | [ |
|
| 335 | 'location1Id' => $location1Id, |
|
| 336 | 'location1ParentId' => $location1ParentId, |
|
| 337 | 'location2Id' => $location2Id, |
|
| 338 | 'location2ParentId' => $location2ParentId, |
|
| 339 | ] |
|
| 340 | ); |
|
| 341 | ||
| 342 | $return = $this->persistenceHandler->urlAliasHandler()->locationSwapped( |
|
| 343 | $location1Id, |
|
| 344 | $location1ParentId, |
|
| 345 | $location2Id, |
|
| 346 | $location2ParentId |
|
| 347 | ); |
|
| 348 | ||
| 349 | $this->clearLocation($location1Id); |
|
| 350 | $this->clearLocation($location2Id); |
|
| 351 | ||
| 352 | return $return; |
|
| 353 | } |
|
| 354 | } |
|
| 355 | ||
| @@ 218-226 (lines=9) @@ | ||
| 215 | /** |
|
| 216 | * @see \eZ\Publish\SPI\Persistence\Content\ObjectState\Handler::setContentState |
|
| 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 | * @see \eZ\Publish\SPI\Persistence\Content\ObjectState\Handler::getContentState |
|