PHP 클래스 Sulu\Bundle\CategoryBundle\Command\RecoverCommand

This command is fixing wrong left/right and depths (see -d) assignments of the categories tree.
상속: extends Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand
파일 보기 프로젝트 열기: sulu/sulu

보호된 메소드들

메소드 설명
configure ( )
execute ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output ) Execute command.

비공개 메소드들

메소드 설명
findCategoriesWithoutParents ( ) : integer Find number of categories that have no parent but depth > 0.
findInitialWrongDepthGap ( ) : integer Find number of categories where difference to parents depth > 1.
fixCategoriesWithoutParents ( ) Set every category where depth > 0 and has no parents to depth 0.
fixWrongDepthGap ( ) : integer | boolean Fix categories where difference to parents depth.
getCategoryRepository ( ) : Sulu\Bundle\CategoryBundle\Entity\CategoryRepositoryInterface
getEntityManager ( ) : EntityManager

메소드 상세

configure() 보호된 메소드

protected configure ( )

execute() 보호된 메소드

Execute command.
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