Свойство | Тип | Описание | |
---|---|---|---|
$gateway | UrlAlias Gateway. | ||
$languageHandler | Caching language handler. | ||
$locationGateway | Gateway for handling location data. | ||
$mapper | UrlAlias Mapper. | ||
$slugConverter | URL slug converter. |
Метод | Описание | |
---|---|---|
__construct ( |
Creates a new UrlAlias Handler. | |
createCustomUrlAlias ( mixed $locationId, string $path, boolean $forwarding = false, string $languageCode = null, boolean $alwaysAvailable = false ) : eZ\Publish\SPI\Persistence\Content\UrlAlias | Create a user chosen $alias pointing to $locationId in $languageCode. | |
createGlobalUrlAlias ( string $resource, string $path, boolean $forwarding = false, string $languageCode = null, boolean $alwaysAvailable = false ) : eZ\Publish\SPI\Persistence\Content\UrlAlias | Create a user chosen $alias pointing to a resource in $languageCode. | |
listGlobalURLAliases ( string | null $languageCode = null, integer $offset, integer $limit ) : eZ\Publish\SPI\Persistence\Content\UrlAlias[] | List global aliases. | |
listURLAliasesForLocation ( mixed $locationId, boolean $custom = false ) : eZ\Publish\SPI\Persistence\Content\UrlAlias[] | List of user generated or autogenerated url entries, pointing to $locationId. | |
loadUrlAlias ( string $id ) : eZ\Publish\SPI\Persistence\Content\UrlAlias | Loads URL alias by given $id. | |
locationCopied ( mixed $locationId, mixed $newLocationId, mixed $newParentId ) | Notifies the underlying engine that a location was copied. | |
locationDeleted ( mixed $locationId ) | Notifies the underlying engine that a location was deleted or moved to trash. | |
locationMoved ( mixed $locationId, mixed $oldParentId, mixed $newParentId ) | Notifies the underlying engine that a location has moved. | |
locationSwapped ( $location1Id, $location1ParentId, $location2Id, $location2ParentId ) | ||
lookup ( string $url ) : eZ\Publish\SPI\Persistence\Content\UrlAlias | Looks up a url alias for the given url. | |
publishUrlAliasForLocation ( $locationId, $parentLocationId, $name, $languageCode, $alwaysAvailable = false, $updatePathIdentificationString = false ) | ||
removeURLAliases ( array $urlAliases ) : boolean | Removes url aliases. |
Метод | Описание | |
---|---|---|
copySubtree ( array $actionMap, mixed $oldParentAliasId, mixed $newParentAliasId ) | Recursively copies aliases from old parent under new parent. | |
createUrlAlias ( string $action, string $path, boolean $forward, string | null $languageCode, boolean $alwaysAvailable ) : eZ\Publish\SPI\Persistence\Content\UrlAlias | Internal method for creating global or custom URL alias (these are handled in the same way). | |
getCopiedLocationsMap ( mixed $oldParentId, mixed $newParentId ) : array | ||
getHash ( string $text ) : string | ||
getRealAliasId ( mixed $locationId ) : mixed | Returns possibly corrected alias id for given $locationId !! For use as parent id in logic. | |
insertNopEntry ( mixed $parentId, string $text, string $textMD5 ) : mixed | Convenience method for inserting nop type row. | |
removeSubtree ( mixed $id, string $action, mixed $original ) | Recursively removes aliases by given $id and $action. |
Метод | Описание | |
---|---|---|
extractLanguageIdsFromMask ( integer $languageMask ) : int[] | Extracts every language Ids contained in $languageMask. | |
historizeBeforeSwap ( array $location1Entries, array $location2Entries ) | Historizes given existing active entries for two swapped Locations. | |
internalPublishUrlAliasForLocation ( integer $locationId, integer $parentLocationId, string $name, integer $languageId, boolean $alwaysAvailable = false, boolean $updatePathIdentificationString = false, integer $newId = null ) | Internal publish method, accepting language ID instead of language code and optionally new alias ID (used when swapping Locations). |
public __construct ( |
||
$gateway | ||
$mapper | ||
$locationGateway | ||
$languageHandler | eZ\Publish\SPI\Persistence\Content\Language\Handler | |
$slugConverter |
public createCustomUrlAlias ( mixed $locationId, string $path, boolean $forwarding = false, string $languageCode = null, boolean $alwaysAvailable = false ) : eZ\Publish\SPI\Persistence\Content\UrlAlias | ||
$locationId | mixed | |
$path | string | |
$forwarding | boolean | |
$languageCode | string | |
$alwaysAvailable | boolean | |
Результат | eZ\Publish\SPI\Persistence\Content\UrlAlias |
public createGlobalUrlAlias ( string $resource, string $path, boolean $forwarding = false, string $languageCode = null, boolean $alwaysAvailable = false ) : eZ\Publish\SPI\Persistence\Content\UrlAlias | ||
$resource | string | |
$path | string | |
$forwarding | boolean | |
$languageCode | string | |
$alwaysAvailable | boolean | |
Результат | eZ\Publish\SPI\Persistence\Content\UrlAlias |
protected createUrlAlias ( string $action, string $path, boolean $forward, string | null $languageCode, boolean $alwaysAvailable ) : eZ\Publish\SPI\Persistence\Content\UrlAlias | ||
$action | string | |
$path | string | |
$forward | boolean | |
$languageCode | string | null | |
$alwaysAvailable | boolean | |
Результат | eZ\Publish\SPI\Persistence\Content\UrlAlias |
protected getRealAliasId ( mixed $locationId ) : mixed | ||
$locationId | mixed | |
Результат | mixed |
public listURLAliasesForLocation ( mixed $locationId, boolean $custom = false ) : eZ\Publish\SPI\Persistence\Content\UrlAlias[] | ||
$locationId | mixed | |
$custom | boolean | if true the user generated aliases are listed otherwise the autogenerated |
Результат | eZ\Publish\SPI\Persistence\Content\UrlAlias[] |
public loadUrlAlias ( string $id ) : eZ\Publish\SPI\Persistence\Content\UrlAlias | ||
$id | string | |
Результат | eZ\Publish\SPI\Persistence\Content\UrlAlias |
public locationDeleted ( mixed $locationId ) | ||
$locationId | mixed |
public locationSwapped ( $location1Id, $location1ParentId, $location2Id, $location2ParentId ) |
public publishUrlAliasForLocation ( $locationId, $parentLocationId, $name, $languageCode, $alwaysAvailable = false, $updatePathIdentificationString = false ) |
public removeURLAliases ( array $urlAliases ) : boolean | ||
$urlAliases | array | |
Результат | boolean |
protected Gateway,eZ\Publish\Core\Persistence\Legacy\Content\UrlAlias $gateway | ||
Результат |
protected CachingHandler,eZ\Publish\Core\Persistence\Legacy\Content\Language $languageHandler | ||
Результат |
protected Gateway,eZ\Publish\Core\Persistence\Legacy\Content\Location $locationGateway | ||
Результат |
protected Mapper,eZ\Publish\Core\Persistence\Legacy\Content\UrlAlias $mapper | ||
Результат |