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