Mercurial > hg > isophonics-drupal-site
comparison vendor/zendframework/zend-feed/src/Reader/Entry/AbstractEntry.php @ 12:7a779792577d
Update Drupal core to v8.4.5 (via Composer)
author | Chris Cannam |
---|---|
date | Fri, 23 Feb 2018 15:52:07 +0000 |
parents | 4c8ae668cc8c |
children |
comparison
equal
deleted
inserted
replaced
11:bfffd8d7479a | 12:7a779792577d |
---|---|
124 { | 124 { |
125 $dom = new DOMDocument('1.0', $this->getEncoding()); | 125 $dom = new DOMDocument('1.0', $this->getEncoding()); |
126 $deep = version_compare(PHP_VERSION, '7', 'ge') ? 1 : true; | 126 $deep = version_compare(PHP_VERSION, '7', 'ge') ? 1 : true; |
127 $entry = $dom->importNode($this->getElement(), $deep); | 127 $entry = $dom->importNode($this->getElement(), $deep); |
128 $dom->appendChild($entry); | 128 $dom->appendChild($entry); |
129 return $dom->saveXml(); | 129 return $dom->saveXML(); |
130 } | 130 } |
131 | 131 |
132 /** | 132 /** |
133 * Get the entry type | 133 * Get the entry type |
134 * | 134 * |
144 * | 144 * |
145 * @return DOMXPath | 145 * @return DOMXPath |
146 */ | 146 */ |
147 public function getXpath() | 147 public function getXpath() |
148 { | 148 { |
149 if (!$this->xpath) { | 149 if (! $this->xpath) { |
150 $this->setXpath(new DOMXPath($this->getDomDocument())); | 150 $this->setXpath(new DOMXPath($this->getDomDocument())); |
151 } | 151 } |
152 return $this->xpath; | 152 return $this->xpath; |
153 } | 153 } |
154 | 154 |