...
Code Block | ||||
---|---|---|---|---|
| ||||
<?php
/**
* Class TNW_Salesforce_Model_Observer
*/
class TNW_Salesforce_Model_Observer
{
public function opportunityContactRolesSendAfter(Varien_Event_Observer $observer) {
/**
* Array of Salesforce objects
* @var array $_data
*
* Example:
* array (size=1)
* 0 =>
* object(stdClass)[867]
* public 'ContactId' => string '0032400000M41eCAAR' (length=18)
* public 'IsPrimary' => boolean true
* public 'OpportunityId' => string '00624000007xdtKAAQ' (length=18)
* public 'Role' => string 'Business User' (length=13)
*/
$_data = $observer->getData('data');
/**
* Array of Results
* @var array $_result
*/
$_result = $observer->getData('result');
// Your custom code
}
} |
...