ContactExternalEditAndDetailsView Class Reference

Inheritance diagram for ContactExternalEditAndDetailsView:
EditAndDetailsView DetailsView ModelView ConfigurableMetadataView MetadataView View

Public Member Functions

 __construct ($renderType, $controllerId, $moduleId, $model, $metadata)

Static Public Member Functions

static getDesignerRulesType ()
static getDefaultMetadata ()

Data Fields

 $externalViewMetadata
const GOOGLE_WEB_TRACKING_ID_FIELD = 'googleWebTrackingId'

Protected Member Functions

 getFormLayoutMetadata ()
 resolveActiveFormAjaxValidationOptions ()
 renderConfigSaveAjax ()
 getValidateAndSaveUrl ()
 renderRightSideFormLayoutForEdit ($form)
 getNewModelTitleLabel ()
 resolveActionElementInformationDuringRender (&$elementInformation)
 resolveFormHtmlOptions ()
 renderAfterFormLayout ($form)
 renderTitleContent ()

Protected Attributes

 $hashIndexHiddenField

Detailed Description

Definition at line 37 of file ContactExternalEditAndDetailsView.php.


Member Function Documentation

static getDesignerRulesType (  )  [static]

Override in each sub-class if you have applicable designer rules for handling the modification of metadata layouts

Returns:
null or a DesignerRules Class;

Reimplemented from EditAndDetailsView.

Definition at line 52 of file ContactExternalEditAndDetailsView.php.

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 57 of file ContactExternalEditAndDetailsView.php.

getFormLayoutMetadata (  )  [protected]

Gets the metadata for this view. Override if you need to make the metadata dynamically or change the way the metadata is retreived

Returns:
array view metadata

Reimplemented from DetailsView.

Definition at line 81 of file ContactExternalEditAndDetailsView.php.

resolveActionElementInformationDuringRender ( &$  elementInformation  )  [protected]

Override if any manipulation is needed on the $elementInformaiton prior to rendering

Parameters:
array $elementInformation

Reimplemented from MetadataView.

Definition at line 134 of file ContactExternalEditAndDetailsView.php.


The documentation for this class was generated from the following file:
 All Data Structures Functions Variables
Generated on Fri Nov 24 07:10:23 2017