protected function getText(AtomBuilderText $text, $tagname = '', $parentnode)
 {
     if ($text->getContentType() == 'text' || $text->getContentType() == 'html' || $text->getContentType() == 'xhtml') {
         $newnode = $this->xml->createElement($tagname);
         $newnode->setAttribute('type', $text->getContentType());
         if ($text->getContentType() == 'xhtml') {
             $xhtmlcontent = $this->getXhtmlContent($content->getData());
             if ($xhtmlcontent instanceof DOMNode) {
                 $newnode->appendChild($this->xml->importNode($xhtmlcontent, TRUE));
             } else {
                 return FALSE;
             }
             // end if
         } elseif ($text->getContentType() == 'html') {
             $newnode->appendChild($this->xml->createCDATASection($text->getData()));
         } else {
             $newnode->appendChild($this->xml->createTextNode($text->getData()));
         }
         // end if
         $parentnode->appendChild($newnode);
         return TRUE;
     }
     // end if
     return FALSE;
 }
 public function getLink()
 {
     return parent::getVar('link');
 }