#2773 closed defect (fixed)
Metadata Hashtable methods for php-mapscript
Reported by: | geoprism | Owned by: | aboudreault |
---|---|---|---|
Priority: | normal | Milestone: | 5.4 release |
Component: | MapScript-PHP | Version: | unspecified |
Severity: | normal | Keywords: | |
Cc: | dmorissette, assefa, jmckenna, woodbri |
Description
Methods to expose the metadata hashtable in mapscript/swiginc/hashtable.i need to be ported to php-mapscript to provide for a $hash = $layer->{metadata} hashtableObj.
Attachments (2)
Change History (11)
comment:1 by , 16 years ago
Cc: | added |
---|---|
Owner: | changed from | to
comment:2 by , 16 years ago
Cc: | added |
---|
by , 16 years ago
Attachment: | bug2773.patch added |
---|
comment:3 by , 16 years ago
Here's is a patch. I created a hashtable object for PHP/Mapscript. The hashtable object has the following methods: get, set, remove, clear, nextkey... like the swig interface. The layer object has now a new member named "metadata" which is to the metadata hashTableObj. Example of use:
$ht = $layer->metadata; $key = null; while ($key = $ht->nextKey($key)) echo "Key: ".$key."<br/>"
I merged the content of mapscript/php3/hashtable_i.c in mapscript_i.c. I can unmerge and simply add the hashtable_i.c file in Makefile.in if there is some reason to keep this file.
Also, should we add a hashtable object member to all objects that own a hashTableObj ? (Map, Class ...)
comment:4 by , 16 years ago
I'll add the hashtable object member to all others appropriate objects later today an attach the new patch.
by , 16 years ago
Attachment: | bug2773.2.patch added |
---|
comment:5 by , 16 years ago
comment:6 by , 16 years ago
Thanks for the lightening speed patches Adrian, and for the docs as well! I barely had time to blink!!
Jeff
Assigning to Alan.