All Data Structures Functions Variables Pages
Public Member Functions | Protected Member Functions
AccountContactAffiliationObserver Class Reference
Inheritance diagram for AccountContactAffiliationObserver:

Public Member Functions

 init ()
 destroy ()
 processFromContactSide (CEvent $event)

Protected Member Functions

 resolveRoleValue (AccountContactAffiliation $accountContactAffiliation)

Detailed Description

Used to observe when a contact is added/removed from a related account. This is needed to ensure the relationship is managed in parallel using the AccountContactAffiliation model.

Definition at line 41 of file AccountContactAffiliationObserver.php.

Member Function Documentation

destroy ( )

Removes attached eventHandlers. Used by tests to ensure there are not duplicate event handlers

Definition at line 53 of file AccountContactAffiliationObserver.php.

processFromContactSide ( CEvent  $event)

Definition at line 63 of file AccountContactAffiliationObserver.php.

resolveRoleValue ( AccountContactAffiliation  $accountContactAffiliation)

If role is required, and there is no default value selected, grab the first value available for the role.


Definition at line 115 of file AccountContactAffiliationObserver.php.

The documentation for this class was generated from the following file:
Generated on Thu Jun 4 2020 07:10:37