/**
  * 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 wfAjaxCollectionSetSorting($items_string)
{
    $parsed = array();
    parse_str($items_string, $parsed);
    $items = array();
    foreach ($parsed['item'] as $s) {
        if (is_numeric($s)) {
            $items[] = intval($s);
        }
    }
    SpecialCollection::setSorting($items);
    return wfAjaxCollectionGetItemList();
}