TranslationCollectionFormListener

class TranslationCollectionFormListener implements EventSubscriberInterface listener class for propel1translatablecollection Methods __construct($languages, $i18nClass) static array getSubscribedEvents() Returns an array of event names this subscriber wants to listen to. preSetData(FormEvent $event) Details __construct($languages, $i18nClass) Parameters $languages $i18nClass static array getSubscrib

Transformer::format()

abstract string format(DateTime $dateTime, int $length) Format a value using a configured DateTime as date/time source. Parameters DateTime $dateTime A DateTime object to be used to generate the formatted value int $length The formatted value string length Return Value string The formatted value

Transformer::getReverseMatchingRegExp()

abstract string getReverseMatchingRegExp(int $length) Returns a reverse matching regular expression of a string generated by format(). Parameters int $length The length of the value to be reverse matched Return Value string The reverse matching regular expression

Transformer deprecated

class Transformer extends Transformer deprecated since version 2.3, to be removed in 3.0. Use {@link \Symfony\Component\Intl\DateFormatter\DateFormat\Transformer} instead. Alias of {@link \Symfony\Component\Intl\DateFormatter\DateFormat\Transformer}. Methods string format(DateTime $dateTime, int $length) Format a value using a configured DateTime as date/time source. from Transformer string getReverseMatchingRegExp(int $length) Returns a reverse matching regular expression of a s

TransformationRuleInterface::getBundleName()

string getBundleName() Returns the name of the compiled resource bundle. Return Value string The name of the bundle.

TransformationRuleInterface::beforeCreateStub()

mixed beforeCreateStub(StubbingContextInterface $context) Runs instructions to be executed before creating the stub version of the resource bundle. Parameters StubbingContextInterface $context The contextual information of the compilation. Return Value mixed The data to include in the stub version.

Transformer

class Transformer Parser and formatter for date formats. Methods string format(DateTime $dateTime, int $length) Format a value using a configured DateTime as date/time source. string getReverseMatchingRegExp(int $length) Returns a reverse matching regular expression of a string generated by format(). array extractDateOptions(string $matched, int $length) Extract date options from a matched value returned by the processing of the reverse matching regular expression. Details

TransformationRuleInterface::beforeCompile()

string[] beforeCompile(CompilationContextInterface $context) Runs instructions to be executed before compiling the sources of the resource bundle. Parameters CompilationContextInterface $context The contextual information of the compilation. Return Value string[] The source directories/files of the bundle.

TransformationRuleInterface::afterCreateStub()

afterCreateStub(StubbingContextInterface $context) Runs instructions to be executed after creating the stub version of the resource bundle. Parameters StubbingContextInterface $context The contextual information of the compilation.

TransformationRuleInterface::afterCompile()

afterCompile(CompilationContextInterface $context) Runs instructions to be executed after compiling the sources of the resource bundle. Parameters CompilationContextInterface $context The contextual information of the compilation.