3 include("tmp/header.php");
4 include("tmp/translatebox.php");
8 require_once("AOOSCore.php");
9 require_once("AOOSModel.php");
10 require_once("AOOSStorageDevice.php");
12 $core = new AOOSCore();
14 $model = new AOOSModel($core);
15 $s = new AOOSStorageDevice($core);
25 $model->setColumnIndex($index);
30 /* $model->setData("Nummer 1", -1, "foo");
31 $model->setData("Nummer 2", -1, "bar");
32 $model->setData("Nummer'\"3", -1, "ba");
34 $model->setData("Foo-value", -1, "foo");
36 $model->setData("Hejsa", -1, "foo");
37 $model->setData("Nummer 4", -1, "bar");
38 print_r($model->getColumn("foo", -2, -1));
40 print_r($model->columnIndex());
42 $s->setStorageType("mysql");
43 $s->setTable("test");*/
44 // $s->insertModel($model);*/
47 # ############################### #
48 # INSERTION/SELECTION/UPDATE TEST #
49 # ############################### #
50 for ($i = 0; $i <= 10; $i++
)
53 $model->setData($i, -1, "foo");
54 $model->setData($i, -1, "bar");
55 $model->setData($i, -1, "baz");
58 $s->setStorageType("mysql");
60 // $s->deleteFromModel($model, 1);
61 // $s->insertModel($model);
62 // $s->updateFromModel($model, "auto");
64 $m = $s->selectModel($f, null, "0, 6");
65 print_r($m->getColumn("foo"));
70 /* $end = microtime();
71 $s = split(" ", $start);
72 $e = split(" ", $end);
73 $start = $s[1] + $s[0];
75 print " ".$start;
77 print "-".$end."<br />";
78 print "----------------------------<br />";
82 catch (AOOSException
$e)
86 $core->printExceptions();