All Data Structures Functions Variables Pages
Static Public Member Functions | Data Fields | Protected Member Functions | Static Protected Member Functions
RelatedItemsElement Class Reference
Inheritance diagram for RelatedItemsElement:
ModelsElement DerivedElementInterface ElementActionTypeInterface Element ActivityItemsElement ConversationItemsElement ActivityItemsExcludingContactsElement NoteActivityItemsElement TaskActivityItemsElement TasksForModalActivityItemsElement NoteActivityItemsForSocialItemsListElement

Static Public Member Functions

static getDisplayName ()
 
static getModelAttributeNames ()
 
static getEditableActionType ()
 
static getNonEditableActionType ()
 
- Static Public Member Functions inherited from Element
static getDisplayName ()
 
static isReadOnly ()
 
static resolveInputNameForEditableInput ($attributeName)
 
static resolveInputNamePrefixIntoString ($inputNamePrefix)
 
static resolveInputIdPrefixIntoString ($inputIdPrefix)
 

Data Fields

 $editableTemplate = '<th class="hidden-element"></th><td class="hidden-element" colspan="{colspan}"></td></tr>{content}{error}<tr><th class="hidden-element"></th><td class="hidden-element" colspan="{colspan}"></td>'
 
 $nonEditableTemplate = '<th class="hidden-element"></th><td class="hidden-element" colspan="{colspan}"></td></tr>{content}<tr><th class="hidden-element"></th><td class="hidden-element" colspan="{colspan}"></td>'
 
- Data Fields inherited from Element
 $params
 
 $editableTemplate = '<th>{label}</th><td colspan="{colspan}">{content}{error}</td>'
 
 $nonEditableTemplate = '<th>{label}</th><td colspan="{colspan}">{content}</td>'
 

Protected Member Functions

 getRelatedItemsFromModel ()
 
 renderControlNonEditable ()
 
 renderControlEditable ()
 
 renderElementsForRelationsByRelationsData ($relationModelClassNames)
 
 resolveAndRenderEditableInput ($relationModel, $relatedItemForm, $relationModelClassName, $modelElementType)
 
 renderEditableHiddenInput ($relatedItemForm, $relationModelClassName, $modelElementType)
 
 renderNonEditableElementsForRelationsByRelationsData ($relationModelClassNames)
 
 getRelatedItemEditableTemplate ()
 
 getRelatedItemEditableHiddenInputOnlyTemplate ()
 
 getRelatedItemNonEditableTemplate ()
 
 renderError ()
 
 renderLabel ()
 
- Protected Member Functions inherited from Element
 renderLabel ()
 
 resolveIdForLabel ()
 
 getFormattedAttributeLabel ()
 
 resolveNonActiveFormFormattedLabel ($label)
 
 renderError ()
 
 renderScopedErrorId ($inputNameIdPrefix, $attribute)
 
 renderEditable ()
 
 renderNonEditable ()
 
 renderControlEditable ()
 
 renderControlNonEditable ()
 
 getColumnSpan ()
 
 getDisabledValue ()
 
 getHtmlOptions ()
 
 resolveContentTemplate ($template, $data)
 
 getEditableInputId ($attributeName=null, $relationAttributeName=null)
 
 getEditableInputName ($attributeName=null, $relationAttributeName=null)
 
 resolveInputPrefix ()
 
 resolveInputIdPrefix ()
 
 resolveInputNamePrefix ()
 
 getListViewGridId ()
 

Static Protected Member Functions

static getRelatedItemsModelClassNames ()
 
static getRelatedItemFormClassName ()
 

Additional Inherited Members

- Public Member Functions inherited from Element
 __construct ($model, $attribute, $form=null, array $params=array())
 
 render ()
 
 getEditableNameIds ()
 
 getAttribute ()
 
 renderAsControlNonEditable ()
 
- Protected Attributes inherited from Element
 $model
 
 $attribute
 
 $form
 

Detailed Description

User interface element for managing related model relations for any model. This class supports a HAS_ONE only. If you need to support HAS_MANY models you will need to extend this class.

Definition at line 42 of file RelatedItemsElement.php.

Member Function Documentation

static getModelAttributeNames ( )
static

Get the attributeNames of attributes used in the derived element. For this element, there are no attributes from the model.

Returns
array - empty

Implements DerivedElementInterface.

Definition at line 254 of file RelatedItemsElement.php.

static getEditableActionType ( )
static

Gets the action type for the related model's action that is called by the select button or the autocomplete feature in the Editable render.

Implements ElementActionTypeInterface.

Definition at line 264 of file RelatedItemsElement.php.

static getNonEditableActionType ( )
static

Currently RelatedItems is not supported in non editable views.

Implements ElementActionTypeInterface.

Definition at line 272 of file RelatedItemsElement.php.


The documentation for this class was generated from the following file:
Generated on Sun May 31 2020 07:10:58