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 syncMappingOrderBefore(Varien_Event_Observer $observer) {
		/**
		 * Array of Salesforce objects
		 * @var stdClassTNW_Salesforce_Model_Sync_Mapping_Order_Order $_mapping 
		 */
		$_mapping = $observer->getData('mapping');

		/**
		 * Array of Salesforce objects
		 * @var stdClass $_entity 
		 */
		$_entity = $observer->getData('entity');

		/**
		 * Array of Salesforce objects
		 * @var stdClass $_additional_object 
		 */
		$_additional_object = $observer->getData('additionalObject');

		// Your custom code
    }
 
}

...