All Data Structures Functions Variables Pages
Static Public Member Functions | Protected Member Functions
MultipleContactsForProjectsElement Class Reference
Inheritance diagram for MultipleContactsForProjectsElement:
MultiSelectRelatedModelsAutoCompleteElement Element DerivedElementInterface

Static Public Member Functions

static getDisplayName ()
 
static renderHtmlContentLabelFromContactAndKeyword ($contact, $keyword)
 
- Static Public Member Functions inherited from Element
static getDisplayName ()
 
static isReadOnly ()
 
static resolveInputNameForEditableInput ($attributeName)
 
static resolveInputNamePrefixIntoString ($inputNamePrefix)
 
static resolveInputIdPrefixIntoString ($inputIdPrefix)
 

Protected Member Functions

 getFormName ()
 
 getUnqualifiedNameForIdField ()
 
 getUnqualifiedIdForIdField ()
 
 assertModelType ()
 
 getWidgetSourceUrl ()
 
 getWidgetHintText ()
 
 getRelationName ()
 
 getFormattedAttributeLabel ()
 
 resolveModelNameForRendering (RedBeanModel $model)
 
 renderControlNonEditable ()
 
 getExistingIdsAndLabelsForDetailsView ()
 
 resolveIdAndNameByModelForDetailsView (RedBeanModel $model)
 
 resolveModelNameForRenderingForDetailsView (RedBeanModel $model)
 
- 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 ()
 

Additional Inherited Members

- Public Member Functions inherited from Element
 __construct ($model, $attribute, $form=null, array $params=array())
 
 render ()
 
 getEditableNameIds ()
 
 getAttribute ()
 
 renderAsControlNonEditable ()
 
- 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 Attributes inherited from Element
 $model
 
 $attribute
 
 $form
 

Detailed Description

User interface element for managing related model relations for projects. This class supports a MANY_MANY specifically for the 'contacts' relation. This is utilized by the Project model.

Definition at line 42 of file MultipleContactsForProjectsElement.php.

Member Function Documentation

renderControlNonEditable ( )
protected

Returns rendered content for display as nonEditable.

Returns
null|string

Definition at line 101 of file MultipleContactsForProjectsElement.php.

getExistingIdsAndLabelsForDetailsView ( )
protected

Returns an array with the Ids and Labels of records already bound to the model attached to element

Returns
array

Definition at line 120 of file MultipleContactsForProjectsElement.php.

resolveIdAndNameByModelForDetailsView ( RedBeanModel  $model)
protected

Resolve an array with id and name using the sent model

Parameters
$model
Returns
array

Definition at line 145 of file MultipleContactsForProjectsElement.php.

static renderHtmlContentLabelFromContactAndKeyword (   $contact,
  $keyword 
)
static

Given a contact model and a keyword, render the strval of the contact and the matched email address that the keyword matches. If the keyword does not match any email addresses on the contact, render the primary email if it exists. Otherwise just render the strval contact.

Parameters
object$contact- model
string$keyword

Definition at line 165 of file MultipleContactsForProjectsElement.php.


The documentation for this class was generated from the following file:
Generated on Tue Jan 28 2020 07:10:36