formBuilder : how to override fb_linkDisplayFields

From: Date: Tue, 18 Oct 2005 12:10:53 +0000
Subject: formBuilder : how to override fb_linkDisplayFields
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-21523@lists.php.net to get a copy of this message
Hello I have an article table linked to a categories table. This categories table has two name fields (one for french, one for english). Depending on the current language used (constant LANG) I would like to display the right options in the generated SELECT element. So I tried this (in Categories.php) : function preGenerateForm (&$fb){ $this->fb_linkDisplayFields=array("name".LANG); } But this has no effect the options are only populated with the PKs of categories, while doing this : var $fb_linkDisplayFields=array("name".LANG); makes a parse error. Do you have any clue ?

« previous php.pear.general (#21523) next »