comparison vendor/zendframework/zend-feed/src/Writer/Renderer/AbstractRenderer.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 c2387f117808
comparison
equal deleted inserted replaced
11:bfffd8d7479a 12:7a779792577d
80 * 80 *
81 * @return string 81 * @return string
82 */ 82 */
83 public function saveXml() 83 public function saveXml()
84 { 84 {
85 return $this->getDomDocument()->saveXml(); 85 return $this->getDomDocument()->saveXML();
86 } 86 }
87 87
88 /** 88 /**
89 * Get DOM document 89 * Get DOM document
90 * 90 *
144 * @return AbstractRenderer 144 * @return AbstractRenderer
145 * @throws Writer\Exception\InvalidArgumentException 145 * @throws Writer\Exception\InvalidArgumentException
146 */ 146 */
147 public function ignoreExceptions($bool = true) 147 public function ignoreExceptions($bool = true)
148 { 148 {
149 if (!is_bool($bool)) { 149 if (! is_bool($bool)) {
150 throw new Writer\Exception\InvalidArgumentException('Invalid parameter: $bool. Should be TRUE or FALSE (defaults to TRUE if null)'); 150 throw new Writer\Exception\InvalidArgumentException(
151 'Invalid parameter: $bool. Should be TRUE or FALSE (defaults to TRUE if null)'
152 );
151 } 153 }
152 $this->ignoreExceptions = $bool; 154 $this->ignoreExceptions = $bool;
153 return $this; 155 return $this;
154 } 156 }
155 157
211 /** 213 /**
212 * Load extensions from Zend\Feed\Writer\Writer 214 * Load extensions from Zend\Feed\Writer\Writer
213 * 215 *
214 * @return void 216 * @return void
215 */ 217 */
218 // @codingStandardsIgnoreStart
216 protected function _loadExtensions() 219 protected function _loadExtensions()
217 { 220 {
221 // @codingStandardsIgnoreEnd
218 Writer\Writer::registerCoreExtensions(); 222 Writer\Writer::registerCoreExtensions();
219 $manager = Writer\Writer::getExtensionManager(); 223 $manager = Writer\Writer::getExtensionManager();
220 $all = Writer\Writer::getExtensions(); 224 $all = Writer\Writer::getExtensions();
221 if (stripos(get_class($this), 'entry')) { 225 if (stripos(get_class($this), 'entry')) {
222 $exts = $all['entryRenderer']; 226 $exts = $all['entryRenderer'];