Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tree: a72146026d
Fetching contributors…

Cannot retrieve contributors at this time

21 lines (15 sloc) 0.619 kB
<?php
class StructuredMediaExtension extends ExtensibleAtomAdapter {
public function __construct(SimpleXMLElement $data, $extensionType) {
$this->_atomNode = $data;
if ($this->_atomNode->getName() != $extensionType) { //check whether $this->_atomNode is the appropriate XML Object, e.g. atom entry node for ActivityEntryExtension
throw new ActivityExtensionException("Invalid XML Object");
}
$this->_prefix = $this->_getPrefix(MediaNS::NS);
if ($this->_prefix === null) {
$this->_prefix = MediaNS::PREFIX;
}
//$this->_fetchChilds(AtomNS::NS);
$this->_fetchChilds(MediaNS::NS);
}
}
Jump to Line
Something went wrong with that request. Please try again.