2.根据用户id号来获取文章
$articleDAO=&DAORegistry::getDAO('ArticleDAO');
/* 获取用户文章数组 */
$userArticles=$articleDAO->getArticlesByUserId($userId);//用户id
foreach ($userArticles as $userArticle){
$articles[]['title']=$userArticle->getArticleTitle();
$articles[]['abstract']=$userArticle->getArticleAbstract();
$articles[]['id']=$userArticle->getArticleId();
}
Click on http://groups.google.com/group/ojschina/web/ojsdao - or copy
& paste it into your browser's address bar if that doesn't work.