protected function takeChildFromDOM($child) { $absoluteNodeName = $child->namespaceURI . ':' . $child->localName; switch ($absoluteNodeName) { case $this->lookupNamespace('gd') . ':' . 'feedLink': $feedLink = new FeedLink(); $feedLink->transferFromDOM($child); $this->_feedLink = $feedLink; break; default: parent::takeChildFromDOM($child); break; } }
function NormalizeChannel() { $this->channel->Updated() or $this->channel->Updated(filemtime($this->chanFile)); if (!$this->channel->Permalink()) { $links = $this->channel->Links()->Get('self'); $links and $this->channel->Permalink($links[0]->URL()); } foreach ($this->alternate as $format) { $link = new FeedLink('alternate'); $link->Type(FeedOut::MimeOf($format)); $link->URL($this->UrlOf('format=', $this->EncodeIRI(strtolower($format)))); $link->Title($format); $this->channel->Links()->Add($link); } parent::NormalizeChannel(); }