Re: DO Formbuilder multilingual
| From: | Justin Patrin | Date: | Fri, 26 Nov 2004 21:41:33 +0000 |
| Subject: | Re: DO Formbuilder multilingual | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-15842@lists.php.net to get a copy of this message | ||
On Fri, 26 Nov 2004 13:17:04 +0100, Alexander Petri <alex.petri@gmx.de> wrote:
> hi!
>
> i have a country table
> with: iso_code, name_en, name_de
>
> i builded my DataObject:
> ////////////////////////////////////////////////////////////////////////////
> //////////////////////////////////////////////////////////////////
> /* the code above is auto generated do not remove the tag below */
> ###END_AUTOCODE
>
> function do_country(){
>
> $this->fb_linkDisplayFields = array('name_'.LANG);
> //parent::DB_DataObject();
> }
>
> }
> ////////////////////////////////////////////////////////////////////////////
> //////////////////////////////////////////////////////////////////
> LANG ist my languagecode ( 'de' or 'en')
> so as you see i wrote a constructor to set the displayColumn name_en or
> name_de
> it works ... but doesnt i have to call the parent constructor??
> see at //parent::DB_DataObject(); ??
>
DB_DataObject doesn't have a constructor.
--
Justin Patrin