[Cartoweb-users] Problem ini file parsing and question about switches

Dirk Jesko ml.dje at geocontent.de
Mon Apr 16 06:25:16 EDT 2007


Hello Alexandre,

that's my my plan. However, I can not figure out, how / where to add the 
additional keys. If I add them to exportPdf.ini (as proposed in the 
documentation), I get the error message. If I add them to cExportPdf.ini 
(cExportPdf is my plugin, which extends / replaces exportPdf) the 
entries are not available.

I can not figure out, how the ini files are handled. For example, in 
location.ini or locate.ini, entries like

scales.0.label = 500
scales.0.value = 500
scales.0.visible = true

work, but if I use similar entries with a number in exportPdf, they do 
not work. How do I tell my plugin to read such kind of entries correctly 
without changing the original exportPdf plugin too much?


Regards,
Dirk


>> The simple problem that I can not solve is: How do I get my extended 
>> plugin to read the additional configuration entries so I can use them 
>> within the Client class?
>
> Have you tried to adapt the following code, available in 
> ClientLocate.php:
>
>         $locate = ConfigParser::parseObjectArray($this->getConfig(), 
> 'locate',
>                         array('id', 'sql'));
>


More information about the Cartoweb-users mailing list