NoteInlineEditView Class Reference

Inheritance diagram for NoteInlineEditView:
InlineEditView EditView DetailsView ModelView ConfigurableMetadataView MetadataView View

Static Public Member Functions

static getDefaultMetadata ()
static getDesignerRulesType ()

Protected Member Functions

 resolveElementDuringFormLayoutRender (&$element)
 renderConfigSaveAjax ($formName)
 doesLabelHaveOwnCell ()

Protected Attributes

 $viewContainsFileUploadElement = true

Detailed Description

An inline edit view for a note.

Definition at line 41 of file NoteInlineEditView.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 45 of file NoteInlineEditView.php.

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 InlineEditView.

Definition at line 126 of file NoteInlineEditView.php.

resolveElementDuringFormLayoutRender ( &$  element  )  [protected]

Override to change the editableTemplate to place the label above the input.

See also:
DetailsView::resolveElementDuringFormLayoutRender()

Reimplemented from DetailsView.

Definition at line 135 of file NoteInlineEditView.php.

renderConfigSaveAjax ( formName  )  [protected]

Override to allow the latest activities portlet, if it exists to be refreshed. (non-PHPdoc)

See also:
InlineEditView::renderConfigSaveAjax()

Reimplemented from InlineEditView.

Definition at line 166 of file NoteInlineEditView.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 183 of file NoteInlineEditView.php.


The documentation for this class was generated from the following file:
 All Data Structures Functions Variables
Generated on Sun Sep 22 07:11:04 2019