/**
  * Constructor: Primarily triggers the registration of core extensions and
  * loads those appropriate to this data container.
  *
  * @return void
  */
 public function __construct()
 {
     Zend_Feed_Writer::registerCoreExtensions();
     $this->_loadExtensions();
 }
 /**
  * Load extensions from Zend_Feed_Writer
  *
  * @return void
  */
 protected function _loadExtensions()
 {
     Zend_Feed_Writer::registerCoreExtensions();
     $all = Zend_Feed_Writer::getExtensions();
     if (stripos(get_class($this), 'entry')) {
         $exts = $all['entryRenderer'];
     } else {
         $exts = $all['feedRenderer'];
     }
     foreach ($exts as $extension) {
         $className = Zend_Feed_Writer::getPluginLoader()->getClassName($extension);
         $this->_extensions[$extension] = new $className($this->getDataContainer());
         $this->_extensions[$extension]->setEncoding($this->getEncoding());
     }
 }