public function getExtension($namespace) { return AtomExtensionManager::getInstance()->getExtensionAdapter($this->_atomNode, $namespace); }
protected function setUp() { $this->_xManager = AtomExtensionManager::getInstance(); $this->_xManager->registerExtensionAdapter(new MediaExtensionFactory()); }
public static function setupAtomExtensionManager() { $extensionManager = AtomExtensionManager::getInstance(); $extensionManager->registerExtensionAdapter(new ActivityExtensionFactory()); $extensionManager->registerExtensionAdapter(new MediaExtensionFactory()); }
protected function setUp() { $this->_atomNode = new SimpleXMLElement('xml/Activity.xml', null, true); $this->_feed = new AtomFeedAdapter($this->_atomNode); $this->_xManager = AtomExtensionManager::getInstance(); }