| @@ 174-182 (lines=9) @@ | ||
| 171 | ||
| 172 | $content = $this->repository->getContentService()->loadContent($newLocation->contentId); |
|
| 173 | $urlAliasNames = $this->nameSchemaService->resolveUrlAliasSchema($content); |
|
| 174 | foreach ($urlAliasNames as $languageCode => $name) { |
|
| 175 | $this->persistenceHandler->urlAliasHandler()->publishUrlAliasForLocation( |
|
| 176 | $newLocation->id, |
|
| 177 | $loadedTargetLocation->id, |
|
| 178 | $name, |
|
| 179 | $languageCode, |
|
| 180 | $content->contentInfo->alwaysAvailable |
|
| 181 | ); |
|
| 182 | } |
|
| 183 | ||
| 184 | $this->persistenceHandler->urlAliasHandler()->locationCopied( |
|
| 185 | $loadedSubtree->id, |
|
| @@ 407-417 (lines=11) @@ | ||
| 404 | $newLocation = $this->persistenceHandler->locationHandler()->create($spiLocationCreateStruct); |
|
| 405 | ||
| 406 | $urlAliasNames = $this->nameSchemaService->resolveUrlAliasSchema($content); |
|
| 407 | foreach ($urlAliasNames as $languageCode => $name) { |
|
| 408 | $this->persistenceHandler->urlAliasHandler()->publishUrlAliasForLocation( |
|
| 409 | $newLocation->id, |
|
| 410 | $newLocation->parentId, |
|
| 411 | $name, |
|
| 412 | $languageCode, |
|
| 413 | $content->contentInfo->alwaysAvailable, |
|
| 414 | // @todo: this is legacy storage specific for updating ezcontentobject_tree.path_identification_string, to be removed |
|
| 415 | $languageCode === $content->contentInfo->mainLanguageCode |
|
| 416 | ); |
|
| 417 | } |
|
| 418 | ||
| 419 | $this->repository->commit(); |
|
| 420 | } catch (Exception $e) { |
|
| @@ 645-653 (lines=9) @@ | ||
| 642 | ||
| 643 | $content = $this->repository->getContentService()->loadContent($location->contentId); |
|
| 644 | $urlAliasNames = $this->nameSchemaService->resolveUrlAliasSchema($content); |
|
| 645 | foreach ($urlAliasNames as $languageCode => $name) { |
|
| 646 | $this->persistenceHandler->urlAliasHandler()->publishUrlAliasForLocation( |
|
| 647 | $location->id, |
|
| 648 | $newParentLocation->id, |
|
| 649 | $name, |
|
| 650 | $languageCode, |
|
| 651 | $content->contentInfo->alwaysAvailable |
|
| 652 | ); |
|
| 653 | } |
|
| 654 | ||
| 655 | $this->persistenceHandler->urlAliasHandler()->locationMoved( |
|
| 656 | $location->id, |
|
| @@ 1022-1031 (lines=10) @@ | ||
| 1019 | $content->getVersionInfo()->getContentInfo() |
|
| 1020 | ); |
|
| 1021 | foreach ($locations as $location) { |
|
| 1022 | foreach ($urlAliasNames as $languageCode => $name) { |
|
| 1023 | $this->persistenceHandler->urlAliasHandler()->publishUrlAliasForLocation( |
|
| 1024 | $location->id, |
|
| 1025 | $location->parentLocationId, |
|
| 1026 | $name, |
|
| 1027 | $languageCode, |
|
| 1028 | $content->contentInfo->alwaysAvailable, |
|
| 1029 | $updatePathIdentificationString ? $languageCode === $content->contentInfo->mainLanguageCode : false |
|
| 1030 | ); |
|
| 1031 | } |
|
| 1032 | } |
|
| 1033 | } |
|
| 1034 | ||