Ticket #1373 (closed defect: fixed)
PHP Mapscript does not support layerObj->removeClass
|Reported by:||m.cave-ayland@…||Owned by:||mapserverbugs|
Whilst doing more testing with Mapscript, I noticed that the layerObj->removeClass method is missing while it is available in SWIG Mapscript. I needed this in order to implement query maps with customised styles and so I generated a patch which is attached to this bug report. The API for layerObj->removeClass seems a little brain-dead in that instead of returning MS_SUCCESS/MS_FAILURE, it returns a copy of the class that you have just deleted(!). It seems strange to want a copy of something I have just asked to be deleted, but I decided to match the API used by SWIG Mapscript by returning the classObj - perhaps this should be revisited in the future.
Note: See TracTickets for help on using tickets.