Re: elementTypeMap
| From: | Justin Patrin | Date: | Thu, 24 Jun 2004 22:12:08 +0000 |
| Subject: | Re: elementTypeMap | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-13328@lists.php.net to get a copy of this message | ||
On Thu, 24 Jun 2004 17:08:07 -0500, Sarah Gray <sarah@fabled.net> wrote:
>
> Hi,
>
> I thought elementTypeMap was set in formBuilder and didn't need to be
> configured (it's there in the file),
It doesn't and shouldn't be set unless you're using a custom or
different element type.
> but textareas are not created for
> my longtext or text field types -- everything is created in an input
> type text.
>
> The longtext and text fieldtypes in my DO are generated as
> var $test_description; // blob(16777215) blob -- does
> that have something to do with it?
> (Should it be generating as longtext instead of blob, if so how should I
> change that?)
The issue here isn't actually FormBuilder, it's DataObject. The
createTables.php script sets the type of those fields to
DB_DATAOBJECT_STR instead of DB_DATAOBJECT_TXT. You can either alter
your database.ini to make them type DB_DATAOBJECT_TXT or put a
textFields array in the DataObject listing the text fields.
>
> At any rate, to set elementTypeMap through the database.formBuilder.ini
> file, what's the exact syntax?
> I tried:
> elementTypeMap = shorttext:text,longtext:textarea
> but nothing happened. Wrong ini file? Wrong syntax? Both?
>
> thanks,
> s.
>
> --
> PEAR General Mailing List (http://pear.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
> !DSPAM:40db4ea768561151165702!
>
>
--
paperCrane --Justin Patrin--