| @@ 162-170 (lines=9) @@ | ||
| 159 | ||
| 160 | $content = $this->repository->getContentService()->loadContent($newLocation->contentId); |
|
| 161 | $urlAliasNames = $this->nameSchemaService->resolveUrlAliasSchema($content); |
|
| 162 | foreach ($urlAliasNames as $languageCode => $name) { |
|
| 163 | $this->persistenceHandler->urlAliasHandler()->publishUrlAliasForLocation( |
|
| 164 | $newLocation->id, |
|
| 165 | $loadedTargetLocation->id, |
|
| 166 | $name, |
|
| 167 | $languageCode, |
|
| 168 | $content->contentInfo->alwaysAvailable |
|
| 169 | ); |
|
| 170 | } |
|
| 171 | ||
| 172 | $this->persistenceHandler->urlAliasHandler()->locationCopied( |
|
| 173 | $loadedSubtree->id, |
|
| @@ 395-405 (lines=11) @@ | ||
| 392 | $newLocation = $this->persistenceHandler->locationHandler()->create($spiLocationCreateStruct); |
|
| 393 | ||
| 394 | $urlAliasNames = $this->nameSchemaService->resolveUrlAliasSchema($content); |
|
| 395 | foreach ($urlAliasNames as $languageCode => $name) { |
|
| 396 | $this->persistenceHandler->urlAliasHandler()->publishUrlAliasForLocation( |
|
| 397 | $newLocation->id, |
|
| 398 | $newLocation->parentId, |
|
| 399 | $name, |
|
| 400 | $languageCode, |
|
| 401 | $content->contentInfo->alwaysAvailable, |
|
| 402 | // @todo: this is legacy storage specific for updating ezcontentobject_tree.path_identification_string, to be removed |
|
| 403 | $languageCode === $content->contentInfo->mainLanguageCode |
|
| 404 | ); |
|
| 405 | } |
|
| 406 | ||
| 407 | $this->repository->commit(); |
|
| 408 | } catch (Exception $e) { |
|
| @@ 633-641 (lines=9) @@ | ||
| 630 | ||
| 631 | $content = $this->repository->getContentService()->loadContent($location->contentId); |
|
| 632 | $urlAliasNames = $this->nameSchemaService->resolveUrlAliasSchema($content); |
|
| 633 | foreach ($urlAliasNames as $languageCode => $name) { |
|
| 634 | $this->persistenceHandler->urlAliasHandler()->publishUrlAliasForLocation( |
|
| 635 | $location->id, |
|
| 636 | $newParentLocation->id, |
|
| 637 | $name, |
|
| 638 | $languageCode, |
|
| 639 | $content->contentInfo->alwaysAvailable |
|
| 640 | ); |
|
| 641 | } |
|
| 642 | ||
| 643 | $this->persistenceHandler->urlAliasHandler()->locationMoved( |
|
| 644 | $location->id, |
|
| @@ 960-971 (lines=12) @@ | ||
| 957 | $locations = $this->repository->getLocationService()->loadLocations( |
|
| 958 | $content->getVersionInfo()->getContentInfo() |
|
| 959 | ); |
|
| 960 | foreach ($locations as $location) { |
|
| 961 | foreach ($urlAliasNames as $languageCode => $name) { |
|
| 962 | $this->persistenceHandler->urlAliasHandler()->publishUrlAliasForLocation( |
|
| 963 | $location->id, |
|
| 964 | $location->parentLocationId, |
|
| 965 | $name, |
|
| 966 | $languageCode, |
|
| 967 | $content->contentInfo->alwaysAvailable, |
|
| 968 | $updatePathIdentificationString ? $languageCode === $content->contentInfo->mainLanguageCode : false |
|
| 969 | ); |
|
| 970 | } |
|
| 971 | } |
|
| 972 | } |
|
| 973 | ||
| 974 | /** |
|