function testShelfDeleteKey() { $shelf =& new Shelve($this->shelf_name); $shelf->put("test",$this->obj); $shelf->close(); unset($shelf); $shelf = new Shelve($this->shelf_name); $shelf->del("test"); $shelf->close(); unset($shelf); $shelf2 =& new Shelve($this->shelf_name); $this->assert($shelf2->get("test") == 0); $shelf2->destroy(); }
$sitems = $qentry->get_sort(); $ACOUNTER = count($sitems); for ($SINDEX = 0; $SINDEX < $ACOUNTER; ++$SINDEX) { $TEXT = $sitems[$SINDEX]->get_text(); include "./style/{$style}/zsort.php"; } } include "./style/{$style}/endquestion.php"; } } include "./style/{$style}/zsubmit.php"; // Ende Ausgabe der Fragen echo "</form>\n"; // Session sichern $shelf->put("session", $sesobj); $shelf->close(); } // Beginn der Anzeige Auswertung if ($status == "auswertung") { $punktsumme = 0; $testfragen = 0; $richtige = 0; $falsche = 0; for ($z = 0; $z < count($qentries); ++$z) { if (isset($qentries[$z])) { if ($qentries[$z]->get_typ() == "multi") { $MCHOICE = $qentries[$z]; $NUMMER = $z + 1; include "./style/{$style}/multiresult.php"; } elseif ($qentries[$z]->get_typ() == "test") { //echo "<h1>Resultat$z: ",$qentries[$z]->get_input(),"</h1>";