<?php
/**
 * Form Helper Form Events
 *
 * @author Elze Kool <info@visualmedia.nl>
 */

namespace VisualM\FormBundle\Helper\Event;

/**
 * Form Helper Form Events
 *
 * @author Elze Kool <info@visualmedia.nl>
 */
class FormHelperEvents
{
    /**
     * Event triggered after the the form builder is fully populated
     *
     * The event listener receives an
     * VisualM\FormBundle\Helper\Event\AfterPopulateBuilderEvent instance.
     *
     * @var string
     */
    const AFTER_POPULATE_BUILDER = 'visualm_form.after_populate_builder';

    /**
     * Event triggered when field is added to the form builder
     *
     * The event listener receives an
     * VisualM\FormBundle\Helper\Event\OnFieldAddEvent instance.
     *
     * @var string
     */
    const ON_FIELD_ADD = 'visualm_form.on_field_add';

    /**
     * Event triggered when user is redirected on form submit
     *
     * The event listener receives an
     * VisualM\FormBundle\Helper\Event\OnRedirectResponseEvent instance.
     *
     * @var string
     */
    const ON_REDIRECT_RESPONSE = 'visualm_form.on_redirect_response';

    /**
     * Event triggered after HTML for Form / E-mail is renderered
     * allows modifying the rendered HTML
     *
     * The event listener receives an
     * VisualM\FormBundle\Helper\Event\AfterHtmlRenderEvent instance.
     *
     * @var string
     */
    const AFTER_HTML_RENDER = 'visualm_form.after_html_render';


}
