MultipleContactsForMeetingElement Class Reference

Inheritance diagram for MultipleContactsForMeetingElement:
MultiSelectRelatedModelsAutoCompleteElement Element DerivedElementInterface

Static Public Member Functions

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

Protected Member Functions

 getFormName ()
 getUnqualifiedNameForIdField ()
 getUnqualifiedIdForIdField ()
 assertModelType ()
 getFormattedAttributeLabel ()
 getWidgetSourceUrl ()
 getWidgetHintText ()
 getRelationName ()
 resolveIdAndNameByModel (RedBeanModel $model)
 getExistingIdsAndLabels ()

Protected Attributes

 $modelDerivationPathToItemFromContact = null

Detailed Description

User interface element for managing related model relations for activities. This class supports a HAS_MANY specifically for the 'contact' relation. This is utilized by the meeting model.

Definition at line 42 of file MultipleContactsForMeetingElement.php.


Member Function Documentation

getFormName (  )  [protected]
Returns:
string

Reimplemented from MultiSelectRelatedModelsAutoCompleteElement.

Definition at line 46 of file MultipleContactsForMeetingElement.php.

getUnqualifiedNameForIdField (  )  [protected]
Returns:
string

Reimplemented from MultiSelectRelatedModelsAutoCompleteElement.

Definition at line 51 of file MultipleContactsForMeetingElement.php.

getUnqualifiedIdForIdField (  )  [protected]
Returns:
string

Reimplemented from MultiSelectRelatedModelsAutoCompleteElement.

Definition at line 56 of file MultipleContactsForMeetingElement.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 61 of file MultipleContactsForMeetingElement.php.

getFormattedAttributeLabel (  )  [protected]

Returns formatted display name

Returns:
string

Reimplemented from MultiSelectRelatedModelsAutoCompleteElement.

Definition at line 66 of file MultipleContactsForMeetingElement.php.

getWidgetSourceUrl (  )  [protected]

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

Returns:
mixed

Reimplemented from MultiSelectRelatedModelsAutoCompleteElement.

Definition at line 77 of file MultipleContactsForMeetingElement.php.

getWidgetHintText (  )  [protected]

Returns the hint text display in widget

Returns:
string

Reimplemented from MultiSelectRelatedModelsAutoCompleteElement.

Definition at line 82 of file MultipleContactsForMeetingElement.php.

getRelationName (  )  [protected]

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

Returns:
string

Reimplemented from MultiSelectRelatedModelsAutoCompleteElement.

Definition at line 88 of file MultipleContactsForMeetingElement.php.

resolveIdAndNameByModel ( RedBeanModel model  )  [protected]

Resolve an array with id and name using the sent model

Parameters:
$model 
Returns:
array

Reimplemented from MultiSelectRelatedModelsAutoCompleteElement.

Definition at line 93 of file MultipleContactsForMeetingElement.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 123 of file MultipleContactsForMeetingElement.php.

getExistingIdsAndLabels (  )  [protected]

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

Returns:
array

Reimplemented from MultiSelectRelatedModelsAutoCompleteElement.

Definition at line 174 of file MultipleContactsForMeetingElement.php.


The documentation for this class was generated from the following file:
 All Data Structures Functions Variables
Generated on Sun Jul 23 07:10:28 2017