MultipleContactsForProjectsElement Class Reference

Inheritance diagram for MultipleContactsForProjectsElement:
MultiSelectRelatedModelsAutoCompleteElement Element DerivedElementInterface

Static Public Member Functions

static getDisplayName ()
static renderHtmlContentLabelFromContactAndKeyword ($contact, $keyword)

Protected Member Functions

 getFormName ()
 getUnqualifiedNameForIdField ()
 getUnqualifiedIdForIdField ()
 assertModelType ()
 getWidgetSourceUrl ()
 getWidgetHintText ()
 getRelationName ()
 getFormattedAttributeLabel ()
 resolveModelNameForRendering (RedBeanModel $model)
 renderControlNonEditable ()
 getExistingIdsAndLabelsForDetailsView ()
 resolveIdAndNameByModelForDetailsView (RedBeanModel $model)
 resolveModelNameForRenderingForDetailsView (RedBeanModel $model)

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

getFormName (  )  [protected]
Returns:
string

Reimplemented from MultiSelectRelatedModelsAutoCompleteElement.

Definition at line 44 of file MultipleContactsForProjectsElement.php.

getUnqualifiedNameForIdField (  )  [protected]
Returns:
string

Reimplemented from MultiSelectRelatedModelsAutoCompleteElement.

Definition at line 49 of file MultipleContactsForProjectsElement.php.

getUnqualifiedIdForIdField (  )  [protected]
Returns:
string

Reimplemented from MultiSelectRelatedModelsAutoCompleteElement.

Definition at line 54 of file MultipleContactsForProjectsElement.php.

assertModelType (  )  [protected]

Asserts that element is attached to a form with a model type that we are indeed expecting

Reimplemented from MultiSelectRelatedModelsAutoCompleteElement.

Definition at line 59 of file MultipleContactsForProjectsElement.php.

getWidgetSourceUrl (  )  [protected]

Returns the source url widget should hit to request data for autocomplete

Returns:
mixed

Reimplemented from MultiSelectRelatedModelsAutoCompleteElement.

Definition at line 64 of file MultipleContactsForProjectsElement.php.

getWidgetHintText (  )  [protected]

Returns the hint text display in widget

Returns:
string

Reimplemented from MultiSelectRelatedModelsAutoCompleteElement.

Definition at line 69 of file MultipleContactsForProjectsElement.php.

getRelationName (  )  [protected]

Returns the relation name we would query when generated existing Ids and Labels

Returns:
string

Reimplemented from MultiSelectRelatedModelsAutoCompleteElement.

Definition at line 76 of file MultipleContactsForProjectsElement.php.

getFormattedAttributeLabel (  )  [protected]

Returns formatted display name

Returns:
string

Reimplemented from MultiSelectRelatedModelsAutoCompleteElement.

Definition at line 81 of file MultipleContactsForProjectsElement.php.

resolveModelNameForRendering ( RedBeanModel model  )  [protected]

Resolves model's name for rendering.

Parameters:
RedBeanModel $model
Returns:
string

Reimplemented from MultiSelectRelatedModelsAutoCompleteElement.

Definition at line 92 of file MultipleContactsForProjectsElement.php.

renderControlNonEditable (  )  [protected]

Returns rendered content for display as nonEditable.

Returns:
null|string

Reimplemented from MultiSelectRelatedModelsAutoCompleteElement.

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:
 All Data Structures Functions Variables
Generated on Tue Jul 23 07:11:07 2019