I don't understand why the Varien_Event_Observer object has getters and setters for th 'name' attribute. However when using it in the method defined by my config xml, calling getName() returns null?
I would of take a guess that the unique node name you use in the config xml should be used as the observer name?
eg.
<events>
<catalog_product_save_after>
<observers>
<my_special_unique_name>
<type>singleton</type>
<class>my_special/catalog_product_save_after_observer</class>
<method>myMethod</method>
</my_special_unique_name>
</observers>
</catalog_product_save_after>
</events>
public function myMethod($observer) {
//Returns null , not what I would expect to be "my_special_unique_name"
$observer->getName();
}
Am I missing something, was there intention there and it was never added?