2008-09-29 05:18:23 +02:00
< ? php
/**
2009-04-14 04:06:18 +02:00
* User Defined Form Page type that lets users build a form in the CMS
* using the FieldEditor Field .
*
* @ package userforms
2008-09-29 05:18:23 +02:00
*/
2009-04-14 04:06:18 +02:00
2008-09-29 05:18:23 +02:00
class UserDefinedForm extends Page {
2008-09-29 07:33:43 +02:00
2009-04-14 04:06:18 +02:00
/**
2009-04-15 01:50:48 +02:00
* @ var String Add Action in the CMS
2009-04-14 04:06:18 +02:00
*/
static $add_action = " A User Form " ;
2008-09-29 05:18:23 +02:00
2009-04-14 04:06:18 +02:00
/**
2009-04-15 01:50:48 +02:00
* @ var String Icon for the User Defined Form in the CMS . Without the extension
2009-04-14 04:06:18 +02:00
*/
2008-09-29 05:18:23 +02:00
static $icon = " cms/images/treeicons/task " ;
2009-04-14 04:06:18 +02:00
/**
2009-04-15 01:50:48 +02:00
* @ var String What level permission is needed to edit / add
2009-04-14 04:06:18 +02:00
*/
2008-09-29 05:18:23 +02:00
static $need_permission = 'ADMIN' ;
2009-04-14 04:06:18 +02:00
/**
2009-04-15 01:50:48 +02:00
* @ var Array Fields on the user defined form page .
2009-04-14 04:06:18 +02:00
*/
2008-09-29 05:18:23 +02:00
static $db = array (
" SubmitButtonText " => " Varchar " ,
2009-02-11 03:00:20 +01:00
" OnCompleteMessage " => " HTMLText " ,
2009-04-15 00:59:46 +02:00
" ShowClearButton " => " Boolean "
2008-09-29 05:18:23 +02:00
);
2009-04-14 04:06:18 +02:00
/**
2009-04-15 01:50:48 +02:00
* @ var Array Default values of variables when this page is created
2009-04-14 04:06:18 +02:00
*/
2008-09-29 05:18:23 +02:00
static $defaults = array (
2009-04-14 04:06:18 +02:00
'Content' => '$UserDefinedForm' ,
'OnCompleteMessage' => '<p>Thanks, we\'ve received your submission.</p>'
2008-09-29 05:18:23 +02:00
);
2009-04-14 04:06:18 +02:00
/**
* @ var Array
*/
2008-09-29 05:18:23 +02:00
static $has_many = array (
" Fields " => " EditableFormField " ,
2009-04-14 04:06:18 +02:00
" Submissions " => " SubmittedForm " ,
" EmailRecipients " => " UserDefinedForm_EmailRecipient "
2008-09-29 05:18:23 +02:00
);
2009-04-14 04:06:18 +02:00
/**
* Setup the CMS Fields for the User Defined Form
*
* @ return FieldSet
*/
2009-04-15 01:50:48 +02:00
public function getCMSFields () {
2009-04-14 04:06:18 +02:00
$fields = parent :: getCMSFields ();
2008-09-29 05:18:23 +02:00
2009-04-14 04:06:18 +02:00
// field editor
2009-04-15 00:59:46 +02:00
$fields -> addFieldToTab ( " Root.Content. " . _t ( 'UserDefinedForm.FORM' , 'Form' ), new FieldEditor ( " Fields " , 'Fields' , " " , $this ));
2009-04-14 04:06:18 +02:00
// view the submissions
2009-04-15 00:59:46 +02:00
$fields -> addFieldToTab ( " Root.Content. " . _t ( 'UserDefinedForm.SUBMISSIONS' , 'Submissions' ), new SubmittedFormReportField ( " Reports " , _t ( 'UserDefinedForm.RECEIVED' , 'Received Submissions' ), " " , $this ) );
2009-04-15 01:21:52 +02:00
2009-04-14 04:06:18 +02:00
// who do we email on submission
$emailRecipients = new HasManyComplexTableField ( $this ,
'EmailRecipients' ,
'UserDefinedForm_EmailRecipient' ,
array (
'EmailAddress' => 'Email' ,
'EmailSubject' => 'Subject' ,
'EmailFrom' => 'From'
),
2009-04-15 01:21:52 +02:00
'getCMSFields_forPopup' ,
" FormID = ' $this->ID ' "
2009-04-14 04:06:18 +02:00
);
$emailRecipients -> setAddTitle ( _t ( 'UserDefinedForm.AEMAILRECIPIENT' , 'A Email Recipient' ));
2009-04-15 00:59:46 +02:00
$fields -> addFieldToTab ( " Root.Content. " . _t ( 'UserDefinedForm.EMAILRECIPIENTS' , 'Email Recipients' ), $emailRecipients );
2009-04-14 04:06:18 +02:00
// text to show on complete
2009-02-11 03:00:20 +01:00
$onCompleteFieldSet = new FieldSet (
new HtmlEditorField ( " OnCompleteMessage " , _t ( 'UserDefinedForm.ONCOMPLETELABEL' , 'Show on completion' ), 3 , " " , _t ( 'UserDefinedForm.ONCOMPLETEMESSAGE' , $this -> OnCompleteMessage ), $this ),
2009-04-14 04:06:18 +02:00
new TextField ( " EmailOnSubmitSubject " , _t ( 'UserDefinedForm.ONSUBMITSUBJECT' , 'Email Subject' )),
2009-02-11 03:00:20 +01:00
new HtmlEditorField ( " EmailMessageToSubmitter " , _t ( 'UserDefinedForm.EMAILMESSAGETOSUBMITTER' , 'Email message to submitter' ), 3 , " " , _t ( 'UserDefinedForm.EMAILMESSAGETOSUBMITTER' , $this -> EmailMessageToSubmitter ), $this )
);
$fields -> addFieldsToTab ( " Root.Content. " . _t ( 'UserDefinedForm.ONCOMPLETE' , 'On complete' ), $onCompleteFieldSet );
2008-09-29 05:18:23 +02:00
return $fields ;
}
2009-04-15 01:50:48 +02:00
2009-04-15 00:59:46 +02:00
/**
* Called on before delete remove all the fields from the database
*/
public function delete () {
foreach ( $this -> Fields () as $field ) {
$field -> delete ();
}
parent :: delete ();
}
2008-09-29 05:18:23 +02:00
2009-04-15 00:59:46 +02:00
/**
* Custom Form Actions for the form
*
* @ param bool Is the Form readonly
* @ return FieldSet
*/
public function customFormActions ( $isReadonly = false ) {
return new FieldSet (
new TextField ( " SubmitButtonText " , _t ( 'UserDefinedForm.TEXTONSUBMIT' , 'Text on submit button:' ), $this -> SubmitButtonText ),
new CheckboxField ( " ShowClearButton " , _t ( 'UserDefinedForm.SHOWCLEARFORM' , 'Show Clear Form Button' ), $this -> ShowClearButton )
);
2008-09-29 05:18:23 +02:00
}
2008-09-29 07:33:43 +02:00
2008-09-29 05:18:23 +02:00
/**
* Duplicate this UserDefinedForm page , and its form fields .
* Submissions , on the other hand , won ' t be duplicated .
2009-04-15 00:59:46 +02:00
*
* @ return Page
2008-09-29 05:18:23 +02:00
*/
public function duplicate () {
$page = parent :: duplicate ();
foreach ( $this -> Fields () as $field ) {
$newField = $field -> duplicate ();
$newField -> ParentID = $page -> ID ;
$newField -> write ();
}
return $page ;
}
}
/**
* Controller for the { @ link UserDefinedForm } page type .
2009-04-14 04:06:18 +02:00
*
* @ package userform
2008-09-29 05:18:23 +02:00
* @ subpackage pagetypes
*/
2009-04-14 04:06:18 +02:00
2008-09-29 05:18:23 +02:00
class UserDefinedForm_Controller extends Page_Controller {
2009-04-21 05:44:13 +02:00
/**
* Load all the custom jquery needed to run the custom
* validation
*/
public function init () {
// block prototype validation
Validator :: set_javascript_validation_handler ( 'none' );
// load the jquery
Requirements :: javascript ( THIRDPARTY_DIR . '/jquery/jquery.js' );
Requirements :: javascript ( THIRDPARTY_DIR . '/jquery/plugins/validate/jquery.validate.min.js' );
2008-09-29 05:18:23 +02:00
parent :: init ();
}
2009-04-15 01:50:48 +02:00
/**
* Using $UserDefinedForm in the Content area of the page shows
* where the form should be rendered into . If it does not exist
* then default back to $Form
*
* @ return Array
*/
public function index () {
2009-04-21 05:44:13 +02:00
if ( $this -> Content && $form = $this -> Form ()) {
2009-04-15 01:50:48 +02:00
$hasLocation = stristr ( $this -> Content , '$UserDefinedForm' );
if ( $hasLocation ) {
2009-04-21 05:44:13 +02:00
$content = str_ireplace ( '$UserDefinedForm' , $form -> forTemplate (), $this -> Content );
2009-04-15 01:50:48 +02:00
return array (
'Content' => $content ,
'Form' => " "
);
}
}
return array (
'Content' => $this -> Content ,
'Form' => $this -> Form
);
}
2009-04-27 08:00:05 +02:00
2009-04-14 04:06:18 +02:00
/**
* User Defined Form . Feature of the user defined form is if you want the
* form to appear in a custom location on the page you can use $UserDefinedForm
* in the content area to describe where you want the form
*
* @ return Form
*/
2009-04-21 05:44:13 +02:00
public function Form () {
2008-09-29 05:18:23 +02:00
$fields = new FieldSet ();
2009-04-21 05:44:13 +02:00
$fieldValidation = array ();
$fieldValidationRules = array ();
2009-04-24 00:52:08 +02:00
$CustomDisplayRules = " " ;
$defaults = " " ;
2009-04-21 05:44:13 +02:00
$this -> SubmitButtonText = ( $this -> SubmitButtonText ) ? $this -> SubmitButtonText : _t ( 'UserDefinedForm.SUBMITBUTTON' , 'Submit' );
2008-09-29 05:18:23 +02:00
2009-04-21 05:44:13 +02:00
if ( $this -> Fields ()) {
foreach ( $this -> Fields () as $field ) {
2009-04-24 00:52:08 +02:00
2009-04-21 05:44:13 +02:00
$fieldToAdd = $field -> getFormField ();
2009-04-27 08:17:02 +02:00
if ( ! $fieldToAdd ) break ;
2009-04-21 05:44:13 +02:00
$fieldValidationOptions = array ();
// Set the Error Messages
$errorMessage = sprintf ( _t ( 'Form.FIELDISREQUIRED' ) . '.' , strip_tags ( " ' " . ( $field -> Title ? $field -> Title : $field -> Name ) . " ' " ));
$errorMessage = ( $field -> CustomErrorMessage ) ? $field -> CustomErrorMessage : $errorMessage ;
$fieldToAdd -> setCustomValidationMessage ( $errorMessage );
// Is this field required
if ( $field -> Required ) {
$fieldValidation [ $field -> Name ] = $errorMessage ;
$fieldValidationOptions [ 'required' ] = true ;
}
// Add field to the form
$fields -> push ( $fieldToAdd );
// Ask our form field for some more information on hour it should be validated
$fieldValidationOptions = array_merge ( $fieldValidationOptions , $field -> getValidation ());
// Check if we have need to update the global validation
if ( $fieldValidationOptions ) {
$fieldValidationRules [ $field -> Name ] = $fieldValidationOptions ;
}
2009-04-24 00:52:08 +02:00
// Is this Field Show by Default
if ( ! $field -> ShowOnLoad ) {
$defaults .= " $ ( \" # " . $field -> Name . " \" ).hide(); \n " ;
}
// Check for field dependencies / default
if ( $field -> Dependencies ()) {
foreach ( $field -> Dependencies () as $dependency ) {
if ( is_array ( $dependency ) && isset ( $dependency [ 'ConditionField' ]) && $dependency [ 'ConditionField' ] != " " ) {
// get the field which is effected
$formName = Convert :: raw2sql ( $dependency [ 'ConditionField' ]);
$formFieldWatch = DataObject :: get_one ( " EditableFormField " , " Name = ' $formName ' " );
if ( ! $formFieldWatch ) break ;
$fieldToWatch = " $ ( \" #Form_Form_ " . $dependency [ 'ConditionField' ] . " \" ) " ;
// show or hide?
$view = ( isset ( $dependency [ 'Display' ]) && $dependency [ 'Display' ] == " Show " ) ? " show " : " hide " ;
$opposite = ( $view == " show " ) ? " hide " : " show " ;
$Action = ( $formFieldWatch -> ClassName == " EditableTextField " ) ? " keyup " : " change " ;
switch ( $dependency [ 'ConditionOption' ]) {
case 'IsNotBlank' :
$matches = '!= ""' ;
break ;
case 'IsBlank' :
$matches = '== ""' ;
break ;
case 'HasValue' :
$matches = '== "' . $dependency [ 'Value' ] . '"' ;
break ;
default :
$matches = '!= "' . $dependency [ 'Value' ] . '"' ;
break ;
}
// put it all together
$CustomDisplayRules .= $fieldToWatch . " . $Action (function() {
if ( $ ( this ) . val () " . $matches . " ) {
$ ( \ " # " . $field -> Name . " \" ). " . $view . " ();
}
else {
$ ( \ " # " . $field -> Name . " \" ). " . $opposite . " ();
}
}); " ;
}
}
}
2009-04-21 05:44:13 +02:00
}
2008-09-29 05:18:23 +02:00
}
$referer = isset ( $_SERVER [ 'HTTP_REFERER' ]) ? $_SERVER [ 'HTTP_REFERER' ] : '' ;
2009-04-21 05:44:13 +02:00
// Keep track of the referer
2008-09-29 05:18:23 +02:00
$fields -> push ( new HiddenField ( " Referrer " , " " , $referer ) );
// Build actions
2009-04-15 00:59:46 +02:00
$actions = new FieldSet (
new FormAction ( " process " , $this -> SubmitButtonText )
2008-09-29 05:18:23 +02:00
);
2009-04-20 05:07:57 +02:00
// Do we want to add a clear form.
2009-04-15 00:59:46 +02:00
if ( $this -> ShowClearButton ) {
$actions -> push ( new ResetFormAction ( " clearForm " ));
}
2009-04-21 05:44:13 +02:00
// return the form
$form = new Form ( $this , " Form " , $fields , $actions , new RequiredFields ( array_keys ( $fieldValidation )));
2008-09-29 05:18:23 +02:00
$form -> loadDataFrom ( $this -> failover );
2009-04-21 05:44:13 +02:00
$FormName = $form -> FormName ();
2009-04-24 00:52:08 +02:00
// Set the Form Name
2009-04-21 05:44:13 +02:00
$rules = $this -> array2json ( $fieldValidationRules );
$messages = $this -> array2json ( $fieldValidation );
2009-04-24 00:52:08 +02:00
2009-04-21 05:44:13 +02:00
// set the custom script for this form
Requirements :: customScript ( <<< JS
( function ( $ ) {
$ ( document ) . ready ( function () {
2009-04-24 00:52:08 +02:00
$defaults
2009-04-21 05:44:13 +02:00
$ ( " # $FormName " ) . validate ({
errorClass : " required " ,
messages :
$messages
,
rules :
$rules
});
2009-04-24 00:52:08 +02:00
$CustomDisplayRules
2009-04-21 05:44:13 +02:00
});
})( jQuery );
JS
);
2009-03-25 03:06:28 +01:00
2008-09-29 05:18:23 +02:00
return $form ;
}
2009-04-21 05:44:13 +02:00
/**
* Convert a PHP array to a JSON string . We cannot use { @ link Convert :: array2json }
* as it escapes our values with " " which appears to break the validate plugin
*
* @ param Array array to convert
* @ return JSON
*/
protected function array2json ( $array ) {
foreach ( $array as $key => $value )
if ( is_array ( $value )) {
$result [] = " $key : " . $this -> array2json ( $value );
} else {
$value = ( is_bool ( $value )) ? $value : " \" $value\ " " ;
$result [] = " $key : $value \n " ;
}
2009-04-24 00:52:08 +02:00
return ( isset ( $result )) ? " { \n " . implode ( ', ' , $result ) . " } \n " : '{}' ;
2009-04-21 05:44:13 +02:00
}
2009-04-14 04:06:18 +02:00
/**
* Process the form that is submitted through the site
*
* @ param Array Data
* @ param Form Form
* @ return Redirection
*/
function process ( $data , $form ) {
// submitted form object
2008-09-29 05:18:23 +02:00
$submittedForm = new SubmittedForm ();
$submittedForm -> SubmittedBy = Member :: currentUser ();
$submittedForm -> ParentID = $this -> ID ;
$submittedForm -> Recipient = $this -> EmailTo ;
$submittedForm -> write ();
2009-04-14 04:06:18 +02:00
// email values
2008-09-29 05:18:23 +02:00
$values = array ();
$recipientAddresses = array ();
$sendCopy = false ;
$attachments = array ();
2009-02-27 02:21:10 +01:00
2009-04-20 01:52:44 +02:00
$submittedFields = new DataObjectSet ();
2009-04-14 04:06:18 +02:00
foreach ( $this -> Fields () as $field ) {
2008-09-29 05:18:23 +02:00
$submittedField = new SubmittedFormField ();
$submittedField -> ParentID = $submittedForm -> ID ;
$submittedField -> Name = $field -> Name ;
$submittedField -> Title = $field -> Title ;
2009-04-27 08:17:02 +02:00
if ( $field -> hasMethod ( 'getValueFromData' )) {
$submittedField -> Value = $field -> getValueFromData ( $data );
2009-04-14 04:06:18 +02:00
}
else {
2008-09-29 05:18:23 +02:00
if ( isset ( $data [ $field -> Name ])) $submittedField -> Value = $data [ $field -> Name ];
2009-04-14 04:06:18 +02:00
}
2008-09-29 05:18:23 +02:00
$submittedField -> write ();
$submittedFields -> push ( $submittedField );
2009-04-14 04:06:18 +02:00
2009-04-20 01:22:22 +02:00
if ( ! empty ( $data [ $field -> Name ])){
switch ( $field -> ClassName ){
2008-09-29 05:18:23 +02:00
case " EditableFileField " :
2009-04-20 01:22:22 +02:00
if ( isset ( $_FILES [ $field -> Name ])) {
// create the file from post data
$upload = new Upload ();
$file = new File ();
$upload -> loadIntoFile ( $_FILES [ $field -> Name ], $file );
// write file to form field
$submittedField -> UploadedFileID = $file -> ID ;
// Attach the file if its less than 1MB, provide a link if its over.
if ( $file -> getAbsoluteSize () < 1024 * 1024 * 1 ){
$attachments [] = $file ;
}
// Always provide the link if present.
if ( $file -> ID ) {
$submittedField -> Value = " <a href= \" " . $file -> getFilename () . " \" title= \" " . $file -> getFilename () . " \" > " . $file -> Title . " </a> " ;
} else {
$submittedField -> Value = " " ;
}
$submittedField -> write ();
2009-04-20 01:26:43 +02:00
}
2008-09-29 05:18:23 +02:00
break ;
}
}
2009-04-20 01:26:43 +02:00
elseif ( $field -> hasMethod ( 'getValueFromData' )) {
$values [ $field -> Title ] = Convert :: linkIfMatch ( $field -> getValueFromData ( $data ));
} else {
if ( isset ( $data [ $field -> Name ])) $values [ $field -> Title ] = Convert :: linkIfMatch ( $data [ $field -> Name ]);
}
2008-09-29 05:18:23 +02:00
}
2009-02-11 03:27:55 +01:00
$emailData = array (
" Sender " => Member :: currentUser (),
" Fields " => $submittedFields ,
);
2009-04-20 01:22:22 +02:00
2009-04-14 05:26:14 +02:00
// email users on submit. All have their own custom options.
2009-04-14 04:06:18 +02:00
if ( $this -> EmailRecipients ()) {
$email = new UserDefinedForm_SubmittedFormEmail ( $submittedFields );
2008-09-29 05:18:23 +02:00
$email -> populateTemplate ( $emailData );
if ( $attachments ){
foreach ( $attachments as $file ){
2009-04-20 01:22:22 +02:00
// bug with double decorated fields, valid ones should have an ID.
if ( $file -> ID != 0 ) {
$email -> attachFile ( $file -> Filename , $file -> Filename , $file -> getFileType ());
}
2008-09-29 05:18:23 +02:00
}
}
2009-04-20 01:22:22 +02:00
2009-04-14 04:06:18 +02:00
foreach ( $this -> EmailRecipients () as $recipient ) {
$email -> populateTemplate ( $emailData );
$email -> setFrom ( $recipient -> EmailFrom );
$email -> setBody ( $recipient -> EmailBody );
$email -> setSubject ( $recipient -> EmailSubject );
$email -> setTo ( $recipient -> EmailAddress );
2009-04-14 05:26:14 +02:00
// check to see if they are a dynamic recipient. eg based on a field
// a user selected
if ( $recipient -> SendEmailFromFieldID ) {
$name = Convert :: raw2sql ( $recipient -> SendEmailFromField () -> Name );
$SubmittedFormField = DataObject :: get_one ( " SubmittedFormField " , " Name = ' $name ' AND ParentID = ' $submittedForm->ID ' " );
if ( $SubmittedFormField ) {
$email -> setTo ( $SubmittedFormField -> Value );
}
}
2009-04-14 04:06:18 +02:00
$email -> send ();
}
2009-02-11 03:27:55 +01:00
}
2008-10-30 04:53:35 +01:00
// Redirect to the finished method on this controller with the referrer data
Director :: redirect ( $this -> Link () . 'finished?referrer=' . urlencode ( $data [ 'Referrer' ]));
}
/**
2008-10-30 04:59:18 +01:00
* This action handles rendering the " finished " message ,
* which is customisable by editing the ReceivedFormSubmission . ss
* template .
2008-10-30 04:53:35 +01:00
*
* @ return ViewableData
*/
function finished () {
$referrer = isset ( $_GET [ 'referrer' ]) ? urldecode ( $_GET [ 'referrer' ]) : null ;
2008-10-30 04:59:18 +01:00
$templateData = $this -> customise ( array (
2008-10-30 04:53:35 +01:00
'Content' => $this -> customise (
array (
'Link' => $referrer
)) -> renderWith ( 'ReceivedFormSubmission' ),
'Form' => ' ' ,
2008-09-29 05:18:23 +02:00
));
2008-10-30 04:59:18 +01:00
return $templateData ;
2008-09-29 05:18:23 +02:00
}
}
/**
2009-04-14 04:06:18 +02:00
* A Form can have multiply members / emails to email the submission
* to and custom subjects
*
* @ package userforms
*/
class UserDefinedForm_EmailRecipient extends DataObject {
static $db = array (
'EmailAddress' => 'Varchar(200)' ,
'EmailSubject' => 'Varchar(200)' ,
'EmailFrom' => 'Varchar(200)' ,
2009-04-27 06:33:31 +02:00
'EmailBody' => 'HTMLText'
2009-04-14 04:06:18 +02:00
);
static $has_one = array (
2009-04-14 05:26:14 +02:00
'Form' => 'UserDefinedForm' ,
'SendEmailFromField' => 'EditableFormField'
2009-04-14 04:06:18 +02:00
);
2009-04-14 05:26:14 +02:00
/**
* Return the fields to edit this email .
*
* @ return FieldSet
*/
public function getCMSFields_forPopup () {
2009-04-15 01:21:52 +02:00
$forms = DataObject :: get ( " UserDefinedForm " );
if ( $forms ) $forms = $forms -> toDropdownMap ( 'ID' , 'Title' );
2009-04-14 05:26:14 +02:00
$fields = new FieldSet (
new TextField ( 'EmailSubject' , _t ( 'UserDefinedForm.EMAILSUBJECT' , 'Email Subject' )),
new TextField ( 'EmailFrom' , _t ( 'UserDefinedForm.FROMADDRESS' , 'From Address' )),
2009-04-15 01:21:52 +02:00
new TextField ( 'EmailAddress' , _t ( 'UserDefinedForm.SENDEMAILTO' , 'Send Email To' )),
new DropdownField ( 'FormID' , 'Form' , $forms )
2009-04-14 05:26:14 +02:00
);
if ( $this -> Form ()) {
$validEmailFields = DataObject :: get ( " EditableFormField " , " ParentID = ' $this->FormID ' " );
if ( $validEmailFields ) {
$validEmailFields = $validEmailFields -> toDropdownMap ( 'ID' , 'Title' );
$fields -> push ( new DropdownField ( 'SendEmailFromFieldID' , _t ( 'UserDefinedForm.SENDEMAILINSTEAD' , 'Send Email Instead To' ), $validEmailFields , '' , null , 'Use Fixed Email' ));
}
}
$fields -> push ( new HTMLEditorField ( 'EmailBody' , 'Body' ));
return $fields ;
}
2009-04-14 04:06:18 +02:00
}
/**
* Email that gets sent to the people listed in the Email Recipients
* when a submission is made
*
* @ package userforms
2008-09-29 05:18:23 +02:00
*/
class UserDefinedForm_SubmittedFormEmail extends Email {
protected $ss_template = " SubmittedFormEmail " ;
protected $data ;
2009-04-14 04:06:18 +02:00
function __construct () {
2008-09-29 05:18:23 +02:00
parent :: __construct ();
}
}
?>