\n"; $str .= $this->get('name'); $str .= $this->get('email'); $str .= $this->get('url'); $str .= "\n"; return $str; } $value = $this->{$node_name}; if(!$value) return ''; if(strpos($node_name,'link_')!==false) { $type = str_replace('_','-',substr($node_name, strlen('link_'))); return "\n"; } if(in_array($node_name,array('published','deleted','updated'))) { $value = $this->_getTime($value); } return sprintf("<%s>%s\n", $node_name, htmlspecialchars($value) ,$node_name); } function _getTime($time) { return SyndicationHandler::getTimestamp($time); } function wrapFeed($str) { $return = ''; $return .= "\n"; $return .= ''; $return .= "\n"; $return .= $str; $return .= ""; return $return; } function wrapEntry($str, $xml_info=false) { if($xml_info) { $return = ''; $return .= "\n"; $return .= ''; $return .= "\n"; } else { $return .= "\n"; } $return .= $str; $return .= "\n"; return $return; } } ?>