SendTestEmailModalEditView Class Reference

Inheritance diagram for SendTestEmailModalEditView:
EditView DetailsView ModelView ConfigurableMetadataView MetadataView View

Public Member Functions

 __construct ($controllerId, $moduleId, $model, $title=null)

Static Public Member Functions

static getDefaultMetadata ()
static registerSendTestEmailScriptsForDetailsView ($modelId, $modelClassName)

Data Fields

const COMPILE_SEND_TEST_EMAIL_DATA_JS_FUNCTION_NAME = 'compileSendTestEmailData'

Protected Member Functions

 resolveElementDuringFormLayoutRender (&$element)
 doesLabelHaveOwnCell ()
 getFormLayoutUniqueId ()
 resolveActiveFormAjaxValidationOptions ()
 renderSendTestEmailPostAjax ()
 registerFormDataExtractionScripts ()
 resolveSendTestEmailAction ()
 resolveSendTestEmailAjaxValidationAction ()
 resolveSendTestEmailRoute ()
 resolveSendTestEmailAjaxValidationRoute ()
 resolveRelativeUrlForAction ($action)
 alwaysShowErrorSummary ()

Static Protected Member Functions

static getFormId ()

Protected Attributes

 $wrapContentInWrapperDiv = false
 $disableFloatOnToolbar = true

Detailed Description

View to show a create email interface that appears in a modal window.

Definition at line 40 of file SendTestEmailModalEditView.php.


Constructor & Destructor Documentation

__construct ( controllerId,
moduleId,
model,
title = null 
)

Constructs a detail view specifying the controller as well as the model that will have its details displayed.

Reimplemented from DetailsView.

Definition at line 51 of file SendTestEmailModalEditView.php.


Member Function Documentation

static getDefaultMetadata (  )  [static]

Returns meta data for use in automatically generating the view. The meta data is comprised of panels, rows, and then cells. Each cell can have 1 or more elements.

The element takes 3 parameters. The first parameter is 'attributeName'. The second parameter is 'type' and refers to the element type. Using a type of 'Text' would utilize the TextElement class. The third parameter is 'wide' and refers to how many cells the field should span. An example of the 'wide' => true usage would be for a text description field. Here is an example meta data that defines a 2 row x 2 cell layout.

            <?php
                $metadata = array(
                    'panels' => array(
                        array(
                            'rows' => array(
                                array('cells' =>
                                    array(
                                        array(
                                            'elements' => array(
                                                array('field' => 'name', 'type' => 'Text'),
                                            ),
                                        ),
                                        array(
                                            'elements' => array(
                                                array('field' => 'officePhone', 'type' => 'Text'),
                                            ),
                                        ),
                                    )
                                ),
                                array('cells' =>
                                    array(
                                        array(
                                            'elements' => array(
                                                array('field' => 'industry', 'type' => 'DropDown'),
                                            ),
                                        ),
                                        array(
                                            'elements' => array(
                                                array('field' => 'officeFax', 'type' => 'Text'),
                                            ),
                                        ),
                                    )
                                ),
                            ),
                        ),
                    ),
                );
            ?>

Reimplemented from DetailsView.

Definition at line 63 of file SendTestEmailModalEditView.php.

resolveElementDuringFormLayoutRender ( &$  element  )  [protected]

Override sub-class if you need to set anything into the element object.

Reimplemented from DetailsView.

Definition at line 94 of file SendTestEmailModalEditView.php.

doesLabelHaveOwnCell (  )  [protected]
Returns:
true if the label has its own TD next to the TD of the input. Override if the label is on top of the input, in which case it does not need its own cell.

Reimplemented from DetailsView.

Definition at line 99 of file SendTestEmailModalEditView.php.

getFormLayoutUniqueId (  )  [protected]

Gets form layout unique id

Returns:
null

Reimplemented from DetailsView.

Definition at line 109 of file SendTestEmailModalEditView.php.


The documentation for this class was generated from the following file:
 All Data Structures Functions Variables
Generated on Thu Dec 12 07:11:12 2019