PHP Class WellCommerce\Bundle\DictionaryBundle\Manager\DictionaryManager

Author: Adam Piotrowski ([email protected])
Inheritance: extends WellCommerce\Bundle\CoreBundle\Manager\AbstractManager
Show file Open project: wellcommerce/wellcommerce Class Usage Examples

Protected Properties

Property Type Description
$filesystem Symfony\Component\Filesystem\Filesystem
$kernel Symfony\Component\HttpKernel\KernelInterface
$locales array | WellCommerce\Bundle\LocaleBundle\Entity\Locale[]
$propertyAccessor Symfony\Component\PropertyAccess\PropertyAccessorInterface

Public Methods

Method Description
syncDictionary ( ) Synchronizes database and filesystem translations

Protected Methods

Method Description
getDatabaseTranslations ( WellCommerce\Bundle\LocaleBundle\Entity\LocaleInterface $locale ) : array Returns an array containing all previously imported translations
getFilesystemTranslationsPath ( )
synchronizeDatabaseTranslations ( array $messages, WellCommerce\Bundle\LocaleBundle\Entity\LocaleInterface $locale )
updateTranslationsForLocale ( WellCommerce\Bundle\LocaleBundle\Entity\LocaleInterface $locale )

Method Details

getDatabaseTranslations() protected method

Returns an array containing all previously imported translations
protected getDatabaseTranslations ( WellCommerce\Bundle\LocaleBundle\Entity\LocaleInterface $locale ) : array
$locale WellCommerce\Bundle\LocaleBundle\Entity\LocaleInterface
return array

getFilesystemTranslationsPath() protected method

syncDictionary() public method

Synchronizes database and filesystem translations
public syncDictionary ( )

synchronizeDatabaseTranslations() protected method

protected synchronizeDatabaseTranslations ( array $messages, WellCommerce\Bundle\LocaleBundle\Entity\LocaleInterface $locale )
$messages array
$locale WellCommerce\Bundle\LocaleBundle\Entity\LocaleInterface

updateTranslationsForLocale() protected method

protected updateTranslationsForLocale ( WellCommerce\Bundle\LocaleBundle\Entity\LocaleInterface $locale )
$locale WellCommerce\Bundle\LocaleBundle\Entity\LocaleInterface

Property Details

$filesystem protected property

protected Filesystem,Symfony\Component\Filesystem $filesystem
return Symfony\Component\Filesystem\Filesystem

$kernel protected property

protected KernelInterface,Symfony\Component\HttpKernel $kernel
return Symfony\Component\HttpKernel\KernelInterface

$locales protected property

protected array|Locale[],WellCommerce\Bundle\LocaleBundle\Entity $locales
return array | WellCommerce\Bundle\LocaleBundle\Entity\Locale[]

$propertyAccessor protected property

protected PropertyAccessorInterface,Symfony\Component\PropertyAccess $propertyAccessor
return Symfony\Component\PropertyAccess\PropertyAccessorInterface