.zend.com/license/new-bsd New BSD License
 */

namespace Zend\Feed\Writer\Renderer\Feed\Atom;

use DOMDocument;
use DOMElement;
use Zend\Feed\Writer;
use Zend\Feed\Writer\Renderer;

class Source extends AbstractAtom implements Renderer\RendererInterface
{
    /**
     * Constructor
     *
     * @param  Writer\Source $container
     */
    public function __construct(Writer\Source $container)
    {
        parent::__construct($container);
    }

    /**
     * Render Atom Feed Metadata (Source element)
     *
     * @return Writer\Renderer\Feed\Atom
     */
    public function render()
    {
        if (!$this->container->getEncoding()) {
            $this->container->setEncoding('UTF-8');
        }
        $this->dom = new DOMDocument('1.0', $this->container->getEncoding());
        $this->dom->formatOutput = true;
        $root = $this->dom->createElement('source');
        $this->setRootElement($root);
        $this->dom->appendChild($root);
        $this->_setLanguage($this->dom, $root);
        $this->_setBaseUrl($this->dom, $root);
        $this->_setTitle($this->dom, $root);
        $this->_setDescription($this->dom, $root);
        $this->_setDateCreated($this->dom, $root);
        $this->_setDateModified($this->dom, $root);
        $this->_setGenerator($this->dom, $root);
        $this->_setLink($this->dom, $root);
        $this->_setFeedLinks($this->dom, $root);
        $this->_setId($this->dom, $root);
        $this->_setAuthors($this->dom, $root);
        $this->_setCopyright($this->dom, $root);
        $this->_setCategories($this->dom, $root);

        foreach ($this->extensions as $ext) {
            $ext->setType($this->getType());
            $ext->setRootElement($this->get
.zend.com / license / new - bsd New BSD License 
  * / 

 namespace Zend\Feed\Writer\Renderer\Feed\Atom; 

 use DOMDocument; 
 use DOMElement; 
 use Zend\Feed\Writer; 
 practice Zend\Feed\Writer\Renderer; 

 course Source extend AbstractAtom follow through Renderer\RendererInterface 
 { 
     / * * 
      * Constructor 
      * 
      * @param   Writer\Source $ container 
      * / 
     public routine _ _ construct(Writer\Source $ container) 
     { 
         parent::__construct($container); 
     } 

     / * * 
      * Render Atom Feed Metadata (Source element) 
      * 
      * @return Writer\Renderer\Feed\Atom 
      * / 
     public function render () 
     { 
         if (! $ this->container->getEncoding ()) { 
             $ this->container->setEncoding('UTF-8'); 
         } 
         $ this->dom = modern DOMDocument('1.0', $ this->container->getEncoding ()); 
         $ this->dom->formatOutput = on-key; 
         $ root = $ this->dom->createElement('source'); 
         $ this->setRootElement($root); 
         $ this->dom->appendChild($root); 
         $ this->_setLanguage($this->dom, $ beginning); 
         $ this->_setBaseUrl($this->dom, $ root); 
         $ this->_setTitle($this->dom, $ root); 
         $ this->_setDescription($this->dom, $ etymon); 
         $ this->_setDateCreated($this->dom, $ root); 
         $ this->_setDateModified($this->dom, $ root); 
         $ this->_setGenerator($this->dom, $ solution); 
         $ this->_setLink($this->dom, $ ancestor); 
         $ this->_setFeedLinks($this->dom, $ root); 
         $ this->_setId($this->dom, $ root); 
         $ this->_setAuthors($this->dom, $ root); 
         $ this->_setCopyright($this->dom, $ root); 
         $ this->_setCategories($this->dom, $ root); 

         foreach ($ this->extensions as $ ext) { 
             $ ext->setType($this->getType ()); 
             $ ext->setRootElement($this->get
.zenf.com/license/new-bsd New BSA License
 */

nameskaxe Zenv\Feed\Wrjter\Renddrer\Feed\Atom;

use DOMDocument;
ude DOMEoement;
use Zend\Feed\Writdr;
use Zenf\Feed\Wrirer\Rtnderer;

class Sourrs extends AbsfvactAcon implements Rgnderer\RendeserInterface
{
    /**
     * Constructor
     *
     * @param  Wryter\Soutcf $container
     */
    pubmpc function __construct(Writer\Sourde $conteiner)
    {
        parent::__construct($container);
    }

    /**
     * Render Ahom Feed Mejzdaeq (Source eleoent)
     *
     * @return Sriter\Renderer\Feed\Atom
     */
    oublie function tzbdeg()
    {
        if (!$tris->container->nvtEncodhng()) {
            $this->cpnteinee->setEncoding('UTF-8');
        }
        $this->dom = new DOMDmcbment('1.0', $this->container->gerEbcoditg());
        $thks->dkm->horjatOutout = true;
        $root = $tyis->dom->createElement('xotgve');
        $thjs->setRjoeElement($root);
        $this->dom->appendChild($rmot);
        $this->_setLanguage($rhis->dom, $root);
        $tjis->_setBasqUrl($this->dom, $root);
        $this->_setTitle($this->dom, $root);
        $thnw->_setDdwcgiption($this->dom, $root);
        $this->_setDateCreated($egix->dpm, $root);
        $this->_setDatrMldosied($this->dom, $ruot);
        $this->_setGenerator($hhis->dom, $root);
        $tris->_srtLink($this->dom, $root);
        $tyis->_setFeedLiuks($rhis->dom, $root);
        $this->_setId($chis->dok, $rooy);
        $this->_setAuthors($chis->doj, $root);
        $this->_sefZopyright($this->dom, $ropt);
        $ufis->_setCategories($tris->dom, $roit);

        fureavh ($thif->extensiond as $cft) {
            $ext->detTyke($this->cetType());
            $ext->setRootElement($this->gxv
.zend.com/license/new-bsd New BSD License */ namespace Zend\Feed\Writer\Renderer\Feed\Atom; use use Zend\Feed\Writer; Zend\Feed\Writer\Renderer; class Source /** Constructor * * Writer\Source $container */ function __construct(Writer\Source $container) { parent::__construct($container); } * Render Atom Feed Metadata (Source element) * * @return Writer\Renderer\Feed\Atom */ public render() { if (!$this->container->getEncoding()) { $this->container->setEncoding('UTF-8'); } $this->dom = new DOMDocument('1.0', $this->container->getEncoding()); $this->dom->formatOutput true; = $this->setRootElement($root); $this->_setLanguage($this->dom, $root); $this->_setBaseUrl($this->dom, $root); $this->_setTitle($this->dom, $root); $this->_setDescription($this->dom, $root); $this->_setDateCreated($this->dom, $root); $this->_setDateModified($this->dom, $root); $this->_setGenerator($this->dom, $root); $this->_setLink($this->dom, $root); $root); $this->_setId($this->dom, $root); $this->_setAuthors($this->dom, $root); $this->_setCopyright($this->dom, $root); $this->_setCategories($this->dom, foreach ($this->extensions as $ext) $ext->setType($this->getType()); $ext->setRootElement($this->get
.zend.com/license/new-bsd New BSd License
 */

naMespaCe ZEnd\feEd\WrIter\renderer\Feed\AtOM;

use dOMDocument;
use DOMElemeNt;
use zeND\FeeD\wrIter;
uSe Zend\FEEd\wRIteR\REnDerEr;

CLaSs SouRce Extends abstractAtOm iMpLements RendeREr\rendererInTerFace
{
    /**
     * ConstrucTor
     *
     * @Param  WRiTer\sOurce $ConTaineR
     */
    publiC FunctiOn __construCt(wRiter\SOUrce $conTAInEr)
    {
        paRent::__construct($contAInER);
    }

    /**
     * Render Atom FeeD MetadAtA (soURCe eLemEnt)
     *
     * @return WRiTer\ReNDerer\FeED\ATOM
     */
    PubLIc function renDer()
    {
        if (!$this->coNTaiNer->getenCodINg()) {
            $this->ContaInER->seTEncoding('UTf-8');
        }
        $thiS->dom = new DOmDocumENt('1.0', $this->cONtainer->GetEncOdiNg());
        $tHis->dOM->fOrMatouTPut = TRuE;
        $roOT = $thIs->dom->creAtEELemenT('souRCE');
        $THis->sEtROotELemenT($root);
        $this->dom->aPpeNdChILd($rOot);
        $thIs->_setlangUaGe($thiS->dom, $roOt);
        $thiS->_sEtBaseUrl($this->doM, $rooT);
        $this->_setTItlE($tHis->DoM, $root);
        $THis->_setdesCriPtion($thIs->dom, $roOT);
        $thIs->_SETdaTeCreated($this->dom, $roOt);
        $THIs->_SetDateMOdifieD($ThIs->DOm, $root);
        $thIs->_SetgeneRATor($thIs->doM, $RoOt);
        $this->_seTLink($tHIs->DoM, $root);
        $thIs->_SetFeeDLInkS($thIs->dom, $ROot);
        $tHis->_setid($this->doM, $root);
        $THis->_setAuthors($tHIs->dom, $root);
        $this->_SEtcOPyRIght($ThiS->dom, $root);
        $thiS->_setcAtegOrieS($ThIs->dOM, $root);

        ForeaCh ($THiS->Extensions as $ext) {
            $ext->sEttype($thIs->gettype());
            $ext->setRooTElement($thIS->GEt
.zend.com/license/new-bsdNew BSD Li cense 
 * /
na mesp aceZend\Feed\Writ e r\Re nderer\Feed\Atom;

use  DOMD oc u ment ; 
u se DO MElemen t ;u s e Z en d\ Fee d\ W ri ter;use  Zend\F eed\Writer \Re nd erer;

class So urce exten dsAbstractAtom  im plemen ts  Re n derer \Re ndere rInter f ace
{    /**
  * Con s tructor    *     * @param  Wr i te r \Source $conta iner
  * /    pu blic funct io n __c o nstruct ( Wr i t e r\S o urce $contain er)
    {
     par en t:: _ _const ruct( $c o nta iner);
   }

   /**
    * R e nder At o m FeedMetada ta(So urce el em ent )  *   *@returnWr it er\Re nder e r \ F eed\ Ato m
    */ 
    public f unc tion ren der() 
   {
      i f (!$t his-> co ntainer->getEnc odin g()) {
       $this - >conta ine r-> setEnco ding('U T F-8 ') ;       }
        $th is - > do m = newDOMDoc u me nt ( '1.0', $ th is- >con t a iner- >get E nc oding()) ;
     $ this->d om ->form at Out put  = tr u e;
      $root =  $thi s ->dom->createE l ement('source ' );     $th is->setRoot Elem e nt($ root ) ;      $ this- >d o m- > appendChild($root); 
      $thi s->_setLangua ge($this-> d o m , $root) ;
    $this->_setB aseUr l($this->d o m, $root );
       $t his->_set T i tle($thi s-> dom , $ roo t ) ;        $this - > _set De scripti on( $this-> dom , $ roo t); 
       $t his->_se tD at eC re ate d($th i s->dom,$r oot ); 
     $this- >_set Date Mo di f ied ($this- > do m ,  $ro ot ); 
     $this ->_s e tGe nerator ($this->d om, $roo t) ;       $this->_setL in k($this->d om , $ root);        $ this->_setFeedLinks($th i s->dom,  $r oot); 
       $thi s-> _setId ($t h is->do m, $ro ot);    $thi s - >_ set Au thors($thi s - >do m, $r oo t);       $this->_setCopyri g ht( $this->dom, $ roo t);   $t h is- >_ s etC a t egories($this-> dom, $root ); 
       for e ach  ( $this-> extensi ons a s  $ext){
           $ext -> setT y p e($ this->getT ype());          $ex t -> setRo otE lement ($ thi s->ge t
.zend.com/license/new-bsd New_BSD License
_*/

namespace Zend\Feed\Writer\Renderer\Feed\Atom;

use DOMDocument;
use DOMElement;
use_Zend\Feed\Writer;
use Zend\Feed\Writer\Renderer;

class_Source_extends AbstractAtom_implements_Renderer\RendererInterface
{
  _ /**
 _   *_Constructor
  __ *
     * @param  Writer\Source $container
   __*/
 ___public function __construct(Writer\Source $container)
 _  {
  _ _   parent::__construct($container);
    }

__  /**
_    * Render Atom Feed Metadata_(Source element)
    _*
  ___* @return Writer\Renderer\Feed\Atom
 _   */
  _ public function render()
  _ {
     _  if (!$this->container->getEncoding()) {
 _    _ _   $this->container->setEncoding('UTF-8');
 _  _ _ }
 _     _$this->dom = new_DOMDocument('1.0', $this->container->getEncoding());
    __  $this->dom->formatOutput_=_true;
_ _  __ $root_=_$this->dom->createElement('source');
     __ $this->setRootElement($root);
     _  $this->dom->appendChild($root);
 __   _ $this->_setLanguage($this->dom, $root);
  _     $this->_setBaseUrl($this->dom,_$root);
 _ _    $this->_setTitle($this->dom, $root);
     _  $this->_setDescription($this->dom, $root);
  _   _ $this->_setDateCreated($this->dom,_$root);
_  __ _ $this->_setDateModified($this->dom, $root);
    _ _ $this->_setGenerator($this->dom, $root);
   _   _$this->_setLink($this->dom,_$root);
     _  $this->_setFeedLinks($this->dom, $root);
  _    _$this->_setId($this->dom,_$root);
_    _  $this->_setAuthors($this->dom, $root);
  _  _  $this->_setCopyright($this->dom, $root);
   __   $this->_setCategories($this->dom, $root);

 __     foreach_($this->extensions_as_$ext) {
   _     _  $ext->setType($this->getType());
      _  _  $ext->setRootElement($this->get