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  ) 
Parameters:
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.

Parameters:
AccountContactAffiliation $accountContactAffiliation
Returns:
mixed

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 Mar 24 07:10:22 2017