Location: PHPKode > projects > Ps and Qs: Processing QTI using PHP > qti-eb/functionsfiles/overview.inc.php
<?php

$functionsmemory = array(); // Will store key->value pairs for things which want some persistence

$functionsmemory['assessments'] = array();
$functionsmemory['sections'] = array();
$functionsmemory['items'] = array();
$functionsmemory['totalitems'] = 0;
$functionsmemory['totalsections'] = 0;

function getDisplayName($attrs)
{
  return htmlspecialchars(strlen($attrs['title'])>0 ? $attrs['title'] : $attrs['ident']);
}

function extraUrlParams()
{
  global $qtifilename;
//  return "action=process&amp;filetoload=$qtifilename&amp;processorfile=displayqs.inc.php";
  return "action=showquestions&amp;filetoload=$qtifilename";
}

// The following two functions are called before the start, and after the end, respectively,
//  of the QTI XML processing. Use them to wrap HTML around the whole output, for example.
function qtiEbVeryStart()
{
  global $functionsmemory;
  echo "<h1>QTI file summary</h1>";
}
function qtiEbVeryEnd()
{
  global $functionsmemory;
  echo "<p style=\"text-align: right; font-style: italic;\">The file contains:<br />$functionsmemory[totalitems] item(s)<br />$functionsmemory[totalsections] section(s)<br />"
    . sizeof($functionsmemory['assessments']) . " assessment(s)<br />"
    . sizeof($functionsmemory['objectbanks']) . " objectbank(s)</p>";
/*
  echo "<h1>QTI file summary</h1>"
  print_r($functionsmemory['assessments']);
  foreach($functionsmemory['assessments'] as $assk=>$assv)
  {
    echo "<h2>Assessment $assk</h2>";
    foreach($assv as $seck=>$secv)
    {
      echo "<h2>Section $seck</h2>";
      foreach($secv as $itemk=>$itemv)
      {
        echo "<h2>Item $itemk</h2>";
      }
    }
  }
  
  ?>
  <hr noshade>
  <p>Of the 8 ASI QTI file outlines, this overview supports the following:</p>
  <blockquote>
    <p>(c) Assessment containing sections, containing items</p>
  </blockquote>
  <p>and doesn't support the following:</p>
  <blockquote>
    <p>(a)(e) A single item, or multiple items (SOON!)</p>
    <p>(b) A single section, containing items (SOON!)</p>
    <p>(d) Objectbank containing sections, containing items (but should in principle
      be easy)</p>
    <p>(f) Sections containing sections (some iterative function would be needed
      for this)</p>
    <p>(g) Assessment containing sections, containing sections containing items
      (this would be a combination of (c) and (f))</p>
    <p>(h) Object bank containing a heterogenous mixture of items and sections-containing-items</p>
  </blockquote>
  <?php
  */
}


// "and":
function qtiEbStartand($attrs, $context)
{
  global $functionsmemory;
}
function qtiEbDataand($context, $data)
{
  global $functionsmemory;
}
function qtiEbStopand($context)
{
  global $functionsmemory;
}
// ...end "and"


// "altmaterial":
function qtiEbStartaltmaterial($attrs, $context)
{
  global $functionsmemory;
}
function qtiEbDataaltmaterial($context, $data)
{
  global $functionsmemory;
}
function qtiEbStopaltmaterial($context)
{
  global $functionsmemory;
}
// ...end "altmaterial"


// "assessfeedback":
function qtiEbStartassessfeedback($attrs, $context)
{
  global $functionsmemory;
}
function qtiEbDataassessfeedback($context, $data)
{
  global $functionsmemory;
}
function qtiEbStopassessfeedback($context)
{
  global $functionsmemory;
}
// ...end "assessfeedback"


// "assessment":
function qtiEbStartassessment($attrs, $context)
{
  global $functionsmemory;
  $functionsmemory['assessments'][$attrs['ident']] = array();
  $functionsmemory['currentassessment'] = $attrs['ident'];
  $displayname = getDisplayName($attrs);
  echo "\n  <li>Assessment <a href=\"./?choose[assessment]=" . urlencode($attrs['ident']) . "&" . extraUrlParams() . "\">$displayname</a></li>\n<ul>";
}
function qtiEbDataassessment($context, $data)
{
  global $functionsmemory;
}
function qtiEbStopassessment($context)
{
  global $functionsmemory;
  unset($functionsmemory['currentassessment']);
  echo "\n</ul>";
}
// ...end "assessment"


// "assessmentcontrol":
function qtiEbStartassessmentcontrol($attrs, $context)
{
  global $functionsmemory;
}
function qtiEbDataassessmentcontrol($context, $data)
{
  global $functionsmemory;
}
function qtiEbStopassessmentcontrol($context)
{
  global $functionsmemory;
}
// ...end "assessmentcontrol"


// "assessproc_extension":
function qtiEbStartassessproc_extension($attrs, $context)
{
  global $functionsmemory;
}
function qtiEbDataassessproc_extension($context, $data)
{
  global $functionsmemory;
}
function qtiEbStopassessproc_extension($context)
{
  global $functionsmemory;
}
// ...end "assessproc_extension"


// "conditionvar":
function qtiEbStartconditionvar($attrs, $context)
{
  global $functionsmemory;
}
function qtiEbDataconditionvar($context, $data)
{
  global $functionsmemory;
}
function qtiEbStopconditionvar($context)
{
  global $functionsmemory;
}
// ...end "conditionvar"


// "decvar":
function qtiEbStartdecvar($attrs, $context)
{
  global $functionsmemory;
}
function qtiEbDatadecvar($context, $data)
{
  global $functionsmemory;
}
function qtiEbStopdecvar($context)
{
  global $functionsmemory;
}
// ...end "decvar"


// "displayfeedback":
function qtiEbStartdisplayfeedback($attrs, $context)
{
  global $functionsmemory;
}
function qtiEbDatadisplayfeedback($context, $data)
{
  global $functionsmemory;
}
function qtiEbStopdisplayfeedback($context)
{
  global $functionsmemory;
}
// ...end "displayfeedback"


// "duration":
function qtiEbStartduration($attrs, $context)
{
  global $functionsmemory;
}
function qtiEbDataduration($context, $data)
{
  global $functionsmemory;
}
function qtiEbStopduration($context)
{
  global $functionsmemory;
}
// ...end "duration"


// "flow":
function qtiEbStartflow($attrs, $context)
{
  global $functionsmemory;
}
function qtiEbDataflow($context, $data)
{
  global $functionsmemory;
}
function qtiEbStopflow($context)
{
  global $functionsmemory;
}
// ...end "flow"


// "fieldentry":
function qtiEbStartfieldentry($attrs, $context)
{
  global $functionsmemory;
}
function qtiEbDatafieldentry($context, $data)
{
  global $functionsmemory;
}
function qtiEbStopfieldentry($context)
{
  global $functionsmemory;
}
// ...end "fieldentry"


// "fieldlabel":
function qtiEbStartfieldlabel($attrs, $context)
{
  global $functionsmemory;
}
function qtiEbDatafieldlabel($context, $data)
{
  global $functionsmemory;
}
function qtiEbStopfieldlabel($context)
{
  global $functionsmemory;
}
// ...end "fieldlabel"


// "flow_label":
function qtiEbStartflow_label($attrs, $context)
{
  global $functionsmemory;
}
function qtiEbDataflow_label($context, $data)
{
  global $functionsmemory;
}
function qtiEbStopflow_label($context)
{
  global $functionsmemory;
}
// ...end "flow_label"


// "flow_mat":
function qtiEbStartflow_mat($attrs, $context)
{
  global $functionsmemory;
}
function qtiEbDataflow_mat($context, $data)
{
  global $functionsmemory;
}
function qtiEbStopflow_mat($context)
{
  global $functionsmemory;
}
// ...end "flow_mat"


// "hint":
function qtiEbStarthint($attrs, $context)
{
  global $functionsmemory;
}
function qtiEbDatahint($context, $data)
{
  global $functionsmemory;
}
function qtiEbStophint($context)
{
  global $functionsmemory;
}
// ...end "hint"


// "hintmaterial":
function qtiEbStarthintmaterial($attrs, $context)
{
  global $functionsmemory;
}
function qtiEbDatahintmaterial($context, $data)
{
  global $functionsmemory;
}
function qtiEbStophintmaterial($context)
{
  global $functionsmemory;
}
// ...end "hintmaterial"


// "interpretvar":
function qtiEbStartinterpretvar($attrs, $context)
{
  global $functionsmemory;
}
function qtiEbDatainterpretvar($context, $data)
{
  global $functionsmemory;
}
function qtiEbStopinterpretvar($context)
{
  global $functionsmemory;
}
// ...end "interpretvar"


// "item":
function qtiEbStartitem($attrs, $context)
{
  global $functionsmemory;
  $functionsmemory['items'][$attrs['ident']] = array();
  $functionsmemory['totalitems']++;
  $functionsmemory['currentitem'] = $attrs['ident'];
  $displayname = getDisplayName($attrs);
  echo "\n  <li>Item <a href=\"./?choose[item]=" . urlencode($attrs['ident']) . "&" . extraUrlParams() . "\">$displayname</a></li>";
}
function qtiEbDataitem($context, $data)
{
  global $functionsmemory;
}
function qtiEbStopitem($context)
{
  global $functionsmemory;
//  echo "<p>STOPITEM: $functionsmemory[currentassessment]:$functionsmemory[currentsection]:$functionsmemory[currentitem]";
  $functionsmemory['sections'][$functionsmemory['currentsection']][$functionsmemory['currentitem']] = array();
  unset($functionsmemory['currentitem']);
}
// ...end "item"


// "itemcontrol":
function qtiEbStartitemcontrol($attrs, $context)
{
  global $functionsmemory;
}
function qtiEbDataitemcontrol($context, $data)
{
  global $functionsmemory;
}
function qtiEbStopitemcontrol($context)
{
  global $functionsmemory;
}
// ...end "itemcontrol"


// "itemfeedback":
function qtiEbStartitemfeedback($attrs, $context)
{
  global $functionsmemory;
}
function qtiEbDataitemfeedback($context, $data)
{
  global $functionsmemory;
}
function qtiEbStopitemfeedback($context)
{
  global $functionsmemory;
}
// ...end "itemfeedback"


// "itemmetadata":
function qtiEbStartitemmetadata($attrs, $context)
{
  global $functionsmemory;
}
function qtiEbDataitemmetadata($context, $data)
{
  global $functionsmemory;
}
function qtiEbStopitemmetadata($context)
{
  global $functionsmemory;
}
// ...end "itemmetadata"


// "itempostcondition":
function qtiEbStartitempostcondition($attrs, $context)
{
  global $functionsmemory;
}
function qtiEbDataitempostcondition($context, $data)
{
  global $functionsmemory;
}
function qtiEbStopitempostcondition($context)
{
  global $functionsmemory;
}
// ...end "itempostcondition"


// "itemprecondition":
function qtiEbStartitemprecondition($attrs, $context)
{
  global $functionsmemory;
}
function qtiEbDataitemprecondition($context, $data)
{
  global $functionsmemory;
}
function qtiEbStopitemprecondition($context)
{
  global $functionsmemory;
}
// ...end "itemprecondition"


// "itemproc_extension":
function qtiEbStartitemproc_extension($attrs, $context)
{
  global $functionsmemory;
}
function qtiEbDataitemproc_extension($context, $data)
{
  global $functionsmemory;
}
function qtiEbStopitemproc_extension($context)
{
  global $functionsmemory;
}
// ...end "itemproc_extension"


// "itemref":
function qtiEbStartitemref($attrs, $context)
{
  global $functionsmemory;
}
function qtiEbDataitemref($context, $data)
{
  global $functionsmemory;
}
function qtiEbStopitemref($context)
{
  global $functionsmemory;
}
// ...end "itemref"


// "itemrubric":
function qtiEbStartitemrubric($attrs, $context)
{
  global $functionsmemory;
}
function qtiEbDataitemrubric($context, $data)
{
  global $functionsmemory;
}
function qtiEbStopitemrubric($context)
{
  global $functionsmemory;
}
// ...end "itemrubric"


// "mat_extension":
function qtiEbStartmat_extension($attrs, $context)
{
  global $functionsmemory;
}
function qtiEbDatamat_extension($context, $data)
{
  global $functionsmemory;
}
function qtiEbStopmat_extension($context)
{
  global $functionsmemory;
}
// ...end "mat_extension"


// "matapplet":
function qtiEbStartmatapplet($attrs, $context)
{
  global $functionsmemory;
}
function qtiEbDatamatapplet($context, $data)
{
  global $functionsmemory;
}
function qtiEbStopmatapplet($context)
{
  global $functionsmemory;
}
// ...end "matapplet"


// "matapplication":
function qtiEbStartmatapplication($attrs, $context)
{
  global $functionsmemory;
}
function qtiEbDatamatapplication($context, $data)
{
  global $functionsmemory;
}
function qtiEbStopmatapplication($context)
{
  global $functionsmemory;
}
// ...end "matapplication"


// "mataudio":
function qtiEbStartmataudio($attrs, $context)
{
  global $functionsmemory;
}
function qtiEbDatamataudio($context, $data)
{
  global $functionsmemory;
}
function qtiEbStopmataudio($context)
{
  global $functionsmemory;
}
// ...end "mataudio"


// "matbreak":
function qtiEbStartmatbreak($attrs, $context)
{
  global $functionsmemory;
}
function qtiEbDatamatbreak($context, $data)
{
  global $functionsmemory;
}
function qtiEbStopmatbreak($context)
{
  global $functionsmemory;
}
// ...end "matbreak"



// "matemtext":
function qtiEbStartmatemtext($attrs, $context)
{
  global $functionsmemory;
}
function qtiEbDatamatemtext($context, $data)
{
  global $functionsmemory;
}
function qtiEbStopmatemtext($context)
{
  global $functionsmemory;
}
// ...end "matemtext"


// "material":
function qtiEbStartmaterial($attrs, $context)
{
  global $functionsmemory;
}
function qtiEbDatamaterial($context, $data)
{
  global $functionsmemory;
}
function qtiEbStopmaterial($context)
{
  global $functionsmemory;
}
// ...end "material"


// "material_ref":
function qtiEbStartmaterial_ref($attrs, $context)
{
  global $functionsmemory;
}
function qtiEbDatamaterial_ref($context, $data)
{
  global $functionsmemory;
}
function qtiEbStopmaterial_ref($context)
{
  global $functionsmemory;
}
// ...end "material_ref"


// "matimage":
function qtiEbStartmatimage($attrs, $context)
{
  global $functionsmemory;
}
function qtiEbDatamatimage($context, $data)
{
  global $functionsmemory;
}
function qtiEbStopmatimage($context)
{
  global $functionsmemory;
}
// ...end "matimage"


// "matref":
function qtiEbStartmatref($attrs, $context)
{
  global $functionsmemory;
}
function qtiEbDatamatref($context, $data)
{
  global $functionsmemory;
}
function qtiEbStopmatref($context)
{
  global $functionsmemory;
}
// ...end "matref"


// "mattext":
function qtiEbStartmattext($attrs, $context)
{
  global $functionsmemory;
}
function qtiEbDatamattext($context, $data)
{
  global $functionsmemory;
}
function qtiEbStopmattext($context)
{
  global $functionsmemory;
}
// ...end "mattext"


// "matvideo":
function qtiEbStartmatvideo($attrs, $context)
{
  global $functionsmemory;
}
function qtiEbDatamatvideo($context, $data)
{
  global $functionsmemory;
}
function qtiEbStopmatvideo($context)
{
  global $functionsmemory;
}
// ...end "matvideo"


// "not":
function qtiEbStartnot($attrs, $context)
{
  global $functionsmemory;
}
function qtiEbDatanot($context, $data)
{
  global $functionsmemory;
}
function qtiEbStopnot($context)
{
  global $functionsmemory;
}
// ...end "not"


// "objectbank":
function qtiEbStartobjectbank($attrs, $context)
{
  global $functionsmemory;
  $functionsmemory['objectbanks'][$attrs['ident']] = array();
  $displayname = getDisplayName($attrs);
  echo "\n  <li>Objectbank <a href=\"./?choose[objectbank]=" . urlencode($attrs['ident']) . "&" . extraUrlParams() . "\">$displayname</a></li>\n<ul>";
}
function qtiEbDataobjectbank($context, $data)
{
  global $functionsmemory;
}
function qtiEbStopobjectbank($context)
{
  global $functionsmemory;
  echo "\n</ul>";
}
// ...end "objectbank"


// "objectives":
function qtiEbStartobjectives($attrs, $context)
{
  global $functionsmemory;
}
function qtiEbDataobjectives($context, $data)
{
  global $functionsmemory;
}
function qtiEbStopobjectives($context)
{
  global $functionsmemory;
}
// ...end "objectives"


// "or":
function qtiEbStartor($attrs, $context)
{
  global $functionsmemory;
}
function qtiEbDataor($context, $data)
{
  global $functionsmemory;
}
function qtiEbStopor($context)
{
  global $functionsmemory;
}
// ...end "or"

// "order":
function qtiEbStartorder($attrs, $context)
{
  global $functionsmemory;
}
function qtiEbDataorder($context, $data)
{
  global $functionsmemory;
}
function qtiEbStoporder($context)
{
  global $functionsmemory;
}
// ...end "order"


// "other":
function qtiEbStartother($attrs, $context)
{
  global $functionsmemory;
}
function qtiEbDataother($context, $data)
{
  global $functionsmemory;
}
function qtiEbStopother($context)
{
  global $functionsmemory;
}
// ...end "other"


// "outcomes":
function qtiEbStartoutcomes($attrs, $context)
{
  global $functionsmemory;
}
function qtiEbDataoutcomes($context, $data)
{
  global $functionsmemory;
}
function qtiEbStopoutcomes($context)
{
  global $functionsmemory;
}
// ...end "outcomes"


// "outcomes_processing":
function qtiEbStartoutcomes_processing($attrs, $context)
{
  global $functionsmemory;
}
function qtiEbDataoutcomes_processing($context, $data)
{
  global $functionsmemory;
}
function qtiEbStopoutcomes_processing($context)
{
  global $functionsmemory;
}
// ...end "outcomes_processing"


// "presentation":
function qtiEbStartpresentation($attrs, $context)
{
  global $functionsmemory;
}
function qtiEbDatapresentation($context, $data)
{
  global $functionsmemory;
}
function qtiEbStoppresentation($context)
{
  global $functionsmemory;
}
// ...end "presentation"


// "presentation_material":
function qtiEbStartpresentation_material($attrs, $context)
{
  global $functionsmemory;
}
function qtiEbDatapresentation_material($context, $data)
{
  global $functionsmemory;
}
function qtiEbStoppresentation_material($context)
{
  global $functionsmemory;
}
// ...end "presentation_material"

// "qmd_itemtype":
function qtiEbStartqmd_itemtype($attrs, $context)
{
  global $functionsmemory;
}
function qtiEbDataqmd_itemtype($context, $data)
{
  global $functionsmemory;
}
function qtiEbStopqmd_itemtype($context)
{
  global $functionsmemory;
}
// ...end "qmd_itemtype"


// "qmd_levelofdifficulty":
function qtiEbStartqmd_levelofdifficulty($attrs, $context)
{
  global $functionsmemory;
}
function qtiEbDataqmd_levelofdifficulty($context, $data)
{
  global $functionsmemory;
}
function qtiEbStopqmd_levelofdifficulty($context)
{
  global $functionsmemory;
}
// ...end "qmd_levelofdifficulty"


// "qmd_maximumscore":
function qtiEbStartqmd_maximumscore($attrs, $context)
{
  global $functionsmemory;
}
function qtiEbDataqmd_maximumscore($context, $data)
{
  global $functionsmemory;
}
function qtiEbStopqmd_maximumscore($context)
{
  global $functionsmemory;
}
// ...end "qmd_maximumscore"


// "qmd_minimumscore":
function qtiEbStartqmd_minimumscore($attrs, $context)
{
  global $functionsmemory;
}
function qtiEbDataqmd_minimumscore($context, $data)
{
  global $functionsmemory;
}
function qtiEbStopqmd_minimumscore($context)
{
  global $functionsmemory;
}
// ...end "qmd_minimumscore"


// "qmd_status":
function qtiEbStartqmd_status($attrs, $context)
{
  global $functionsmemory;
}
function qtiEbDataqmd_status($context, $data)
{
  global $functionsmemory;
}
function qtiEbStopqmd_status($context)
{
  global $functionsmemory;
}
// ...end "qmd_status"


// "qmd_weighting":
function qtiEbStartqmd_weighting($attrs, $context)
{
  global $functionsmemory;
}
function qtiEbDataqmd_weighting($context, $data)
{
  global $functionsmemory;
}
function qtiEbStopqmd_weighting($context)
{
  global $functionsmemory;
}
// ...end "qmd_weighting"


// "qmd_toolvendor":
function qtiEbStartqmd_toolvendor($attrs, $context)
{
  global $functionsmemory;
}
function qtiEbDataqmd_toolvendor($context, $data)
{
  global $functionsmemory;
}
function qtiEbStopqmd_toolvendor($context)
{
  global $functionsmemory;
}
// ...end "qmd_toolvendor"


// "qmd_topic":
function qtiEbStartqmd_topic($attrs, $context)
{
  global $functionsmemory;
}
function qtiEbDataqmd_topic($context, $data)
{
  global $functionsmemory;
}
function qtiEbStopqmd_topic($context)
{
  global $functionsmemory;
}
// ...end "qmd_topic"



// "qticomment":
function qtiEbStartqticomment($attrs, $context)
{
  global $functionsmemory;
}
function qtiEbDataqticomment($context, $data)
{
  global $functionsmemory;
}
function qtiEbStopqticomment($context)
{
  global $functionsmemory;
}
// ...end "qticomment"


// "qtimetadata":
function qtiEbStartqtimetadata($attrs, $context)
{
  global $functionsmemory;
}
function qtiEbDataqtimetadata($context, $data)
{
  global $functionsmemory;
}

function qtiEbStopqtimetadata($context)
{
  global $functionsmemory;
}
// ...end "qtimetadata"


// "qtimetadatafield":
function qtiEbStartqtimetadatafield($attrs, $context)
{
  global $functionsmemory;
}
function qtiEbDataqtimetadatafield($context, $data)
{
  global $functionsmemory;
}

function qtiEbStopqtimetadatafield($context)
{
  global $functionsmemory;
}
// ...end "qtimetadatafield"


// "questestinterop":
function qtiEbStartquestestinterop($attrs, $context)
{
  global $functionsmemory;
}
function qtiEbDataquestestinterop($context, $data)
{
  global $functionsmemory;
}
function qtiEbStopquestestinterop($context)
{
  global $functionsmemory;
}
// ...end "questestinterop"


// "reference":
function qtiEbStartreference($attrs, $context)
{
  global $functionsmemory;
}
function qtiEbDatareference($context, $data)
{
  global $functionsmemory;
}
function qtiEbStopreference($context)
{
  global $functionsmemory;
}
// ...end "reference"


// "render_choice":
function qtiEbStartrender_choice($attrs, $context)
{
  global $functionsmemory;
}
function qtiEbDatarender_choice($context, $data)
{
  global $functionsmemory;
}
function qtiEbStoprender_choice($context)
{
  global $functionsmemory;
}
// ...end "render_choice"


// "render_fib":
function qtiEbStartrender_fib($attrs, $context)
{
  global $functionsmemory;
}
function qtiEbDatarender_fib($context, $data)
{
  global $functionsmemory;
}
function qtiEbStoprender_fib($context)
{
  global $functionsmemory;
}
// ...end "render_fib"


// "render_hotspot":
function qtiEbStartrender_hotspot($attrs, $context)
{
  global $functionsmemory;
}
function qtiEbDatarender_hotspot($context, $data)
{
  global $functionsmemory;
}
function qtiEbStoprender_hotspot($context)
{
  global $functionsmemory;
}
// ...end "render_hotspot"


// "render_slider":
function qtiEbStartrender_slider($attrs, $context)
{
  global $functionsmemory;
}
function qtiEbDatarender_slider($context, $data)
{
  global $functionsmemory;
}
function qtiEbStoprender_slider($context)
{
  global $functionsmemory;
}
// ...end "render_slider"


// "respcondition":
function qtiEbStartrespcondition($attrs, $context)
{
  global $functionsmemory;
}
function qtiEbDatarespcondition($context, $data)
{
  global $functionsmemory;
}
function qtiEbStoprespcondition($context)
{
  global $functionsmemory;
}
// ...end "respcondition"


// "response_extension":
function qtiEbStartresponse_extension($attrs, $context)
{
  global $functionsmemory;
}
function qtiEbDataresponse_extension($context, $data)
{
  global $functionsmemory;
}
function qtiEbStopresponse_extension($context)
{
  global $functionsmemory;
}
// ...end "response_extension"


// "response_grp":
function qtiEbStartresponse_grp($attrs, $context)
{
  global $functionsmemory;
}
function qtiEbDataresponse_grp($context, $data)
{
  global $functionsmemory;
}
function qtiEbStopresponse_grp($context)
{
  global $functionsmemory;
}
// ...end "response_grp"


// "response_label":
function qtiEbStartresponse_label($attrs, $context)
{
  global $functionsmemory;
}
function qtiEbDataresponse_label($context, $data)
{
  global $functionsmemory;
}
function qtiEbStopresponse_label($context)
{
  global $functionsmemory;
}
// ...end "response_label"


// "response_lid":
function qtiEbStartresponse_lid($attrs, $context)
{
  global $functionsmemory;
}
function qtiEbDataresponse_lid($context, $data)
{
  global $functionsmemory;
}
function qtiEbStopresponse_lid($context)
{
  global $functionsmemory;
}
// ...end "response_lid"


// "response_num":
function qtiEbStartresponse_num($attrs, $context)
{
  global $functionsmemory;
}
function qtiEbDataresponse_num($context, $data)
{
  global $functionsmemory;
}
function qtiEbStopresponse_num($context)
{
  global $functionsmemory;
}
// ...end "response_num"


// "response_str":
function qtiEbStartresponse_str($attrs, $context)
{
  global $functionsmemory;
}
function qtiEbDataresponse_str($context, $data)
{
  global $functionsmemory;
}
function qtiEbStopresponse_str($context)
{
  global $functionsmemory;
}
// ...end "response_str"


// "response_xy":
function qtiEbStartresponse_xy($attrs, $context)
{
  global $functionsmemory;
}
function qtiEbDataresponse_xy($context, $data)
{
  global $functionsmemory;
}
function qtiEbStopresponse_xy($context)
{
  global $functionsmemory;
}
// ...end "response_xy"


// "resprocessing":
function qtiEbStartresprocessing($attrs, $context)
{
  global $functionsmemory;
}
function qtiEbDataresprocessing($context, $data)
{
  global $functionsmemory;
}
function qtiEbStopresprocessing($context)
{
  global $functionsmemory;
}
// ...end "resprocessing"


// "rubric":
function qtiEbStartrubric($attrs, $context)
{
  global $functionsmemory;
}
function qtiEbDatarubric($context, $data)
{
  global $functionsmemory;
}
function qtiEbStoprubric($context)
{
  global $functionsmemory;
}
// ...end "rubric"


// "section":
function qtiEbStartsection($attrs, $context)
{
  global $functionsmemory;
  $functionsmemory['sections'][$attrs['ident']] = array();
  $functionsmemory['currentsection'] = $attrs['ident'];
  $functionsmemory['totalsections']++;
  $displayname = getDisplayName($attrs);
  echo "\n  <li>Section <a href=\"./?choose[section]=" . urlencode($attrs['ident']) . "&" . extraUrlParams() . "\">$displayname</a></li>\n<ul>";
}
function qtiEbDatasection($context, $data)
{
  global $functionsmemory;
}
function qtiEbStopsection($context)
{
  global $functionsmemory;
  $functionsmemory['assessments'][$functionsmemory['currentassessment']][$functionsmemory['currentsection']] = $functionsmemory['sections'][$attrs['ident']];
  unset($functionsmemory['currentsection']);
  echo "</ul>";
}
// ...end "section"


// "sectioncontrol":
function qtiEbStartsectioncontrol($attrs, $context)
{
  global $functionsmemory;
}
function qtiEbDatasectioncontrol($context, $data)
{
  global $functionsmemory;
}
function qtiEbStopsectioncontrol($context)
{
  global $functionsmemory;
}
// ...end "sectioncontrol"


// "sectionfeedback":
function qtiEbStartsectionfeedback($attrs, $context)
{
  global $functionsmemory;
}
function qtiEbDatasectionfeedback($context, $data)
{
  global $functionsmemory;
}
function qtiEbStopsectionfeedback($context)
{
  global $functionsmemory;
}
// ...end "sectionfeedback"


// "sectionpostcondition":
function qtiEbStartsectionpostcondition($attrs, $context)
{
  global $functionsmemory;
}
function qtiEbDatasectionpostcondition($context, $data)
{
  global $functionsmemory;
}
function qtiEbStopsectionpostcondition($context)
{
  global $functionsmemory;
}
// ...end "sectionpostcondition"


// "sectionprecondition":
function qtiEbStartsectionprecondition($attrs, $context)
{
  global $functionsmemory;
}
function qtiEbDatasectionprecondition($context, $data)
{
  global $functionsmemory;
}
function qtiEbStopsectionprecondition($context)
{
  global $functionsmemory;
}
// ...end "sectionprecondition"


// "sectionproc_extension":
function qtiEbStartsectionproc_extension($attrs, $context)
{
  global $functionsmemory;
}
function qtiEbDatasectionproc_extension($context, $data)
{
  global $functionsmemory;
}
function qtiEbStopsectionproc_extension($context)
{
  global $functionsmemory;
}
// ...end "sectionproc_extension"


// "sectionref":
function qtiEbStartsectionref($attrs, $context)
{
  global $functionsmemory;
}
function qtiEbDatasectionref($context, $data)
{
  global $functionsmemory;
}
function qtiEbStopsectionref($context)
{
  global $functionsmemory;
}
// ...end "sectionref"


// "selection":
function qtiEbStartselection($attrs, $context)
{
  global $functionsmemory;
}
function qtiEbDataselection($context, $data)
{
  global $functionsmemory;
}
function qtiEbStopselection($context)
{
  global $functionsmemory;
}
// ...end "selection"


// "selection_ordering":
function qtiEbStartselection_ordering($attrs, $context)
{
  global $functionsmemory;
}
function qtiEbDataselection_ordering($context, $data)
{
  global $functionsmemory;
}
function qtiEbStopselection_ordering($context)
{
  global $functionsmemory;
}
// ...end "selection_ordering"


// "sequence_parameter":
function qtiEbStartsequence_parameter($attrs, $context)
{
  global $functionsmemory;
}
function qtiEbDatasequence_parameter($context, $data)
{
  global $functionsmemory;
}
function qtiEbStopsequence_parameter($context)
{
  global $functionsmemory;
}
// ...end "sequence_parameter"


// "setvar":
function qtiEbStartsetvar($attrs, $context)
{
  global $functionsmemory;
}
function qtiEbDatasetvar($context, $data)
{
  global $functionsmemory;
}
function qtiEbStopsetvar($context)
{
  global $functionsmemory;
}
// ...end "setvar"


// "solution":
function qtiEbStartsolution($attrs, $context)
{
  global $functionsmemory;
}
function qtiEbDatasolution($context, $data)
{
  global $functionsmemory;
}
function qtiEbStopsolution($context)
{
  global $functionsmemory;
}
// ...end "solution"


// "solutionmaterial":
function qtiEbStartsolutionmaterial($attrs, $context)
{
  global $functionsmemory;
}
function qtiEbDatasolutionmaterial($context, $data)
{
  global $functionsmemory;
}
function qtiEbStopsolutionmaterial($context)
{
  global $functionsmemory;
}
// ...end "solutionmaterial"

// "varequal":
function qtiEbStartvarequal($attrs, $context)
{
  global $functionsmemory;
}
function qtiEbDatavarequal($context, $data)
{
  global $functionsmemory;
}
function qtiEbStopvarequal($context)
{
  global $functionsmemory;
}
// ...end "varequal"

// "varinside":
function qtiEbStartvarinside($attrs, $context)
{
  global $functionsmemory;
}
function qtiEbDatavarinside($context, $data)
{
  global $functionsmemory;
}
function qtiEbStopvarinside($context)
{
  global $functionsmemory;
}
// ...end "varinside"




// "unanswered":
function qtiEbStartunanswered($attrs, $context)
{
  global $functionsmemory;
}
function qtiEbDataunanswered($context, $data)
{
  global $functionsmemory;
}
function qtiEbStopunanswered($context)
{
  global $functionsmemory;
}
// ...end "unanswered"


// "varlt":
function qtiEbStartvarlt($attrs, $context)
{
  global $functionsmemory;
}
function qtiEbDatavarlt($context, $data)
{
  global $functionsmemory;
}
function qtiEbStopvarlt($context)
{
  global $functionsmemory;
}
// ...end "varlt"


// "varlte":
function qtiEbStartvarlte($attrs, $context)
{
  global $functionsmemory;
}
function qtiEbDatavarlte($context, $data)
{
  global $functionsmemory;
}
function qtiEbStopvarlte($context)
{
  global $functionsmemory;
}
// ...end "varlte"


// "vargt":
function qtiEbStartvargt($attrs, $context)
{
  global $functionsmemory;
}
function qtiEbDatavargt($context, $data)
{
  global $functionsmemory;
}
function qtiEbStopvargt($context)
{
  global $functionsmemory;
}
// ...end "vargt"


// "vargte":
function qtiEbStartvargte($attrs, $context)
{
  global $functionsmemory;
}
function qtiEbDatavargte($context, $data)
{
  global $functionsmemory;
}
function qtiEbStopvargte($context)
{
  global $functionsmemory;
}
// ...end "vargte"


// "varsubset":
function qtiEbStartvarsubset($attrs, $context)
{
  global $functionsmemory;
}
function qtiEbDatavarsubset($context, $data)
{
  global $functionsmemory;
}
function qtiEbStopvarsubset($context)
{
  global $functionsmemory;
}
// ...end "varsubset"


// "varsubstring":
function qtiEbStartvarsubstring($attrs, $context)
{
  global $functionsmemory;
}
function qtiEbDatavarsubstring($context, $data)
{
  global $functionsmemory;
}
function qtiEbStopvarsubstring($context)
{
  global $functionsmemory;
}
// ...end "varsubstring"
?>
Return current item: Ps and Qs: Processing QTI using PHP