PHP Class eZ\Bundle\EzPublishMigrationBundle\Command\LegacyStorage\UpdateSortKeysCommand

Inheritance: extends Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand
显示文件 Open project: ezsystems/ezpublish-kernel

Protected Methods

Method Description
configure ( )
execute ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output )
loadData ( eZ\Publish\Core\Persistence\Database\SelectQuery $query, integer $bulkCount, integer $pass ) : array Loads field data for given $pass.
updateField ( Symfony\Component\Console\Output\OutputInterface $output, ProgressBar $progress, integer | string $contentId, integer $versionNo, string $fieldTypeIdentifier, boolean $dryRun ) For given $contentId in $versionNo updates fields of $fieldTypeIdentifier type.

Method Details

configure() protected method

protected configure ( )

execute() protected method

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

loadData() protected method

Loads field data for given $pass.
protected loadData ( eZ\Publish\Core\Persistence\Database\SelectQuery $query, integer $bulkCount, integer $pass ) : array
$query eZ\Publish\Core\Persistence\Database\SelectQuery
$bulkCount integer
$pass integer
return array

updateField() protected method

For given $contentId in $versionNo updates fields of $fieldTypeIdentifier type.
protected updateField ( Symfony\Component\Console\Output\OutputInterface $output, ProgressBar $progress, integer | string $contentId, integer $versionNo, string $fieldTypeIdentifier, boolean $dryRun )
$output Symfony\Component\Console\Output\OutputInterface
$progress Symfony\Component\Console\Helper\ProgressBar
$contentId integer | string
$versionNo integer
$fieldTypeIdentifier string
$dryRun boolean