$countMax)
$count = $countMax;
elseif ($count < 0)
$count = 0;
} else {
$count = $countDefault;
}
// Get the posts relevant to the passed-in variables.
$bookmarks =& $bookmarkservice->getBookmarks(0, $count, $userservice->getCurrentUserId(), $tag);
// Set up the XML file and output all the tags.
header('Content-Type: text/xml');
echo '\r\n";
echo '\r\n";
foreach($bookmarks['bookmarks'] as $row) {
if (is_null($row['bDescription']) || (trim($row['bDescription']) == ''))
$description = '';
else
$description = 'extended="'. filter($row['bDescription'], 'xml') .'" ';
$taglist = '';
if (count($row['tags']) > 0) {
foreach($row['tags'] as $tag)
$taglist .= convertTag($tag) .' ';
$taglist = substr($taglist, 0, -1);
} else {
$taglist = 'system:unfiled';
}
echo "\t\r\n";
}
echo '';
?>>diff options