app/code/community/Nexcessnet/Turpentine/Model/Shim/Mage/Core/App.php
protected function _shim_getEventDom($area, $eventName, $obsName,
            $type = null, $class = null, $method = null) {
        $dom = new DOMDocument('1.0');
        $config = $dom->createElement('config');
        $observers = $config
                ->appendChild($dom->createElement($area))
                ->appendChild($dom->createElement('events'))
                ->appendChild($dom->createElement($eventName))
                ->appendChild($dom->createElement('observers'));
        $observer = $dom->createElement($obsName);
        if ($class && $method) {
            if ($type) {
                $observer->appendChild($dom->createElement('type', $type));
            }
            $observer->appendChild($dom->createElement('class', $class));
            $observer->appendChild($dom->createElement('method', $method));
        }
        $observers->appendChild($observer);
        $dom->appendChild($config);
        return $dom;
    }
protected function _shim_getEventDom($area, $eventName, $obsName,
            $type = null, $class = null, $method = null) {
        $dom = new DOMDocument('1.0');
        $config = $dom->createElement('config');
        $observers = $config
                ->appendChild($dom->createElement($area))
                ->appendChild($dom->createElement('events'))
                ->appendChild($dom->createElement($eventName))
                ->appendChild($dom->createElement('observers'));
        $observer = $dom->createElement($obsName);
        if ($class && $method) {
            if ($type) {
                $observer->appendChild($dom->createElement('type', $type));
            }
            $observer->appendChild($dom->createElement('class', $class));
            $observer->appendChild($dom->createElement('method', $method));
        }
        $observers->appendChild($observer);
        $dom->appendChild($config);
        return $dom;
    }
protected function _shim_getEventDom ( $ area , $ eventName , $ obsName , $ type = null , $ class = null , $ method = null ) { $ dom = new DOMDocument ( '1.0' ) ; $ config = $ dom -> createElement ( 'config' ) ; $ observers = $ config -> appendChild ( $ dom -> createElement ( $ area ) ) -> appendChild ( $ dom -> createElement ( 'events' ) ) -> appendChild ( $ dom -> createElement ( $ eventName ) ) -> appendChild ( $ dom -> createElement ( 'observers' ) ) ; $ observer = $ dom -> createElement ( $ obsName ) ; if ( $ class && $ method ) { if ( $ type ) { $ observer -> appendChild ( $ dom -> createElement ( 'type' , $ type ) ) ; } $ observer -> appendChild ( $ dom -> createElement ( 'class' , $ class ) ) ; $ observer -> appendChild ( $ dom -> createElement ( 'method' , $ method ) ) ; } $ observers -> appendChild ( $ observer ) ; $ dom -> appendChild ( $ config ) ; return $ dom ; }
Prepares event DOM node used for updating configuration

@param string $area (global|admin...)
@param string $eventName
@param string $obsName
@param string $type
@param string $class
@param string $method
@return DOMDocument
Prepares event DOM node used for updating configuration