[Warning] DOMDocument::loadXML(): Empty string supplied as input (@line 12 in file /var/www/protected/SNS/RelsExt.php).
/var/www/protected/SNS/RelsExt.php (12)
0001: <?php
0002:
0003: class RelsExt
0004: {
0005: private $_domDoc = null;
0006: private $_domXPath = null;
0007: private $_parentCollections = array();
0008:
0009: public function __construct($xml)
0010: {
0011: $this->_domDoc = new DOMDocument;
0012: $this->_domDoc->loadXML($xml);
0013: $this->_domXPath = new DOMXPath($this->_domDoc);
0014:
0015: $xpath = "/rdf:RDF/rdf:Description/*[local-name()='isMemberOfCollection']/@rdf:resource";
0016: foreach ($this->_domXPath->query($xpath) as $item) {
0017: $this->_parentCollections[] = str_replace('info:fedora/', '', $item->nodeValue);
0018: }
0019: }
0020:
0021: public function getParentCollections() {
0022: return $this->_parentCollections;
0023: }
0024:
#0 [internal function]: PradoBase::phpErrorHandler(2, 'DOMDocument::lo...', '/var/www/protec...', 12, Array)
#1 /var/www/protected/SNS/RelsExt.php(12): DOMDocument->loadXML('')
#2 /var/www/protected/SNS/DigitalObject.php(175): RelsExt->__construct(NULL)
#3 /var/www/protected/SNS/DigitalObject.php(145): DigitalObject->getParentCollections()
#4 /var/www/protected/pages/View/ObjectMetaData.php(79): DigitalObject->getAccessLevel(true)
#5 /var/www/prado-3.1.10.r3017/framework/Web/UI/TControl.php(1270): ObjectMetaData->onInit(NULL)
#6 /var/www/prado-3.1.10.r3017/framework/Web/UI/TCompositeControl.php(35): TControl->initRecursive(NULL)
#7 /var/www/prado-3.1.10.r3017/framework/Web/UI/TTemplateControl.php(240): TCompositeControl->initRecursive(NULL)
#8 /var/www/prado-3.1.10.r3017/framework/Web/UI/TPage.php(207): TTemplateControl->initRecursive()
#9 /var/www/prado-3.1.10.r3017/framework/Web/UI/TPage.php(198): TPage->processNormalRequest(Object(THtmlWriter))
#10 /var/www/prado-3.1.10.r3017/framework/Web/Services/TPageService.php(498): TPage->run(Object(THtmlWriter))
#11 /var/www/prado-3.1.10.r3017/framework/Web/Services/TPageService.php(444): TPageService->runPage(Object(ObjectMetaData), Array)
#12 /var/www/prado-3.1.10.r3017/framework/TApplication.php(1095): TPageService->run()
#13 /var/www/prado-3.1.10.r3017/framework/TApplication.php(382): TApplication->runService()
#14 /var/www/index.php(23): TApplication->run()
#15 {main}