[vilma] driver dependent stuff

Vilius Šumskas vilius at lnk.lt
Wed Apr 14 10:39:09 PDT 2004


Hello Jason,

Wednesday, April 14, 2004, 6:55:11 PM, you wrote:

> Quoting Vilius ?umskas <vilius at lnk.lt>:
>
>> Quoting "Jason M. Felice" <jfelice at cronosys.com>:
>>
>>> Quoting Vilius ?umskas <vilius at lnk.lt>:
>>>
>>>> Hi,
>>>>
>>>> this stuff is driver dependent, so it should be in sql.php
>>>>
>>>> P.S. This is preparations for my new cyrsql.php driver.
>>>
>>> How is this driver dependent?
>>
>> Well, for example $domain['domain_id']. There is no domain_id field in
>> cyrus sql
>> backend.

> Can you just use the domain name for the id, then?  You need some sort of id
> field in any case.

It's hard to explain in English for me, but i'll try...

$domain['domain_id'] is DIRECT reference to sql table column. I can't
change it because, vilma's SQL driver is using it. So, as far as I
see, there are three ways:

1. Check what driver is loaded and change that string.
2. Expand conf.xml (or create backends.php), and have the user to
configure it.
3. Move all this stuff to driver.

Also, there are more of these in "Edit Domain" form generation code,
and in "Edit Virtual" and so on...

If you have any good ideas regarding this point, I will be pleased to
hear them.

Sorry for poor English.

-- 
Best regards,
 Vilius



More information about the vilma mailing list