Lines Matching refs:pagevars
445 $pagevars['qpage'] = $qpage;
451 $pagevars['cat'] = $category;
452 $pagevars['qpage'] = 0;
454 $pagevars['cat'] = $cat; // If empty will be set up later.
457 if ($pagevars['cat']){
458 $thispageurl->param('cat', $pagevars['cat']);
478 if ($pagevars['qpage'] > -1) {
479 $thispageurl->param('qpage', $pagevars['qpage']);
481 $pagevars['qpage'] = 0;
484 $pagevars['qperpage'] = question_set_or_get_user_preference(
494 if (!empty($pagevars['cat'])){
495 $catparts = explode(',', $pagevars['cat']);
502 $pagevars['cat'] = "{$category->id},{$category->contextid}";
506 …$pagevars['recurse'] = question_set_or_get_user_preference('recurse', $recurse, 1, $thispageurl…
507 …$pagevars['showhidden'] = question_set_or_get_user_preference('showhidden', $showhidden, 0, $thisp…
508 …$pagevars['qbshowtext'] = question_set_or_get_user_preference('qbshowtext', $qbshowtext, 0, $thisp…
511 $pagevars['cpage'] = $cpage;
512 if ($pagevars['cpage'] != 1){
513 $thispageurl->param('cpage', $pagevars['cpage']);
516 $pagevars['qtagids'] = $qtagids;
517 foreach ($pagevars['qtagids'] as $index => $qtagid) {
521 return array($thispageurl, $contexts, $cmid, $cm, $module, $pagevars);
526 * @param array $pagevars from {@link question_edit_setup()}.
529 function question_get_category_id_from_pagevars(array $pagevars) { argument
530 list($questioncategoryid) = explode(',', $pagevars['cat']);