[dev] config / xml

Marko Djukic marko at oblo.com
Fri Apr 25 10:34:38 PDT 2003


Quoting Chuck Hagenbuch <chuck at horde.org>:

> Quoting Marko Djukic <marko at oblo.com>:
>
> > the <values> or whatever else is between the <configenum> </configenum>
> > tags is read by default as the params parameter of the addVariable()
> > function. rather than doing tests for enum, multienum.
> > this means that we could do something like this as well:
> >    <configlongtext name="somevar" desc="Sometext">
> >     <rows>4</rows>
> >     <cols>60</cols>
> >    </configlongtext>
>
> Hmm. I'd rather that the config parser knew which params to check for for
> any given type. I know it's kind of exacting, but we only have to write the
> code for it once.

that would ok, it would actually help ulaform a bit too. what about having each
var type have an "about()" type function where it would advertise what params
it expects?

marko


More information about the dev mailing list