TranslationDataCollector::collect()

collect(Request $request, Response $response, Exception $exception = null) Collects data for the given Request and Response. Parameters Request $request A Request instance Response $response A Response instance Exception $exception An Exception instance

TranslationDataCollector

class TranslationDataCollector extends DataCollector implements LateDataCollectorInterface Methods serialize() from DataCollector unserialize($data) from DataCollector __construct(DataCollectorTranslator $translator) lateCollect() Collects data as late as possible. collect(Request $request, Response $response, Exception $exception = null) Collects data for the given Request and Response. array getMessages() int getCountMissings() int getCountFallbacks(

TranslationCollectionType::getName()

string getName() Returns the name of this type. Return Value string The name of this type

TranslationCollectionType::buildForm()

buildForm(FormBuilderInterface $builder, array $options) Builds the form. This method is called for each type in the hierarchy starting from the top most type. Type extensions can further modify the form. Parameters FormBuilderInterface $builder The form builder array $options The options

TranslationCollectionType::getParent()

string|null|FormTypeInterface getParent() Returns the name of the parent type. You can also return a type instance from this method, although doing so is discouraged because it leads to a performance penalty. The support for returning type instances may be dropped from future releases. Return Value string|null|FormTypeInterface The name of the parent type if any, null otherwise.

TranslationCollectionType::setDefaultOptions()

setDefaultOptions(OptionsResolverInterface $resolver) Sets the default options for this type. Parameters OptionsResolverInterface $resolver The resolver for the options.

TranslationCollectionType

class TranslationCollectionType extends AbstractType form type for i18n-columns in propel Methods buildForm(FormBuilderInterface $builder, array $options) Builds the form. buildView(FormView $view, FormInterface $form, array $options) Builds the form view. from AbstractType finishView(FormView $view, FormInterface $form, array $options) Finishes the form view. from AbstractType setDefaultOptions(OptionsResolverInterface $resolver) Sets the default options for this type. s

TranslationCollectionFormListener::getSubscribedEvents()

static array getSubscribedEvents() Returns an array of event names this subscriber wants to listen to. The array keys are event names and the value can be: The method name to call (priority defaults to 0) An array composed of the method name to call and the priority An array of arrays composed of the method names to call and respective priorities, or 0 if unset For instance: array('eventName' => 'methodName') array('eventName' => array('methodName', $priority)) a

TranslationCollectionFormListener::preSetData()

preSetData(FormEvent $event) Parameters FormEvent $event

Transformer::extractDateOptions()

abstract array extractDateOptions(string $matched, int $length) Extract date options from a matched value returned by the processing of the reverse matching regular expression. Parameters string $matched The matched value int $length The length of the Transformer pattern string Return Value array An associative array