OutgoingEmailMessageRecipientBaseElement Class Reference

Inheritance diagram for OutgoingEmailMessageRecipientBaseElement:
MultiSelectRelatedModelsAutoCompleteElement Element DerivedElementInterface

Data Fields

 $editableTemplate = '<div class="recipient">{label}<div>{content}{error}</div></div>'

Protected Member Functions

 getRecipientType ($lowerCase=true)
 getRecipientTypeForId ()
 getFormName ()
 assertModelType ()
 getAttributeNameWithRecipientType ()
 getUnqualifiedIdForIdField ()
 getUnqualifiedNameForIdField ()
 getWidgetSourceUrl ()
 getWidgetHintText ()
 renderLabel ()
 renderError ()
 getRelationName ()
 resolveIdAndNameByModel (RedBeanModel $recipient)

Detailed Description

Base element for outgoing email's recipients. Extended by to, cc, bcc

Definition at line 40 of file OutgoingEmailMessageRecipientBaseElement.php.


Member Function Documentation

getFormName (  )  [protected]
Returns:
string

Reimplemented from MultiSelectRelatedModelsAutoCompleteElement.

Definition at line 75 of file OutgoingEmailMessageRecipientBaseElement.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 80 of file OutgoingEmailMessageRecipientBaseElement.php.

getUnqualifiedIdForIdField (  )  [protected]
Returns:
string

Reimplemented from MultiSelectRelatedModelsAutoCompleteElement.

Definition at line 90 of file OutgoingEmailMessageRecipientBaseElement.php.

getUnqualifiedNameForIdField (  )  [protected]
Returns:
string

Reimplemented from MultiSelectRelatedModelsAutoCompleteElement.

Definition at line 95 of file OutgoingEmailMessageRecipientBaseElement.php.

getWidgetSourceUrl (  )  [protected]

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

Returns:
mixed

Reimplemented from MultiSelectRelatedModelsAutoCompleteElement.

Definition at line 100 of file OutgoingEmailMessageRecipientBaseElement.php.

getWidgetHintText (  )  [protected]

Returns the hint text display in widget

Returns:
string

Reimplemented from MultiSelectRelatedModelsAutoCompleteElement.

Definition at line 105 of file OutgoingEmailMessageRecipientBaseElement.php.

renderLabel (  )  [protected]

Returns label

Returns:
string

Reimplemented from MultiSelectRelatedModelsAutoCompleteElement.

Definition at line 110 of file OutgoingEmailMessageRecipientBaseElement.php.

renderError (  )  [protected]

Generate the error content. Used by editable content

Returns:
error content

Reimplemented from MultiSelectRelatedModelsAutoCompleteElement.

Definition at line 123 of file OutgoingEmailMessageRecipientBaseElement.php.

getRelationName (  )  [protected]

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

Returns:
string

Reimplemented from MultiSelectRelatedModelsAutoCompleteElement.

Definition at line 130 of file OutgoingEmailMessageRecipientBaseElement.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 135 of file OutgoingEmailMessageRecipientBaseElement.php.


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