Re: DB_DataObject_FormBuilder: linkNewValue HOWTO
| From: | Dot Deb | Date: | Fri, 11 Mar 2005 18:36:49 +0000 |
| Subject: | Re: DB_DataObject_FormBuilder: linkNewValue HOWTO | ||
| References: | 1 2 3 4 5 6 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-17971@lists.php.net to get a copy of this message | ||
> Let's back up a bit here. In your original e-mail you said:
> I would recommend setting it in the Paper class or as
> $paper->fb_linkNewValue instead of $fb->linkNewValue as it could be
> possible for the DO to overwrite that. Yeah, I know, there are 5
> places to set options and it can be confusing.
This is in fact what I tried first.
I certainly made something wrong because I didn't work, while now it's perfect.
>
> >
> > I also tried from the ini file and it does not work; but I'm certainly
> > missing something.
> > Should it reads as
> > linkNewValue=author_id:true,type_id:true ?
>
> Well, that should work fine, but I don't suggest doing that unless
> you're using a different ini file for every table or your link fields
> are the same for every table. The reason I say this is that normally
> the same ini file is used for all of your tables, so those
> configuration options are used for *every* table as a default. If you
> set the option in your code ($fb->linkNewValue = ... or
> $do->fb_linkNewValue = ...) or in your DO class, it will be
> overwritten. But if you don't specify it, any options in the ini file
> will be applied to all tables.
>
I completely agree with you.
Anyway, I tried for curiosity with
linkNewValue=author_id:true,language_id:true
in the ini file, but It gives "--New Value--" for any table.
It is probably not important, but I would like to tell you in case is
a symptom of a bug ...