TaskModalDetailsView Class Reference

Inheritance diagram for TaskModalDetailsView:
SecuredDetailsView DetailsView ModelView ConfigurableMetadataView MetadataView View

Public Member Functions

 getTitle ()

Static Public Member Functions

static getDefaultMetadata ()
static getDesignerRulesType ()

Protected Member Functions

 renderContent ()
 renderLeftSideContent ()
 renderLeftSideTopContent ()
 resolveActiveFormAjaxValidationOptions ()
 renderLeftSideBottomContent ()
 renderRightSideContent ($form=null)
 renderRightSideTopContent ()
 renderRightBottomSideContent ()
 renderTaskCheckListItemsListContent ()
 renderTaskCommentsContent ()
 renderOwnerContent ($form)
 renderRequestedByUserContent ($form)
 renderDueDateTimeContent ($form)
 renderNotificationSubscribersContent ()
 resolveSubscribeUrl ()
 resolveSubscriberAjaxOptions ()
 renderStatusContent ($form)
 getSourceViewId ()
 renderModalContainer ()
 resolveElementDuringFormLayoutRender (&$element)
 doesLabelHaveOwnCell ()
 renderAuditTrailModalContainer ()
 getFormLayoutUniqueId ()

Static Protected Member Functions

static getRightSideFormId ()
static getLeftSideFormId ()
static getOptionsMenuCssClass ()

Detailed Description

Modal window for viewing a task

Definition at line 40 of file TaskModalDetailsView.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 42 of file TaskModalDetailsView.php.

static getRightSideFormId (  )  [static, protected]

Gets form id for the right side form

Returns:
string

Definition at line 119 of file TaskModalDetailsView.php.

static getLeftSideFormId (  )  [static, protected]

Gets form id for the left side form

Returns:
string

Definition at line 128 of file TaskModalDetailsView.php.

getTitle (  ) 

Gets title

Returns:
string

Reimplemented from DetailsView.

Definition at line 137 of file TaskModalDetailsView.php.

renderContent (  )  [protected]

Renders content for a view including a layout title, form toolbar, and form layout.

Returns:
A string containing the element's content.

Reimplemented from DetailsView.

Definition at line 147 of file TaskModalDetailsView.php.

resolveActiveFormAjaxValidationOptions (  )  [protected]

Need to define validationUrl in order to ensure the task id is populated. If it is a new task, then the task id would not be in the GET

Returns:
array

Definition at line 198 of file TaskModalDetailsView.php.

renderRightSideContent ( form = null  )  [protected]

Renders right side content

Parameters:
string $form
Returns:
string

Reimplemented from DetailsView.

Definition at line 225 of file TaskModalDetailsView.php.

renderTaskCheckListItemsListContent (  )  [protected]

Renders check items list

Returns:
string

Definition at line 267 of file TaskModalDetailsView.php.

renderTaskCommentsContent (  )  [protected]

Renders task comments

Returns:
string

Definition at line 277 of file TaskModalDetailsView.php.

renderOwnerContent ( form  )  [protected]

Renders owner box

Parameters:
string $form
Returns:
string

Definition at line 288 of file TaskModalDetailsView.php.

renderRequestedByUserContent ( form  )  [protected]

Renders requested by user box

Parameters:
string $form
Returns:
string

Definition at line 300 of file TaskModalDetailsView.php.

renderDueDateTimeContent ( form  )  [protected]

Renders due date time

Parameters:
string $form
Returns:
string

Definition at line 312 of file TaskModalDetailsView.php.

renderNotificationSubscribersContent (  )  [protected]

Renders notification subscribers

Parameters:
string $form
Returns:
string

Definition at line 324 of file TaskModalDetailsView.php.

resolveSubscribeUrl (  )  [protected]

Resolves Subscribe Url

Returns:
string

Definition at line 346 of file TaskModalDetailsView.php.

resolveSubscriberAjaxOptions (  )  [protected]

Resolve subscriber ajax options

Returns:
array

Definition at line 355 of file TaskModalDetailsView.php.

renderStatusContent ( form  )  [protected]

Renders owner box

Parameters:
string $form
Returns:
string

Definition at line 374 of file TaskModalDetailsView.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 DetailsView.

Definition at line 389 of file TaskModalDetailsView.php.

resolveElementDuringFormLayoutRender ( &$  element  )  [protected]

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

See also:
DetailsView::resolveElementDuringFormLayoutRender()

Reimplemented from DetailsView.

Definition at line 411 of file TaskModalDetailsView.php.

doesLabelHaveOwnCell (  )  [protected]
Returns:
bool|true

Reimplemented from DetailsView.

Definition at line 426 of file TaskModalDetailsView.php.

renderAuditTrailModalContainer (  )  [protected]
Returns:
string

Definition at line 434 of file TaskModalDetailsView.php.

static getOptionsMenuCssClass (  )  [static, protected]

Gets the options menu class

Returns:
string

Reimplemented from MetadataView.

Definition at line 443 of file TaskModalDetailsView.php.

getFormLayoutUniqueId (  )  [protected]

Gets form layout unique id

Returns:
null

Reimplemented from DetailsView.

Definition at line 448 of file TaskModalDetailsView.php.


The documentation for this class was generated from the following file:
 All Data Structures Functions Variables
Generated on Sun Mar 26 07:10:29 2017