PHP Class Frontend\Modules\FormBuilder\EventListener\FormBuilderSubmittedMailSubscriber

Author: Wouter Sioen ([email protected])
Datei anzeigen Open project: forkcms/forkcms

Protected Properties

Property Type Description
$mailer Swift_Mailer
$modulesSettings common\ModulesSettings

Public Methods

Method Description
__construct ( Swift_Mailer $mailer, ModulesSettings $modulesSettings )
onFormSubmitted ( FormBuilderSubmittedEvent $event )

Protected Methods

Method Description
getEmailFields ( array $data ) : array Converts the data to make sure it is nicely usable in the email

Method Details

__construct() public method

public __construct ( Swift_Mailer $mailer, ModulesSettings $modulesSettings )
$mailer Swift_Mailer
$modulesSettings common\ModulesSettings

getEmailFields() protected method

Converts the data to make sure it is nicely usable in the email
protected getEmailFields ( array $data ) : array
$data array
return array

onFormSubmitted() public method

public onFormSubmitted ( FormBuilderSubmittedEvent $event )
$event Frontend\Modules\FormBuilder\Event\FormBuilderSubmittedEvent

Property Details

$mailer protected_oe property

protected Swift_Mailer $mailer
return Swift_Mailer

$modulesSettings protected_oe property

protected ModulesSettings,Common $modulesSettings
return common\ModulesSettings