...
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
*
* Example:
* array (size=1)
* 0 =>
* object(stdClass)[947]
* public 'created' => boolean true
* public 'id' => string '00K2400000318BBEAY' (length=18)
* public 'success' => boolean true
*/
$_result = $observer->getData('result');
// Your custom code
}
} |
...