File tree Expand file tree Collapse file tree 1 file changed +0
-39
lines changed Expand file tree Collapse file tree 1 file changed +0
-39
lines changed Original file line number Diff line number Diff line change @@ -292,45 +292,6 @@ private function getRDFDescription($namespace)
292
292
return null ;
293
293
}
294
294
295
- /**
296
- * @param $namespace
297
- *
298
- * @return \DOMElement|\DOMNode|null
299
- */
300
- private function getOrCreateRDFDescription ($ namespace )
301
- {
302
- $ desc = $ this ->getRDFDescription ($ namespace );
303
-
304
- if ($ desc ) {
305
- return $ desc ;
306
- }
307
-
308
- // try and find any rdf:Description, and add to that
309
- $ desc = $ this ->xpath ->query ('//rdf:Description ' )->item (0 );
310
-
311
- if ($ desc ) {
312
- return $ desc ;
313
- }
314
-
315
- // no rdf:Description's, create new
316
- $ prefix = array_search ($ namespace , $ this ->namespaces );
317
-
318
- $ desc = $ this ->dom ->createElementNS (self ::RDF_NS , 'rdf:Description ' );
319
- $ desc ->setAttributeNS ('http://www.w3.org/2000/xmlns/ ' , 'xmlns: ' . $ prefix , $ namespace );
320
-
321
- $ rdf = $ this ->xpath ->query ('rdf:RDF ' , $ this ->dom ->documentElement )->item (0 );
322
-
323
- // check if rdf:RDF element exists, and create it if not
324
- if (!$ rdf ) {
325
- $ rdf = $ this ->dom ->createElementNS (self ::RDF_NS , 'rdf:RDF ' );
326
- $ this ->dom ->documentElement ->appendChild ($ rdf );
327
- }
328
-
329
- $ rdf ->appendChild ($ desc );
330
-
331
- return $ desc ;
332
- }
333
-
334
295
/**
335
296
* @return string
336
297
*/
You can’t perform that action at this time.
0 commit comments