PHP Class eZ\Publish\Core\Persistence\Legacy\Content\UrlAlias\Mapper

Mostrar archivo Open project: ezsystems/ezpublish-kernel Class Usage Examples

Protected Properties

Property Type Description
$languageMaskGenerator eZ\Publish\Core\Persistence\Legacy\Content\Language\MaskGenerator Language mask generator.

Public Methods

Method Description
__construct ( MaskGenerator $languageMaskGenerator ) Creates a new UrlWildcard Handler.
extractUrlAliasFromData ( mixed[] $data ) : eZ\Publish\SPI\Persistence\Content\UrlAlias Creates a UrlAlias object from database row data.
extractUrlAliasListFromData ( array $rows ) : eZ\Publish\SPI\Persistence\Content\UrlAlias[] Extracts UrlAlias objects from database $rows.

Protected Methods

Method Description
matchTypeAndDestination ( string $action ) : array
normalizePathData ( array $pathData ) : array
normalizePathDataRow ( array &$pathElementData, array $row )

Method Details

__construct() public method

Creates a new UrlWildcard Handler.
public __construct ( MaskGenerator $languageMaskGenerator )
$languageMaskGenerator eZ\Publish\Core\Persistence\Legacy\Content\Language\MaskGenerator

extractUrlAliasFromData() public method

Creates a UrlAlias object from database row data.
public extractUrlAliasFromData ( mixed[] $data ) : eZ\Publish\SPI\Persistence\Content\UrlAlias
$data mixed[]
return eZ\Publish\SPI\Persistence\Content\UrlAlias

extractUrlAliasListFromData() public method

Extracts UrlAlias objects from database $rows.
public extractUrlAliasListFromData ( array $rows ) : eZ\Publish\SPI\Persistence\Content\UrlAlias[]
$rows array
return eZ\Publish\SPI\Persistence\Content\UrlAlias[]

matchTypeAndDestination() protected method

protected matchTypeAndDestination ( string $action ) : array
$action string
return array

normalizePathData() protected method

protected normalizePathData ( array $pathData ) : array
$pathData array
return array

normalizePathDataRow() protected method

protected normalizePathDataRow ( array &$pathElementData, array $row )
$pathElementData array
$row array

Property Details

$languageMaskGenerator protected_oe property

Language mask generator.
protected MaskGenerator,eZ\Publish\Core\Persistence\Legacy\Content\Language $languageMaskGenerator
return eZ\Publish\Core\Persistence\Legacy\Content\Language\MaskGenerator