0

如何使用 zend ZendGdata 1.11.11在博客中发布带有类别的文章

4

1 回答 1

0
$labels = $entry->getCategory();
$newLabel = $gdClient->newCategory('testlabel2', 'http://www.blogger.com/atom/ns#');
$labels[] = $newLabel; // Append the new label to the list of labels. 
$entry->setCategory($labels);
于 2012-02-17T18:39:19.217 回答