PHP 클래스 eZ\Bundle\EzPublishMigrationBundle\Command\LegacyStorage\RegenerateUrlAliasesCommand

상속: extends Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand
파일 보기 프로젝트 열기: ezsystems/ezpublish-kernel

보호된 프로퍼티들

프로퍼티 타입 설명
$actionSet
$bulkCount integer
$connection Doctrine\DBAL\Connection
$contentService eZ\Publish\API\Repository\ContentService
$nameSchemaResolver eZ\Publish\Core\Repository\Helper\NameSchemaService
$output Symfony\Component\Console\Output\OutputInterface
$urlAliasGateway eZ\Publish\Core\Persistence\Legacy\Content\UrlAlias\Gateway
$urlAliasHandler eZ\Publish\SPI\Persistence\Content\UrlAlias\Handler

보호된 메소드들

메소드 설명
backupCustomLocationAliases ( ) Backups custom Location URL aliases the custom URL alias backup table.
backupGlobalAliases ( ) Backups global URL aliases the custom URL alias backup table.
checkStorage ( ) Checks that configured storage engine is Legacy Storage Engine.
combinePaths ( array $pathData ) : string[] Combines path data to an array of URL alias paths.
configure ( )
createCustomLocationUrlAliasBackupTable ( ) Creates database table for custom Location URL alias backup.
createGlobalUrlAliasBackupTable ( ) Creates database table for custom URL alias backup.
doBackupCustomLocationAliases ( ) Internal method for backing up custom Location URL aliases.
doBackupGlobalAliases ( ) Internal method for backing up global URL aliases.
doGenerateLocationAliases ( ) Internal method for generating URL aliases.
doRestoreCustomLocationAliases ( ) Restores custom Location URL aliases from the backup table.
doRestoreGlobalAliases ( ) Restores global URL aliases from the backup table.
execute ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output )
extractPathElements ( array $levelData ) : string[] Returns all path element strings found for the given path $levelData.
generateLocationAliases ( ) Generates URL aliases from the Location and Content data to the migration table.
getProgressBar ( integer $maxSteps ) : ProgressBar Returns configured progress bar helper.
getTotalBackupCount ( string $table ) : integer Return the number of rows in the given $table (on ID column).
getTotalLocationContentCount ( ) Returns total number of Content objects having a Location in the database.
getTotalLocationCount ( ) Returns total number of Locations in the database.
initialize ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output )
isTableEmpty ( string $name ) : boolean Checks if database table $name is empty.
loadLocationData ( Doctrine\DBAL\Query\QueryBuilder $queryBuilder, integer $pass ) : array Loads Location data for the given $pass.
loadPassData ( Doctrine\DBAL\Query\QueryBuilder $queryBuilder, integer $pass ) : array Loads Location data for the given $pass.
publishAliases ( integer | string $locationId, integer | string $parentLocationId, integer | string $contentId ) : integer Publishes URL aliases in all languages for the given parameters.
restoreCustomLocationAliases ( ) Restores custom Location URL aliases from the backup table.
restoreGlobalAliases ( ) Restores global URL aliases from the backup table.
setDefaultTable ( ) Sets storage gateway to the default table.
setMigrationTable ( ) Sets storage gateway to the migration table.
storeCustomAliasPath ( integer $locationId, string $path, string $languageCode, boolean $alwaysAvailable, boolean $forwarding ) Stores custom URL alias data for $path to the backup table.
storeCustomAliases ( array $aliases ) : integer Stores given custom $aliases to the custom alias backup table.
storeGlobalAlias ( eZ\Publish\SPI\Persistence\Content\UrlAlias $alias ) : integer Stores given global URL $alias to the global URL alias backup table.
storeGlobalAliasPath ( string $resource, string $path, string $languageCode, boolean $alwaysAvailable, boolean $forwarding ) Stores global URL alias data for $path to the backup table.
tableExists ( string $name ) : boolean Checks if database table $name exists.

메소드 상세

backupCustomLocationAliases() 보호된 메소드

Backups custom Location URL aliases the custom URL alias backup table.

backupGlobalAliases() 보호된 메소드

Backups global URL aliases the custom URL alias backup table.
protected backupGlobalAliases ( )

checkStorage() 보호된 메소드

Checks that configured storage engine is Legacy Storage Engine.
protected checkStorage ( )

combinePaths() 보호된 메소드

Explanation: Custom Location and global URL aliases can generate NOP entries, which can be taken over by the autogenerated aliases. When multiple languages exists for the Location that took over, multiple entries with the same link will exist on the same level. In that case it will not be possible to reliably reconstruct what was the path for the original custom alias. For that reason we combine path data to get all possible path combinations. Note: it could happen that original NOP entry was historized after being taken over by the autogenerated alias. So to be complete this would have to take into account history entries as well, but at the moment we lack API to do that. Proper solution of this problem would be introducing separate database table to store custom/global URL alias data.
또한 보기: https://jira.ez.no/browse/EZP-20777
protected combinePaths ( array $pathData ) : string[]
$pathData array
리턴 string[]

configure() 보호된 메소드

protected configure ( )

createCustomLocationUrlAliasBackupTable() 보호된 메소드

Creates database table for custom Location URL alias backup.

createGlobalUrlAliasBackupTable() 보호된 메소드

Creates database table for custom URL alias backup.

doBackupCustomLocationAliases() 보호된 메소드

Internal method for backing up custom Location URL aliases.
또한 보기: eZ\Bundle\EzPublishMigrationBundle\Command\LegacyStorage\RegenerateUrlAliasesCommand::backupCustomLocationAliases()

doBackupGlobalAliases() 보호된 메소드

Internal method for backing up global URL aliases.
또한 보기: eZ\Bundle\EzPublishMigrationBundle\Command\LegacyStorage\RegenerateUrlAliasesCommand::backupGlobalAliases()
protected doBackupGlobalAliases ( )

doGenerateLocationAliases() 보호된 메소드

Internal method for generating URL aliases.
또한 보기: eZ\Bundle\EzPublishMigrationBundle\Command\LegacyStorage\RegenerateUrlAliasesCommand::generateLocationAliases()

doRestoreCustomLocationAliases() 보호된 메소드

Restores custom Location URL aliases from the backup table.
또한 보기: eZ\Bundle\EzPublishMigrationBundle\Command\LegacyStorage\RegenerateUrlAliasesCommand::restoreCustomLocationAliases()

doRestoreGlobalAliases() 보호된 메소드

Restores global URL aliases from the backup table.
또한 보기: eZ\Bundle\EzPublishMigrationBundle\Command\LegacyStorage\RegenerateUrlAliasesCommand::restoreGlobalAliases()
protected doRestoreGlobalAliases ( )

execute() 보호된 메소드

protected execute ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output )
$input Symfony\Component\Console\Input\InputInterface
$output Symfony\Component\Console\Output\OutputInterface

extractPathElements() 보호된 메소드

Returns all path element strings found for the given path $levelData.
protected extractPathElements ( array $levelData ) : string[]
$levelData array
리턴 string[]

generateLocationAliases() 보호된 메소드

Generates URL aliases from the Location and Content data to the migration table.
protected generateLocationAliases ( )

getProgressBar() 보호된 메소드

Returns configured progress bar helper.
protected getProgressBar ( integer $maxSteps ) : ProgressBar
$maxSteps integer
리턴 Symfony\Component\Console\Helper\ProgressBar

getTotalBackupCount() 보호된 메소드

Return the number of rows in the given $table (on ID column).
protected getTotalBackupCount ( string $table ) : integer
$table string
리턴 integer

getTotalLocationContentCount() 보호된 메소드

The number excludes absolute root Location, which does not have an URL alias.

getTotalLocationCount() 보호된 메소드

The number excludes absolute root Location, which does not have an URL alias.
protected getTotalLocationCount ( )

initialize() 보호된 메소드

protected initialize ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output )
$input Symfony\Component\Console\Input\InputInterface
$output Symfony\Component\Console\Output\OutputInterface

isTableEmpty() 보호된 메소드

Checks if database table $name is empty.
protected isTableEmpty ( string $name ) : boolean
$name string
리턴 boolean

loadLocationData() 보호된 메소드

Loads Location data for the given $pass.
protected loadLocationData ( Doctrine\DBAL\Query\QueryBuilder $queryBuilder, integer $pass ) : array
$queryBuilder Doctrine\DBAL\Query\QueryBuilder
$pass integer
리턴 array

loadPassData() 보호된 메소드

Loads Location data for the given $pass.
protected loadPassData ( Doctrine\DBAL\Query\QueryBuilder $queryBuilder, integer $pass ) : array
$queryBuilder Doctrine\DBAL\Query\QueryBuilder
$pass integer
리턴 array

publishAliases() 보호된 메소드

Publishes URL aliases in all languages for the given parameters.
protected publishAliases ( integer | string $locationId, integer | string $parentLocationId, integer | string $contentId ) : integer
$locationId integer | string
$parentLocationId integer | string
$contentId integer | string
리턴 integer

restoreCustomLocationAliases() 보호된 메소드

Restores custom Location URL aliases from the backup table.

restoreGlobalAliases() 보호된 메소드

Restores global URL aliases from the backup table.
protected restoreGlobalAliases ( )

setDefaultTable() 보호된 메소드

Sets storage gateway to the default table.
또한 보기: eZ\Publish\Core\Persistence\Legacy\Content\UrlAlias\Gateway::TABLE
protected setDefaultTable ( )

setMigrationTable() 보호된 메소드

Sets storage gateway to the migration table.
또한 보기: eZ\Bundle\EzPublishMigrationBundle\Command\LegacyStorage\RegenerateUrlAliasesCommand::MIGRATION_TABLE
protected setMigrationTable ( )

storeCustomAliasPath() 보호된 메소드

Stores custom URL alias data for $path to the backup table.
protected storeCustomAliasPath ( integer $locationId, string $path, string $languageCode, boolean $alwaysAvailable, boolean $forwarding )
$locationId integer
$path string
$languageCode string
$alwaysAvailable boolean
$forwarding boolean

storeCustomAliases() 보호된 메소드

Stores given custom $aliases to the custom alias backup table.
protected storeCustomAliases ( array $aliases ) : integer
$aliases array
리턴 integer

storeGlobalAlias() 보호된 메소드

Stores given global URL $alias to the global URL alias backup table.
protected storeGlobalAlias ( eZ\Publish\SPI\Persistence\Content\UrlAlias $alias ) : integer
$alias eZ\Publish\SPI\Persistence\Content\UrlAlias
리턴 integer

storeGlobalAliasPath() 보호된 메소드

Stores global URL alias data for $path to the backup table.
protected storeGlobalAliasPath ( string $resource, string $path, string $languageCode, boolean $alwaysAvailable, boolean $forwarding )
$resource string
$path string
$languageCode string
$alwaysAvailable boolean
$forwarding boolean

tableExists() 보호된 메소드

Checks if database table $name exists.
protected tableExists ( string $name ) : boolean
$name string
리턴 boolean

프로퍼티 상세

$actionSet 보호되어 있는 프로퍼티

protected $actionSet

$bulkCount 보호되어 있는 프로퍼티

protected int $bulkCount
리턴 integer

$connection 보호되어 있는 프로퍼티

protected Connection,Doctrine\DBAL $connection
리턴 Doctrine\DBAL\Connection

$contentService 보호되어 있는 프로퍼티

protected ContentService,eZ\Publish\API\Repository $contentService
리턴 eZ\Publish\API\Repository\ContentService

$nameSchemaResolver 보호되어 있는 프로퍼티

protected NameSchemaService,eZ\Publish\Core\Repository\Helper $nameSchemaResolver
리턴 eZ\Publish\Core\Repository\Helper\NameSchemaService

$output 보호되어 있는 프로퍼티

protected OutputInterface,Symfony\Component\Console\Output $output
리턴 Symfony\Component\Console\Output\OutputInterface

$urlAliasGateway 보호되어 있는 프로퍼티

protected Gateway,eZ\Publish\Core\Persistence\Legacy\Content\UrlAlias $urlAliasGateway
리턴 eZ\Publish\Core\Persistence\Legacy\Content\UrlAlias\Gateway

$urlAliasHandler 보호되어 있는 프로퍼티

protected Handler,eZ\Publish\SPI\Persistence\Content\UrlAlias $urlAliasHandler
리턴 eZ\Publish\SPI\Persistence\Content\UrlAlias\Handler