PHP Класс WellCommerce\Bundle\LocaleBundle\Command\DeleteLocaleCommand

Автор: Adam Piotrowski ([email protected])
Наследование: extends Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$doctrineHelper WellCommerce\Bundle\DoctrineBundle\Helper\Doctrine\DoctrineHelperInterface
$localeRepository WellCommerce\Bundle\LocaleBundle\Repository\LocaleRepositoryInterface

Открытые методы

Метод Описание
__construct ( WellCommerce\Bundle\DoctrineBundle\Helper\Doctrine\DoctrineHelperInterface $doctrineHelper, WellCommerce\Bundle\LocaleBundle\Repository\LocaleRepositoryInterface $localeRepository ) DeleteLocaleCommand constructor.

Защищенные методы

Метод Описание
configure ( )
deleteLocaleData ( $localeCode, Symfony\Component\Console\Output\OutputInterface $output ) Deletes the locale
deleteTranslatableEntities ( Doctrine\ORM\EntityRepository $repository, WellCommerce\Bundle\LocaleBundle\Entity\LocaleInterface $locale, Symfony\Component\Console\Output\OutputInterface $output ) Deletes the translatable entities for locale
execute ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output )
getSourceLocales ( ) : array

Описание методов

__construct() публичный Метод

DeleteLocaleCommand constructor.
public __construct ( WellCommerce\Bundle\DoctrineBundle\Helper\Doctrine\DoctrineHelperInterface $doctrineHelper, WellCommerce\Bundle\LocaleBundle\Repository\LocaleRepositoryInterface $localeRepository )
$doctrineHelper WellCommerce\Bundle\DoctrineBundle\Helper\Doctrine\DoctrineHelperInterface
$localeRepository WellCommerce\Bundle\LocaleBundle\Repository\LocaleRepositoryInterface

configure() защищенный Метод

protected configure ( )

deleteLocaleData() защищенный Метод

Deletes the locale
protected deleteLocaleData ( $localeCode, Symfony\Component\Console\Output\OutputInterface $output )
$localeCode
$output Symfony\Component\Console\Output\OutputInterface

deleteTranslatableEntities() защищенный Метод

Deletes the translatable entities for locale
protected deleteTranslatableEntities ( Doctrine\ORM\EntityRepository $repository, WellCommerce\Bundle\LocaleBundle\Entity\LocaleInterface $locale, Symfony\Component\Console\Output\OutputInterface $output )
$repository Doctrine\ORM\EntityRepository
$locale WellCommerce\Bundle\LocaleBundle\Entity\LocaleInterface
$output Symfony\Component\Console\Output\OutputInterface

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

getSourceLocales() защищенный Метод

protected getSourceLocales ( ) : array
Результат array

Описание свойств

$doctrineHelper защищенное свойство

protected DoctrineHelperInterface,WellCommerce\Bundle\DoctrineBundle\Helper\Doctrine $doctrineHelper
Результат WellCommerce\Bundle\DoctrineBundle\Helper\Doctrine\DoctrineHelperInterface

$localeRepository защищенное свойство

protected LocaleRepositoryInterface,WellCommerce\Bundle\LocaleBundle\Repository $localeRepository
Результат WellCommerce\Bundle\LocaleBundle\Repository\LocaleRepositoryInterface