PHP Class Sulu\Bundle\ContactBundle\Command\AccountRecoverCommand

This command is fixing wrong left/right and depths (see -d) assignments of the nested tree.
Inheritance: extends Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand
Mostrar archivo Open project: sulu/sulu

Protected Methods

Method Description
configure ( )
execute ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output ) Execute command.

Private Methods

Method Description
findInitialWrongDepthGap ( ) : integer Find number of nodes where difference to parents depth > 1.
findNodesWithoutParents ( ) : integer Find number of nodes that have no parent but depth > 0.
fixNodesWithoutParents ( ) Set every node where depth > 0 and has no parents to depth 0.
fixWrongDepthGap ( ) : integer | boolean Fix nodes where difference to parents depth.
getEntityManager ( ) : EntityManager
getEntityRepository ( ) : EntityRepository

Method Details

configure() protected method

protected configure ( )

execute() protected method

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