protected function AbstractRenderer::_loadExtensions in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/zendframework/zend-feed/src/Writer/Renderer/AbstractRenderer.php \Zend\Feed\Writer\Renderer\AbstractRenderer::_loadExtensions()
Load extensions from Zend\Feed\Writer\Writer
Return value
void
1 call to AbstractRenderer::_loadExtensions()
- AbstractRenderer::__construct in vendor/
zendframework/ zend-feed/ src/ Writer/ Renderer/ AbstractRenderer.php - Constructor
File
- vendor/
zendframework/ zend-feed/ src/ Writer/ Renderer/ AbstractRenderer.php, line 216
Class
Namespace
Zend\Feed\Writer\RendererCode
protected function _loadExtensions() {
Writer\Writer::registerCoreExtensions();
$manager = Writer\Writer::getExtensionManager();
$all = Writer\Writer::getExtensions();
if (stripos(get_class($this), 'entry')) {
$exts = $all['entryRenderer'];
}
else {
$exts = $all['feedRenderer'];
}
foreach ($exts as $extension) {
$plugin = $manager
->get($extension);
$plugin
->setDataContainer($this
->getDataContainer());
$plugin
->setEncoding($this
->getEncoding());
$this->extensions[$extension] = $plugin;
}
}