/**
  * Add some articles and update the book of the Proposal-Object
  *
  * @param $articleList an array with the names of the articles to be added
  * @param $prop the proposal-Object
  */
 private static function addArticlesFromName($articleList, $prop)
 {
     foreach ($articleList as $article) {
         SpecialCollection::addArticleFromName(NS_MAIN, $article);
     }
     $prop->setCollection($_SESSION['wsCollection']);
 }
Ejemplo n.º 2
0
function wfAjaxCollectionAddArticle($namespace = 0, $title = '', $oldid = '')
{
    SpecialCollection::addArticleFromName($namespace, $title, $oldid);
    return wfAjaxCollectionGetItemList();
}