links as $link)
{
if ($link['rel'] == 'alternate')
{
$parts = parse_url($link['href']);
if (isset($parts['fragment'])){
$this->old_permalink = $parts['fragment'];
}
}
//Parent post for nested links
if ($link['rel'] == 'related')
{
$parts = parse_url($link['href']);
$this->related = $parts['path'];
}
if ($link['rel'] == 'self')
{
$parts = parse_url($link['href']);
$this->self = $parts['path'];
}
}
}
function import() {
$comment_author = $this->author;
$comment_author_url = $this->authoruri;
$comment_author_email = $this->authoremail;
$comment_date = $this->updated;
$comment_content = $this->content;
$comment_post_ID = $this->post_ID;
$comment_author_IP = '127.0.0.1'; //Blogger does not supply the IP so default this
// Clean up content
// Simplepie does some cleaning but does not do these.
$comment_content = str_replace('
', '
', $comment_content);
$comment_content = str_replace('