...
Code Block | ||||
---|---|---|---|---|
| ||||
<?php /** * Class TNW_Salesforce_Model_Observer */ class TNW_Salesforce_Model_Observer { public function invoiceNotesSendAfter(Varien_Event_Observer $observer) { /** * Array of Salesforce objects * @var stdClass[] $_data * * Example: * array (size=1) * 'cart_206'1 => * object(stdClass)[600843] * public 'AcctSeed__Product__cParentId' => string '01t24000003TfxyAAC' (length=18)null * public 'AcctSeed__Rate__cIsPrivate' => string '321.55' (length=6)int 0 * public 'AcctSeed__Billing__cBody' => null * public 'AcctSeed__Hours_Units__c' => string '1.0000string 'Custom comment' (length=614) * public 'AcctSeedERP__Sales_Order_Line__cTitle' => string '80224000001gwzQAAQCustom comment' (length=1814) */ $_data = $observer->getData('data'); /** * Array of Results * @var stdClass[] $_result * Example: * array (size=1) * 1 => * object(stdClass)[585855] * public 'created' => boolean true * public 'id' => null string '00224000002qNvJAAU' (length=18) * public 'success' => boolean true */ $_result = $observer->getData('result'); // Your custom code } } |
...