Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagephp
titleExample Observer
<?php

/**
 * Class TNW_Salesforce_Model_Observer
 */
class TNW_Salesforce_Model_Observer
{
 
    public function opportunityProcess(Varien_Event_Observer $observer) {
		/** @var array
		 * Array of Salesforce objects
		 * @var stdClass[] $_data 
		 */
		$_data = $observer->getData('data');

		// Your custom code
    }
 
}

...