diff options
author | Uwe Steinmann <steinm@php.net> | 2000-03-08 17:51:58 +0000 |
---|---|---|
committer | Uwe Steinmann <steinm@php.net> | 2000-03-08 17:51:58 +0000 |
commit | d037fdc8be1e5a299c019ecd33123ee7c17b70e3 (patch) | |
tree | 923cbd40ef84cd966d850fcaba28402de937ed7f /tests | |
parent | b5e13a0f97423d6e8cb43089cc2f5d13e823bb81 (diff) | |
download | php-git-d037fdc8be1e5a299c019ecd33123ee7c17b70e3.tar.gz |
- several fixes and cleanups in hw module
Diffstat (limited to 'tests')
-rw-r--r-- | tests/testhyperwave | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/tests/testhyperwave b/tests/testhyperwave index f7de5284dd..5391cc6f34 100644 --- a/tests/testhyperwave +++ b/tests/testhyperwave @@ -1,9 +1,9 @@ <? - $id = 187852; // A plain/text document + $id = 188178; // A plain/text document $collid = 169828; // A collection $query = "Name=m*"; // Search query for test_9 $host = "gehtnix"; - $username = "steinm"; + $username = "annonymous"; $password = ""; $connect = hw_connect($host, 418, $username, $password); @@ -22,11 +22,13 @@ $test_7 = "no"; // Insert a new text document $test_8 = "no"; // Remove the just inserted text document $test_9 = "no"; // Searching for objects with Name $query + $test_10= "yes"; // Listing all anchors of a document /* Lists an object array */ function list_attr($attributes) { - global $imagepath; + var_dump($attributes); + return; for($i=0; $i<count($attributes); $i++) { $key = key($attributes); switch($key) { @@ -196,5 +198,15 @@ list_attr($objrecs[$c_objrecs]); } + if($test_10 == "yes") { + $anchors = hw_getanchorsobj($connect, $id); + $countanchors = count($anchors) - 1; + echo "$countanchors Anchors of Object $id\n"; + for($i=0; $i<$countanchors; $i++) { + $arr = hw_objrec2array($anchors[$i]); + list_attr($arr); + } + } + hw_close($connect); ?> |