PHP 클래스 WellCommerce\Bundle\LocaleBundle\Command\DeleteLocaleCommand

저자: Adam Piotrowski ([email protected])
상속: extends Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand
파일 보기 프로젝트 열기: wellcommerce/wellcommerce

보호된 프로퍼티들

프로퍼티 타입 설명
$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