AccountContactAffiliationObserver Class Reference

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  ) 
CEvent $event

Definition at line 63 of file AccountContactAffiliationObserver.php.

resolveRoleValue ( AccountContactAffiliation accountContactAffiliation  )  [protected]

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

AccountContactAffiliation $accountContactAffiliation

Definition at line 115 of file AccountContactAffiliationObserver.php.

The documentation for this class was generated from the following file:
 All Data Structures Functions Variables
Generated on Fri Jan 17 07:10:51 2020